This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 153340 - [69cat] AssertionError: Highlight attributes must not be null.
Summary: [69cat] AssertionError: Highlight attributes must not be null.
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Pisl
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
: 153341 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-17 20:31 UTC by lamboap
Modified: 2011-09-23 13:00 UTC (History)
23 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 140294


Attachments
stacktrace (2.19 KB, text/plain)
2008-11-17 20:31 UTC, lamboap
Details
stacktrace (9.05 KB, text/plain)
2009-01-08 11:46 UTC, Petr Dvorak
Details
stacktrace (10.28 KB, text/plain)
2009-02-04 11:09 UTC, Petr Dvorak
Details
stacktrace (4.53 KB, text/plain)
2010-05-20 16:08 UTC, stefan79
Details
stacktrace (4.53 KB, text/plain)
2010-05-25 18:44 UTC, hjuskewycz
Details
stacktrace (4.53 KB, text/plain)
2010-05-27 20:29 UTC, Michel Graciano
Details
stacktrace (4.32 KB, text/plain)
2010-06-09 09:03 UTC, Tomas Mysik
Details
stacktrace (4.45 KB, text/plain)
2010-06-10 11:18 UTC, Marian Petras
Details
stacktrace (4.45 KB, text/plain)
2010-08-12 06:53 UTC, stefan79
Details
stacktrace (4.45 KB, text/plain)
2010-08-12 15:14 UTC, Michel Graciano
Details
stacktrace (4.45 KB, text/plain)
2010-08-20 07:32 UTC, stefan79
Details
stacktrace (4.45 KB, text/plain)
2010-09-08 20:32 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lamboap 2008-11-17 20:31:44 UTC
Build: NetBeans IDE 6.5 Beta (Build 200808111757)
VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25
OS: Windows XP, 5.1, x86

Stacktrace: 
java.lang.AssertionError: Highlight attributes must not be null.
        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addHighlightImpl(OffsetsBag.java:492)
        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addAllHighlightsImpl(OffsetsBag.java:724)
        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addAllHighlights(OffsetsBag.java:184)
        at org.netbeans.modules.editor.lib.highlighting.CompoundHighlightsContainer.updateCache(CompoundHighlightsContainer.java:300)
        at org.netbeans.modules.editor.lib.highlighting.CompoundHighlightsContainer.getHighlights(CompoundHighlightsContainer.java:169)
        at org.netbeans.modules.editor.NbToolTip.buildTip(NbToolTip.java:261)
Comment 1 lamboap 2008-11-17 20:31:50 UTC
Created attachment 73838 [details]
stacktrace
Comment 2 Jiri Prox 2008-11-18 12:24:51 UTC
Can you provide steps to reproduce, please?
Comment 3 Petr Dvorak 2008-11-18 13:49:55 UTC
*** Issue 153341 has been marked as a duplicate of this issue. ***
Comment 4 Vitezslav Stejskal 2008-12-11 15:25:10 UTC
What file are you editing? Could you please attach your <ide-userdir>/var/log/messages.log here? Thanks
Comment 5 Petr Dvorak 2009-01-08 11:46:10 UTC
Build: NetBeans IDE Dev (Build 200901060201)
VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26
OS: Linux, 2.6.27-11-generic, i386

User Comments: 
Undoing changes made just in front of a guarded block while verifying "off-by-one bug"...

Stacktrace: 
java.lang.AssertionError: Start offset must be before the end offset. startOffset = 36, endOffset = 1
        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addHighlightImpl(OffsetsBag.java:491)
        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addAllHighlightsImpl(OffsetsBag.java:724)
        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addAllHighlights(OffsetsBag.java:184)
        at org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.updateCache(CompoundHighlightsContainer.java:302)
        at org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.getHighlights(CompoundHighlightsContainer.java:170)
        at org.netbeans.editor.HighlightingDrawLayer.processOffset(HighlightingDrawLayer.java:618)
Comment 6 Petr Dvorak 2009-01-08 11:46:17 UTC
Created attachment 75579 [details]
stacktrace
Comment 7 Petr Dvorak 2009-01-08 11:55:07 UTC
See #156469 too (according to message in assertion, I don't know if my stacktrace is from the same place as the original
one)...
Comment 8 Vitezslav Stejskal 2009-01-12 10:17:58 UTC
#156469 looks different from the original exception. Let's track it separately.
Comment 9 Petr Dvorak 2009-02-04 11:08:53 UTC
Build: NetBeans IDE Dev (Build 200902031446)
VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26
OS: Linux, 2.6.27-11-generic, i386

User Comments: 
Redo in code customizer.

Stacktrace: 
java.lang.AssertionError: Start offset must be before the end offset. startOffset = 69, endOffset = 40
        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addHighlightImpl(OffsetsBag.java:491)
        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addAllHighlightsImpl(OffsetsBag.java:724)
        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addAllHighlights(OffsetsBag.java:184)
        at org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.updateCache(CompoundHighlightsContainer.java:302)
        at org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.getHighlights(CompoundHighlightsContainer.java:170)
        at org.netbeans.editor.HighlightingDrawLayer.processOffset(HighlightingDrawLayer.java:618)
Comment 10 Petr Dvorak 2009-02-04 11:09:13 UTC
Created attachment 76539 [details]
stacktrace
Comment 11 pribyl 2009-04-16 15:44:05 UTC
Unfortunately, I was not able to reproduce this issue from provided information.

As there has been no activity since February (no additional info provided, no other Exception report), I am closing this
as WORKSFORME.

Please reopen, if this problem still persist.

Comment 12 jonavogt 2010-05-04 10:25:18 UTC
I can't tell you how to reproduce it either, but I had it aleast 3 times (see below) during the last 2 days using a current dev version. So I'd say it's still persists...

http://statistics.netbeans.org/analytics/exception.do?id=380518
http://statistics.netbeans.org/analytics/exception.do?id=380547
http://statistics.netbeans.org/analytics/exception.do?id=381084
Comment 13 Vitezslav Stejskal 2010-05-11 11:37:00 UTC
No idea...
Comment 14 stefan79 2010-05-20 16:08:05 UTC
Created attachment 99264 [details]
stacktrace
Comment 15 hjuskewycz 2010-05-25 18:44:29 UTC
Created attachment 99456 [details]
stacktrace
Comment 16 Michel Graciano 2010-05-27 20:29:37 UTC
Created attachment 99568 [details]
stacktrace
Comment 17 Michel Graciano 2010-05-27 20:40:12 UTC
I am facing this at RC1 now.
Comment 18 Vitezslav Stejskal 2010-06-07 13:39:02 UTC
http://hg.netbeans.org/jet-main/rev/64a12dc8b48b

I fixed the infrastructure to simply skip highlights with no (null) AttributeSet and also added more logging to GsfSemanticLayer. This revealed that there is no coloring defined for mod-class (CLASS) coloring in PHP. Use -J-Dorg.netbeans.modules.csl.editor.semantic.GsfSemanticLayer.level=FINE to see details.
Comment 19 Quality Engineering 2010-06-08 06:05:58 UTC
Integrated into 'main-golden', will be available in build *201006080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/64a12dc8b48b
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #153340: check for highlights with null AttributeSet and skip them
Comment 20 rmatous 2010-06-08 12:06:48 UTC
added additional assert to get more info:
http://hg.netbeans.org/web-main/rev/d3193aa8bc47
Comment 21 Quality Engineering 2010-06-09 06:54:39 UTC
Integrated into 'main-golden', will be available in build *201006090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d3193aa8bc47
User: Radek Matous <rmatous@netbeans.org>
Log: #153340 - [69cat] AssertionError: Highlight attributes must not be null - added additional assert to get more info
Comment 22 Tomas Mysik 2010-06-09 09:03:38 UTC
Created attachment 99929 [details]
stacktrace
Comment 23 Marian Petras 2010-06-10 11:18:39 UTC
Created attachment 99974 [details]
stacktrace

I had CVS annotations displayed in the editor. I right-clicked on one such annotation and selected "Diff 1.14 to 1.13".
Comment 24 d3n0 2010-06-15 14:47:40 UTC
netbeans-dev-201006130001 here and same problem occures. Did't have this problem with previous nightly builds!

Steps to reproduce:

1. Install netbeans-dev-201006130001, 
2. open PHP file with it.
Comment 25 stefan79 2010-08-12 06:53:15 UTC
Created attachment 101327 [details]
stacktrace

Clicked on a Row at CVS-"Show Changes" - Window (while Scanningt Projects was running).
Comment 26 Michel Graciano 2010-08-12 15:14:18 UTC
Created attachment 101345 [details]
stacktrace
Comment 27 stefan79 2010-08-20 07:32:44 UTC
Created attachment 101558 [details]
stacktrace

Exception occured after CVS-Checkin
Comment 28 Michel Graciano 2010-09-08 20:32:11 UTC
Created attachment 101951 [details]
stacktrace
Comment 29 Filip Zamboj 2010-09-15 12:27:28 UTC
batch reassigning
Comment 30 Petr Pisl 2011-09-23 13:00:59 UTC
This should be already fixed. Although there are no reports from NB 7.x releases. Closing as fixed.