Bugs item #841922, was opened at 2003-11-13 23:26
Message generated for change (Settings changed) made by spestov
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100588&aid=841922&group_id=588
Category: text area and syntax packages
Group: normal bug
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Leung Wing Chung (lenny_hk)
Assigned to: Nobody/Anonymous (nobody)
Summary: Collapse folds causes unstability
Initial Comment:
Steps for reproducing a beanshell error:
1. Open a file with folds
2. Move the cursor inside a fold
3. Collapse the fold using a mouse (Alt-Bksp does not
always produce error)
4. Press PageUp button
---
Other problems related to folds (often but not always
happen)
1. Cannot scroll to top of file after beanshell error
is invoked
2. Cursor may move but the text area doesn't scroll (so
cursor is outside screen)
3. 1 & 2 are not resolved by re-opening file
---
Activity log entries that might be useful in a bug report:
Log file created on Fri Nov 14 10:53:51 HKT 2003
IMPORTANT:
Because updating this file after every log message
would kill
performance, it will be *incomplete* unless you invoke the
Utilities->Troubleshooting->Update Activity Log on Disk
command!
[message] Log: When reporting bugs, please include the
following information:
[message] Log: java.version=1.4.1_03
[message] Log: java.vm.version=1.4.1_03-b02
[message] Log: java.runtime.version=1.4.1_03-b02
[notice] jEdit: An error occurred while connecting to
the jEdit server instance.
[notice] jEdit: This probably means that jEdit crashed
and/or exited abnormally
[notice] jEdit: the last time it was run.
[notice] jEdit: If you don't know what this means,
don't worry.
[notice] jEdit: java.net.ConnectException: Connection
refused
[notice] jEdit: at
java.net.PlainSocketImpl.socketConnect(Native Method)
[notice] jEdit: at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
[notice] jEdit: at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
[notice] jEdit: at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
[notice] jEdit: at
java.net.Socket.connect(Socket.java:434)
[notice] jEdit: at
java.net.Socket.connect(Socket.java:384)
[notice] jEdit: at java.net.Socket.<init>(Socket.java:291)
[notice] jEdit: at java.net.Socket.<init>(Socket.java:147)
[notice] jEdit: at org.gjt.sp.jedit.jEdit.main(Unknown
Source)
[notice] jEdit: jEdit version 4.2pre6
[message] jEdit: Settings directory is /root/.jedit
[message] jEdit: jEdit home directory is /usr/share/jedit
[notice] jEdit: Loading plugins from /usr/share/jedit/jars
[notice] jEdit: Loading plugins from /root/.jedit/jars
[message] jEdit: Loading mode catalog file
/usr/share/jedit/modes/catalog
[message] jEdit: Loading mode catalog file
/root/.jedit/modes/catalog
[message] jEdit: Startup complete
[error] JEditTextArea: BUG:
screenLine=-1,visibleLines=23,physicalLine=1,firstPhysicalLine=2,lastPhysicalLine=82
[error] BeanShellAction: java.lang.NullPointerException
[error] BeanShellAction: at
org.gjt.sp.jedit.textarea.JEditTextArea.scrollTo(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.textarea.JEditTextArea.scrollToCaret(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.textarea.JEditTextArea._finishCaretUpdate(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.textarea.JEditTextArea.finishCaretUpdate(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.textarea.JEditTextArea.moveCaretPosition(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.textarea.JEditTextArea.moveCaretPosition(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.textarea.JEditTextArea.moveCaretPosition(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.textarea.JEditTextArea.goToPrevLine(Unknown
Source)
[error] BeanShellAction: at
sun.reflect.GeneratedMethodAccessor18.invoke(Unknown
Source)
[error] BeanShellAction: at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[error] BeanShellAction: at
java.lang.reflect.Method.invoke(Method.java:324)
[error] BeanShellAction: at
bsh.Reflect.invokeOnMethod(Unknown Source)
[error] BeanShellAction: at
bsh.Reflect.invokeObjectMethod(Unknown Source)
[error] BeanShellAction: at
bsh.Name.invokeMethod(Unknown Source)
[error] BeanShellAction: at
bsh.BSHMethodInvocation.eval(Unknown Source)
[error] BeanShellAction: at
bsh.BSHPrimaryExpression.eval(Unknown Source)
[error] BeanShellAction: at
bsh.BSHPrimaryExpression.eval(Unknown Source)
[error] BeanShellAction: at
bsh.BSHBlock.evalBlock(Unknown Source)
[error] BeanShellAction: at bsh.BSHBlock.eval(Unknown
Source)
[error] BeanShellAction: at
bsh.BshMethod.invokeImpl(Unknown Source)
[error] BeanShellAction: at
bsh.BshMethod.invoke(Unknown Source)
[error] BeanShellAction: at
bsh.BshMethod.invoke(Unknown Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.BeanShell.runCachedBlock(Unknown Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.BeanShellAction.invoke(Unknown Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.gui.InputHandler.invokeAction(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.gui.InputHandler.invokeAction(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.View.processKeyEvent(Unknown Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.textarea.JEditTextArea.processKeyEvent(Unknown
Source)
[error] BeanShellAction: at
java.awt.Component.processEvent(Component.java:4943)
[error] BeanShellAction: at
java.awt.Container.processEvent(Container.java:1566)
[error] BeanShellAction: at
java.awt.Component.dispatchEventImpl(Component.java:3639)
[error] BeanShellAction: at
java.awt.Container.dispatchEventImpl(Container.java:1623)
[error] BeanShellAction: at
java.awt.Component.dispatchEvent(Component.java:3480)
[error] BeanShellAction: at
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1708)
[error] BeanShellAction: at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:593)
[error] BeanShellAction: at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:765)
[error] BeanShellAction: at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:698)
[error] BeanShellAction: at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:559)
[error] BeanShellAction: at
java.awt.Component.dispatchEventImpl(Component.java:3509)
[error] BeanShellAction: at
java.awt.Container.dispatchEventImpl(Container.java:1623)
[error] BeanShellAction: at
java.awt.Window.dispatchEventImpl(Window.java:1590)
[error] BeanShellAction: at
java.awt.Component.dispatchEvent(Component.java:3480)
[error] BeanShellAction: at
java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
[error] BeanShellAction: at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
[error] BeanShellAction: at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
[error] BeanShellAction: at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
[error] BeanShellAction: at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
[error] BeanShellAction: at
java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
[error] JEditTextArea: BUG:
screenLine=-1,visibleLines=23,physicalLine=0,firstPhysicalLine=2,lastPhysicalLine=82
[error] BeanShellAction: java.lang.NullPointerException
[error] BeanShellAction: at
org.gjt.sp.jedit.textarea.JEditTextArea.scrollTo(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.textarea.JEditTextArea.scrollToCaret(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.textarea.JEditTextArea.goToPrevPage(Unknown
Source)
[error] BeanShellAction: at
sun.reflect.GeneratedMethodAccessor17.invoke(Unknown
Source)
[error] BeanShellAction: at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[error] BeanShellAction: at
java.lang.reflect.Method.invoke(Method.java:324)
[error] BeanShellAction: at
bsh.Reflect.invokeOnMethod(Unknown Source)
[error] BeanShellAction: at
bsh.Reflect.invokeObjectMethod(Unknown Source)
[error] BeanShellAction: at
bsh.Name.invokeMethod(Unknown Source)
[error] BeanShellAction: at
bsh.BSHMethodInvocation.eval(Unknown Source)
[error] BeanShellAction: at
bsh.BSHPrimaryExpression.eval(Unknown Source)
[error] BeanShellAction: at
bsh.BSHPrimaryExpression.eval(Unknown Source)
[error] BeanShellAction: at
bsh.BSHBlock.evalBlock(Unknown Source)
[error] BeanShellAction: at bsh.BSHBlock.eval(Unknown
Source)
[error] BeanShellAction: at
bsh.BshMethod.invokeImpl(Unknown Source)
[error] BeanShellAction: at
bsh.BshMethod.invoke(Unknown Source)
[error] BeanShellAction: at
bsh.BshMethod.invoke(Unknown Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.BeanShell.runCachedBlock(Unknown Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.BeanShellAction.invoke(Unknown Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.gui.InputHandler.invokeAction(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.gui.InputHandler.invokeAction(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.View.processKeyEvent(Unknown Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.textarea.JEditTextArea.processKeyEvent(Unknown
Source)
[error] BeanShellAction: at
java.awt.Component.processEvent(Component.java:4943)
[error] BeanShellAction: at
java.awt.Container.processEvent(Container.java:1566)
[error] BeanShellAction: at
java.awt.Component.dispatchEventImpl(Component.java:3639)
[error] BeanShellAction: at
java.awt.Container.dispatchEventImpl(Container.java:1623)
[error] BeanShellAction: at
java.awt.Component.dispatchEvent(Component.java:3480)
[error] BeanShellAction: at
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1708)
[error] BeanShellAction: at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:593)
[error] BeanShellAction: at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:765)
[error] BeanShellAction: at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:698)
[error] BeanShellAction: at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:559)
[error] BeanShellAction: at
java.awt.Component.dispatchEventImpl(Component.java:3509)
[error] BeanShellAction: at
java.awt.Container.dispatchEventImpl(Container.java:1623)
[error] BeanShellAction: at
java.awt.Window.dispatchEventImpl(Window.java:1590)
[error] BeanShellAction: at
java.awt.Component.dispatchEvent(Component.java:3480)
[error] BeanShellAction: at
java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
[error] BeanShellAction: at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
[error] BeanShellAction: at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
[error] BeanShellAction: at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
[error] BeanShellAction: at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
[error] BeanShellAction: at
java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
----------------------------------------------------------------------
Comment By: Leung Wing Chung (lenny_hk)
Date: 2003-11-18 09:35
Message:
Logged In: YES
user_id=147098
After it is reproduced all text above/inside the fold is not
reachable
----------------------------------------------------------------------
Comment By: Leung Wing Chung (lenny_hk)
Date: 2003-11-18 09:34
Message:
Logged In: YES
user_id=147098
Finally managed to reproduce it... but doesn't seems to be
the minimum test case.
Steps:
1. Open the attached file w/ soft wrap and explicit fold
2. Scroll to somewhere you can't see the beginning of the
fold (the folding arrow should be out of screen)
3. Collapse the fold
----------------------------------------------------------------------
Comment By: Leung Wing Chung (lenny_hk)
Date: 2003-11-17 04:01
Message:
Logged In: YES
user_id=147098
Sorry, the scrollTo beanshell error is triggered by pressing
Alt-Bksp. (That's all I know for now :< ) I still have no
idea how to reproduce it, but it throws every day. Send you
the details later.
The PageUp button triggers the following errors instead. I
hope that you've already fixed it.
---
Activity log entries that might be useful in a bug report:
Log file created on Mon Nov 17 16:51:00 HKT 2003
IMPORTANT:
Because updating this file after every log message would kill
performance, it will be *incomplete* unless you invoke the
Utilities->Troubleshooting->Update Activity Log on Disk command!
[message] Log: When reporting bugs, please include the
following information:
[message] Log: java.version=1.4.1_03
[message] Log: java.vm.version=1.4.1_03-b02
[message] Log: java.runtime.version=1.4.1_03-b02
[notice] jEdit: jEdit version 4.2pre6
[message] jEdit: Settings directory is /root/.jedit
[message] jEdit: jEdit home directory is /usr/share/jedit
[notice] jEdit: Loading plugins from /usr/share/jedit/jars
[notice] jEdit: Loading plugins from /root/.jedit/jars
[message] jEdit: Loading mode catalog file
/usr/share/jedit/modes/catalog
[message] jEdit: Loading mode catalog file
/root/.jedit/modes/catalog
[message] jEdit: Startup complete
[error] BeanShellAction:
java.lang.ArrayIndexOutOfBoundsException: -1
[error] BeanShellAction: at
org.gjt.sp.jedit.textarea.ChunkCache.getLineInfo(Unknown Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.textarea.JEditTextArea.xToScreenLineOffset(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.textarea.JEditTextArea.goToPrevPage(Unknown
Source)
[error] BeanShellAction: at
sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
[error] BeanShellAction: at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[error] BeanShellAction: at
java.lang.reflect.Method.invoke(Method.java:324)
[error] BeanShellAction: at
bsh.Reflect.invokeOnMethod(Unknown Source)
[error] BeanShellAction: at
bsh.Reflect.invokeObjectMethod(Unknown Source)
[error] BeanShellAction: at bsh.Name.invokeMethod(Unknown
Source)
[error] BeanShellAction: at
bsh.BSHMethodInvocation.eval(Unknown Source)
[error] BeanShellAction: at
bsh.BSHPrimaryExpression.eval(Unknown Source)
[error] BeanShellAction: at
bsh.BSHPrimaryExpression.eval(Unknown Source)
[error] BeanShellAction: at bsh.BSHBlock.evalBlock(Unknown
Source)
[error] BeanShellAction: at bsh.BSHBlock.eval(Unknown Source)
[error] BeanShellAction: at
bsh.BshMethod.invokeImpl(Unknown Source)
[error] BeanShellAction: at bsh.BshMethod.invoke(Unknown
Source)
[error] BeanShellAction: at bsh.BshMethod.invoke(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.BeanShell.runCachedBlock(Unknown Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.BeanShellAction.invoke(Unknown Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.gui.InputHandler.invokeAction(Unknown Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.gui.InputHandler.invokeAction(Unknown Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey(Unknown
Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.View.processKeyEvent(Unknown Source)
[error] BeanShellAction: at
org.gjt.sp.jedit.textarea.JEditTextArea.processKeyEvent(Unknown
Source)
[error] BeanShellAction: at
java.awt.Component.processEvent(Component.java:4943)
[error] BeanShellAction: at
java.awt.Container.processEvent(Container.java:1566)
[error] BeanShellAction: at
java.awt.Component.dispatchEventImpl(Component.java:3639)
[error] BeanShellAction: at
java.awt.Container.dispatchEventImpl(Container.java:1623)
[error] BeanShellAction: at
java.awt.Component.dispatchEvent(Component.java:3480)
[error] BeanShellAction: at
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1708)
[error] BeanShellAction: at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:593)
[error] BeanShellAction: at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:765)
[error] BeanShellAction: at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:698)
[error] BeanShellAction: at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:559)
[error] BeanShellAction: at
java.awt.Component.dispatchEventImpl(Component.java:3509)
[error] BeanShellAction: at
java.awt.Container.dispatchEventImpl(Container.java:1623)
[error] BeanShellAction: at
java.awt.Window.dispatchEventImpl(Window.java:1590)
[error] BeanShellAction: at
java.awt.Component.dispatchEvent(Component.java:3480)
[error] BeanShellAction: at
java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
[error] BeanShellAction: at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
[error] BeanShellAction: at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
[error] BeanShellAction: at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
[error] BeanShellAction: at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
[error] BeanShellAction: at
java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
----------------------------------------------------------------------
Comment By: Slava Pestov (spestov)
Date: 2003-11-16 17:08
Message:
Logged In: YES
user_id=2280
I've fixed the problem where if scrollTo() throws an
exception, scrolling will stop working from that point on.
However, I still cannot make scrollTo() actually throw the
exception! Can you e-mail me (slava@...) a test file
where this occurs, and give me steps to reproduce it? Also
tell me the number of visible lines in your jEdit window,
and if electric scrolling is on or off.
----------------------------------------------------------------------
Comment By: Leung Wing Chung (lenny_hk)
Date: 2003-11-16 02:51
Message:
Logged In: YES
user_id=147098
I guess everything is related to pageup/down. (maybe some
internal variables are made wrong by pageup/down)
Well... how do I complie the CVS to test it?
(http://community.jedit.org/modules.php?op=modload&name=news&file=article&sid=39
is missing) :<
----------------------------------------------------------------------
Comment By: Slava Pestov (spestov)
Date: 2003-11-15 17:25
Message:
Logged In: YES
user_id=2280
Hi,
I fixed the page up/down problem in CVS, but cannot
reproduce the other issues you mentioned. Can you find a
test case for the scrollTo() NPE that is independent of page
up/page down?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100588&aid=841922&group_id=588
|