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 240634 - IllegalStateException: Interval lost from root, please report this exception. Related to bug 222703.
Summary: IllegalStateException: Interval lost from root, please report this exception....
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 225498 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-01-18 05:28 UTC by mortoza
Modified: 2016-04-22 01:53 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 202293


Attachments
stacktrace (3.19 KB, text/plain)
2014-01-18 05:28 UTC, mortoza
Details
stacktrace (3.26 KB, text/plain)
2014-06-03 21:50 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mortoza 2014-01-18 05:28:06 UTC
Build: NetBeans IDE 8.0 Beta (Build 201401141042)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43
OS: Windows 7

User Comments:
mortoza: When I moved a component in GUI interface, got this error

infonaut: Free Form Layouter, try to get some panels into the right position

gwimag: Design frame (JDialog)

kingpatron: I was working with forms, when I got this error.

GUEST: Unrelated Exception




Stacktrace: 
java.lang.IllegalStateException: Interval lost from root, please report this exception. Related to bug 222703.
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.checkRoot(LayoutFeeder.java:1802)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.addToGroup(LayoutFeeder.java:1267)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.addInterval(LayoutFeeder.java:1179)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:473)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:888)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:849)
Comment 1 mortoza 2014-01-18 05:28:08 UTC
Created attachment 144094 [details]
stacktrace
Comment 2 Tomas Pavek 2014-02-07 18:33:07 UTC
With this exception we have some more data in the log that narrow down the possible situations that might cause the data inconsistency, but it is still not enough (basically missing the state before the actual mouse operation).

Any chance anybody has a reproducible test case?

If this bug happened to you please save the form at the moment and attach it here, together with the log file. That would help a lot. Thanks.
Comment 3 Tomas Pavek 2014-02-10 10:30:38 UTC
*** Bug 225498 has been marked as a duplicate of this bug. ***
Comment 4 Tomas Pavek 2014-02-11 11:10:31 UTC
Added more diagnostics to this exception, should be in final 8.0. Next time it happens we should get an additional stacktrace showing where the actual inconsistency (a removed parent group) was caused.
Comment 5 Exceptions Reporter 2014-06-03 21:50:12 UTC
Created attachment 147560 [details]
stacktrace

<Please provide a description of the problem or the steps to reproduce>
i was designing using the Jpanel
Comment 6 Tomas Pavek 2015-09-22 13:01:24 UTC
The new logs from 8.0 provided some information about where the problem happened, though still not enough to reproduce the problem. I've tried to add some code that should fix the situation on the revealed three places.

http://hg.netbeans.org/jet-main/rev/153c1816141e

One case (exc 760176) remains special and completely unclear how it could happen.

Keeping the bug opened, let's see if we get some new exceptions after the fix in 8.1.
Comment 7 Quality Engineering 2015-09-23 01:25:16 UTC
Integrated into 'main-silver', will be available in build *201509230002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/153c1816141e
User: Tomas Pavek <tpavek@netbeans.org>
Log: #240634: some more fixes against using groups optimized out from hierarchy (original bug 222703)
Comment 8 Quality Engineering 2015-10-01 05:02:45 UTC
Integrated into 'main-silver', will be available in build *201510010328* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e73a7a30219c
User: Tomas Pavek <tpavek@netbeans.org>
Log: #240634 (might be related): don't allow dragging layout operation to continue if some component is removed/added meanwhile (from pressing delete, Ctrl-Y, etc)