Menu

#1746 Physical line can't have more than 128 screen lines

severe bug
closed-fixed
nobody
5
2004-04-19
2003-07-23
Anonymous
No

First, let me say: I like jEdit!!

I loaded a large .xml file into the editor (33KB). Set
separator to DOS/Windows, soft wrap. The scroll bar
wouldn't let me scroll to the bottom of the edit pane, so
I then used Ctrl+End to go to the end of the file. I got
the error dialog box labeled "BeanShell Error", "A
BeanShell error has occurred." The following stacktrace
was printed in the view area of the error dialog box:

java.lang.NullPointerException

at
org.gjt.sp.jedit.textarea.JEditTextArea.scrollTo(Unknown
Source)

at
org.gjt.sp.jedit.textarea.JEditTextArea.scrollToCaret
(Unknown Source)

at org.gjt.sp.jedit.textarea.JEditTextArea$1.run
(Unknown Source)

at
org.gjt.sp.jedit.textarea.JEditTextArea.finishCaretUpdate
(Unknown Source)

at
org.gjt.sp.jedit.textarea.JEditTextArea.moveCaretPosition
(Unknown Source)

at
org.gjt.sp.jedit.textarea.JEditTextArea.moveCaretPosition
(Unknown Source)

at
org.gjt.sp.jedit.textarea.JEditTextArea.moveCaretPosition
(Unknown Source)

at
org.gjt.sp.jedit.textarea.JEditTextArea.goToBufferEnd
(Unknown Source)

at java.lang.reflect.Method.invoke(Native
Method)

at bsh.Reflect.invokeOnMethod(Unknown
Source)

at bsh.Reflect.invokeObjectMethod(Unknown
Source)

at bsh.Name.invokeMethod(Unknown Source)

at bsh.BSHMethodInvocation.eval(Unknown
Source)

at bsh.BSHPrimaryExpression.eval(Unknown
Source)

at bsh.BSHBlock.eval(Unknown Source)

at bsh.BshMethod.invoke(Unknown Source)

at bsh.BshMethod.invoke(Unknown Source)

at org.gjt.sp.jedit.BeanShell.runCachedBlock
(Unknown Source)

at org.gjt.sp.jedit.BeanShellAction.invoke
(Unknown Source)

at org.gjt.sp.jedit.gui.InputHandler.invokeAction
(Unknown Source)

at org.gjt.sp.jedit.gui.InputHandler.invokeAction
(Unknown Source)

at
org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey
(Unknown Source)

at
org.gjt.sp.jedit.gui.DefaultInputHandler.keyPressed
(Unknown Source)

at org.gjt.sp.jedit.View.processKeyEvent
(Unknown Source)

at
org.gjt.sp.jedit.textarea.JEditTextArea.processKeyEvent
(Unknown Source)

at java.awt.Component.processEvent(Unknown
Source)

at java.awt.Container.processEvent(Unknown
Source)

at java.awt.Component.dispatchEventImpl
(Unknown Source)

at java.awt.Container.dispatchEventImpl
(Unknown Source)

at java.awt.Component.dispatchEvent
(Unknown Source)

at
java.awt.LightweightDispatcher.processKeyEvent
(Unknown Source)

at
java.awt.LightweightDispatcher.dispatchEvent(Unknown
Source)

at java.awt.Container.dispatchEventImpl
(Unknown Source)

at java.awt.Window.dispatchEventImpl
(Unknown Source)

at java.awt.Component.dispatchEvent
(Unknown Source)

at java.awt.EventQueue.dispatchEvent
(Unknown Source)

at
java.awt.EventDispatchThread.pumpOneEventForHierarch
y(Unknown Source)

at
java.awt.EventDispatchThread.pumpEventsForHierarchy
(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents
(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown
Source)

I looked through the extant bugs and didn't find any like
this one, however, if it is a duplicate, I apologize
profusely. Thanks!

Discussion

  • Michael A. Davis

    Logged In: YES
    user_id=829023

    Submitter: Michael A. Davis. Sorry about the kludged
    subject line, it should have read: jEdit 4.2pre3 Editor Pane
    NullExceptionPointer. Thanks!

     
  • Slava Pestov

    Slava Pestov - 2003-07-23

    Logged In: YES
    user_id=2280

    Does it happen every time you open this file? Also can you
    try running jEdit with no plugins (-noplugins command line
    switch) and see if it still occurs.

     
  • Michael A. Davis

    Logged In: YES
    user_id=829023

    I can't use switches apparently - I am using windows. I
    looked in the plug in manager and bean shell is not listed - I
    thought I saw one of the additional features of the current
    pre release said something about bean shell being default. -
    Michael

     
  • Michael A. Davis

    Logged In: YES
    user_id=829023

    I tried reopening it - couldn't switch -noplugins. When the
    file opens it defaults to having the entire file on the first line.
    At this point, if I hit 'End', I will go to the end of the line
    (position reads '1,30549 All' in the status bar, left side). If I
    choose soft wrap the lines will wrap, then if I use Ctrl+End, I
    get the NullPointerException. -Michael

     
  • Slava Pestov

    Slava Pestov - 2003-07-23

    Logged In: YES
    user_id=2280

    Can I have a copy of the file (slava@jedit.org)

     
  • Slava Pestov

    Slava Pestov - 2003-08-09
    • summary: jEdit 4.2pre3 --> Exception if file has more than 128 screen lines
     
  • Slava Pestov

    Slava Pestov - 2003-08-09
    • summary: Exception if file has more than 128 screen lines --> Physical line can't have more than 128 screen lines
     
  • Ludovic Anciaux

    Ludovic Anciaux - 2003-09-25

    Logged In: YES
    user_id=553103

    What happens next ? Have you given this file to Slave ? Is
    this problem still on ?

     
  • Slava Pestov

    Slava Pestov - 2004-04-19
    • status: open --> closed-fixed
     

Log in to post a comment.