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 211985 - IllegalStateException: Null children of pView[26] from <0,35> origEndIndex=35, rebuild<6,34>. TLCache: size=6, capacity=300, head=Entry[pView=PV@01d1fc04#1 <139,140>, WxH:8.0x17.0, chWxH=8.0x17.0 prev
Summary: IllegalStateException: Null children of pView[26] from <0,35> origEndIndex=35...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
: 211294 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-02 21:26 UTC by MackSix
Modified: 2012-05-24 04:58 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 187600


Attachments
stacktrace (5.05 KB, text/plain)
2012-05-02 21:27 UTC, MackSix
Details
Project to use for reproduction. (41.58 KB, application/zip)
2012-05-02 21:48 UTC, MackSix
Details
2nd Project - I opened it and this exception happened. (77.54 KB, application/zip)
2012-05-03 16:51 UTC, MackSix
Details
stacktrace (5.05 KB, text/plain)
2012-05-03 19:08 UTC, lolo_101
Details
stacktrace (3.72 KB, text/plain)
2012-05-07 08:17 UTC, David Konecny
Details
stacktrace (5.14 KB, text/plain)
2012-05-09 14:11 UTC, Michel Graciano
Details
stacktrace (3.72 KB, text/plain)
2012-05-09 18:41 UTC, David Konecny
Details
stacktrace (5.14 KB, text/plain)
2012-05-10 19:03 UTC, Jesse Glick
Details
stacktrace (5.14 KB, text/plain)
2012-05-16 20:36 UTC, Jesse Glick
Details
stacktrace (5.14 KB, text/plain)
2012-05-21 15:09 UTC, Jiri Prox
Details
stacktrace (5.14 KB, text/plain)
2012-05-21 19:06 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2012-05-02 21:26:58 UTC
This bug was originally marked as duplicate of bug 209490, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201205020400)
VM: Java HotSpot(TM) Client VM, 23.0-b21, Java(TM) SE Runtime Environment, 1.7.0_04-b20
OS: Windows Vista

User Comments:
MackSix: Closed JavaSE project and reopened it.

MackSix: 1.) Install Dev 201204050400 2.) Change userdir and cachedir names in /etc/netbeans.conf to "dev20120405". 3.) Start NetBeans and create new Java Application. 4.) Created new JFrame form. 4.) Closed project. 5.) Open project again. 6.) Add 2 jLabels and a jButton to Form. 7.) Close project. 8.) Reopen Project and this IllegalStateException occured.

MackSix: 1) Moved class to new package. 
2) Undo 
3) Redo

This Exception was thrown.




Stacktrace: 
java.lang.IllegalStateException: Null children of pView[26] from <0,35> origEndIndex=35, rebuild<6,34>. TLCache: size=6, capacity=300, head=Entry[pView=PV@01d1fc04#1 <139,140>, WxH:8.0x17.0, chWxH=8.0x17.0
previous=null, next=Entry@14392982], tail=Entry[pView=PV@00a18d03#2 <0,3>, WxH:24.0x17.0, chWxH=24.0x17.0
previous=Entry@25106997, next=null] docView:
DV@00e02b04#141 <0,12781> incomMod=false, lengthyAE=0
Regions: C<580,12778> P<584,11839>, ChgFlags: H; visWidth:1274Gap: <0|0, vis[26]<442.0|1.099511630292E12
    [  0]: PV@00a18d03#2 <0,3> y=0.0, WxH:24.0x17.0, chWxH=24.0x17.0
    [  1]: PV@006a4b2f#2 <3,56> y=17.0, WxH:424.0x17.0, chWxH=424.0x17.0
    [  2]: PV@006e1aac#2 <56,96> y=34.0, WxH:320.0x17.0, chWxH=320.0x17.0
    [  3]: PV@00992d18#2 <96,100> y=51.0, WxH:32.0x17.0, chWxH=32.0x17.0
    [  4]: PV@005f977a#2 <100,139> y=68.0, WxH:312.0x17.0, chWxH=312.0x17.0
    ...
    [ 23]: PV@0186da74#2 <537,545> y=391.0, WxH:64.0x17.0, chWxH=64.0x17.0
    [ 24]: PV@006ffa8e#2 <545,580> y=408.0, WxH:280.0x17.0, 
   at org.netbeans.modules.editor.lib2.view.DocumentViewChildren.ensureParagraphsChildrenAndLayoutValid(DocumentViewChildren.java:531)
   at org.netbeans.modules.editor.lib2.view.DocumentViewChildren.paint(DocumentViewChildren.java:562)
   at org.netbeans.modules.editor.lib2.view.DocumentView.paint(DocumentView.java:706)
   at org.netbeans.modules.editor.lib2.view.EditorView.paint(EditorView.java:162)
   at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1434)
   at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:737)
Comment 1 MackSix 2012-05-02 21:27:02 UTC
Created attachment 118990 [details]
stacktrace
Comment 2 MackSix 2012-05-02 21:48:57 UTC
Created attachment 118992 [details]
Project to use for reproduction.

1) Open up attached project in NetBeans.
2) View Project windows in tree mode and Drag & Drop Model.java into "newpackage".
3) Undo & Redo a few times.

This Exception thrown. 

If not, this exception may be thrown: http://statistics.netbeans.org/analytics/exception.do?id=577245

Product Version: NetBeans IDE Dev (Build 201205020400)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 3 MackSix 2012-05-02 21:58:22 UTC
Also See: http://netbeans.org/bugzilla/show_bug.cgi?id=201922
Comment 4 MackSix 2012-05-03 16:51:22 UTC
Created attachment 119044 [details]
2nd Project - I opened it and this exception happened.

I opened the 2nd attached project in Build 201205030400 and this exception was immediately thrown.


Product Version: NetBeans IDE Dev (Build 201205030400)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 5 lolo_101 2012-05-03 19:08:36 UTC
Created attachment 119047 [details]
stacktrace

Just opened an old project and opened a java file in the editor
Comment 6 David Konecny 2012-05-07 08:17:54 UTC
Created attachment 119142 [details]
stacktrace
Comment 7 Exceptions Reporter 2012-05-07 08:18:54 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=187600
Comment 8 Michel Graciano 2012-05-09 14:11:54 UTC
Created attachment 119209 [details]
stacktrace

Opening a java file
Comment 9 David Konecny 2012-05-09 18:41:53 UTC
Created attachment 119233 [details]
stacktrace
Comment 10 MackSix 2012-05-09 19:53:55 UTC
This is related to staring netbeans and opening a project with an empty userdir and/or cache dir. I have repeated it several time by deleting the directories, but it does not do it every time.
Comment 11 Milutin Kristofic 2012-05-10 14:11:41 UTC
*** Bug 211294 has been marked as a duplicate of this bug. ***
Comment 12 Jesse Glick 2012-05-10 19:03:03 UTC
Created attachment 119314 [details]
stacktrace
Comment 13 Miloslav Metelka 2012-05-16 16:16:19 UTC
Hopefully fixed this time.
http://hg.netbeans.org/jet-main/rev/d2ea1ae5d745
Comment 14 Jesse Glick 2012-05-16 20:36:05 UTC
Created attachment 119547 [details]
stacktrace
Comment 15 Quality Engineering 2012-05-17 15:40:57 UTC
Integrated into 'main-golden', will be available in build *201205170950* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d2ea1ae5d745
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #211985 - IllegalStateException: Null children of pView[26] from <0,35> origEndIndex=35, rebuild<6,34>. TLCache: size=6, capacity=300, head=Entry[pView=PV@01d1fc04#1 <139,140>, WxH:8.0x17.0, chWxH=8.0x17.0 prev.
Comment 16 Jiri Prox 2012-05-21 15:09:08 UTC
Created attachment 119697 [details]
stacktrace

ISE when opening file, while all fold are set to collapse automatically
Comment 17 Jesse Glick 2012-05-21 19:06:12 UTC
Created attachment 119703 [details]
stacktrace