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.
Summary: | AssertionError: Tried to set a selected component that was not in the array of open components. ToSelect: org.netbeans.modules.git.ui.diff.DiffTopComponent[PaymentController.java [ Diff ],0,0,891x597 | ||
---|---|---|---|
Product: | platform | Reporter: | athompson <athompson> |
Component: | Window System | Assignee: | Stanislav Aubrecht <saubrecht> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | arsi_sk, athompson |
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 213916 |
Attachments: | stacktrace |
Description
athompson
2014-12-04 18:40:34 UTC
Created attachment 150890 [details]
stacktrace
There are many exceptions in the attached log file so the latest one reported here is probably just a side-effect of some earlier exception. Please provide some steps to reproduce (with a clean user dir) and reopen, thanks. Yeah, IIRC there was an OOME as well. Hasn't happened again. Can you verify an incomplete bug? (In reply to athompson from comment #3) > Yeah, IIRC there was an OOME as well. Hasn't happened again. Can you verify > an incomplete bug? You can reopen and then close/verify. Or just leave it as incomplete. I have the same problem, it happens randomly and I find that the problem is here: From change event of Windows2Local/Components/AlarmEditorTopComponent.settings is called PersistenceManager.removeTopComponentForDataObject(DataObject dob) and dob.getCookie(InstanceCookie.class) returns null it deletes the topcomponent from the registry. Subsequently PersistenceManager.getTopComponentPersistentForID creates a new instance. AbstractTabbedImpl.setTopComponents then compares different instances of same topcomponent and run into AssertionError I added to PersistenceManager.removeTopComponentForDataObject(DataObject dob) InstanceCookie ic = dob.getCookie(InstanceCookie.class); InstanceCookie ic2 = dob.getLookup().lookup(InstanceCookie.class); and the result is an interesting.. ic = null ic2=InstanceDataObject@342c4b0e[MultiFileObject@73b8337e[Windows2Local/Components/AlarmEditorTopComponent.settings |