#3697 snippetBefore assertion error

closed-fixed
None
7
2012-05-19
2012-05-10
No

I was near to make it reproducable on 2 lines of file, but suddenly it stopped. When it was happening multiple times, it was after switching from word wrap "none" to "soft". The text area (only) became non-responsive but it would be possible to get back to no word wrap and have it operating again. I attach a file that for a moment gave me reproducibility. I was with lot of plugins onboard.

13:16:18 [AWT-EventQueue-0] [error] EditBus: Exception while sending message on EditBus:
13:16:18 [AWT-EventQueue-0] [error] EditBus: java.lang.AssertionError
13:16:18 [AWT-EventQueue-0] [error] EditBus: at org.gjt.sp.jedit.syntax.Chunk.snippetBefore(Chunk.j
ava:336)
13:16:18 [AWT-EventQueue-0] [error] EditBus: at org.gjt.sp.jedit.syntax.Chunk.snippetBeforeLineOffs
et(Chunk.java:359)
13:16:18 [AWT-EventQueue-0] [error] EditBus: at org.gjt.sp.jedit.syntax.DisplayTokenHandler.makeScr
eenLineInWrapMargin(DisplayTokenHandler.java:361)

Discussion

  • Jarek Czekalski

    Jarek Czekalski - 2012-05-10

    Fresh jedit on windows. If it happens again I'll try to isolate.

     
  • Jarek Czekalski

    Jarek Czekalski - 2012-05-10
    • milestone: 101607 --> 101608
     
  • Jarek Czekalski

    Jarek Czekalski - 2012-05-10

    Dear me, how can I reproduce assertion failed running java with assertions disabled :/

    So here is the recipe:
    1. java -ea -jar c:\Program_Files\jedit\jedit.jar -nosettings -noplugins c:\temp\1\snippet.txt
    2. go to line 34
    3. switch on soft wrap
    4. go to third soft line of that line: long x, single x, a third word - place caret at the beginning of the third word
    5. type x
    6. yeah!

    jedit 4.5.2 does not reproduce it.

    I'm attaching also an amusing macro that gave me the test case. It can be used for reproducing different kinds of errors and for benchmarking. Once I catched also scrollTo NPE with it.

     
  • Jarek Czekalski

    Jarek Czekalski - 2012-05-10

    test case

     
  • Jarek Czekalski

    Jarek Czekalski - 2012-05-10

    funny macro

     
  • Jarek Czekalski

    Jarek Czekalski - 2012-05-10

    full log

     
  • Kazutoshi Satoda

    • milestone: 101608 --> Regressive (new to devel)
    • priority: 5 --> 7
    • assigned_to: nobody --> k_satoda
     
  • Kazutoshi Satoda

    Fixed in r21688. The assertion failure was possible after r21633.

    Thanks for the recipe. It helped much.

     
  • Kazutoshi Satoda

    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks