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.
NetBeans IDE 4.2 [200508251800] on jdk 1.5.0_05 Most debugger actions - Step Into, Run to Cursor, Step Out ... - fails with same assertion error.
Created attachment 24265 [details] Assertion stack trace
I do not think this is a debugger problem. The actions work fine for me in older build with up-to-date debugger. Moving to java for evaluation...
These actions are considered as 'background scan sensitive'. You have started debugger before background scan was finished. Details at http://java.netbeans.org/ui/waitscanfinished.html Assertion is caused by calling JavaMetamodel.invokeAfterScanFinished() outside of AWT EventQueue. See method javadoc.
Finally reproduced. When the debugger is started via "Debug Project" or "Debug File" then all works O.K. Only when one needs to start debugging via "Step Into", or "Run To Cursor", etc. it fails with the assersion error. It's broken due to threading changes after the fix of issue #61542.
Thanks for the comments about background scanning.
Fixed in trunk. It's assured that J2SE actions are invoked on AWT thread: /cvs/debuggerjpda/ant/src/org/netbeans/modules/debugger/projects/FixActionProvider.java,v <-- FixActionProvider.java new revision: 1.16; previous revision: 1.15 /cvs/debuggerjpda/ant/src/org/netbeans/modules/debugger/projects/RunToCursorActionProvider.java,v <-- RunToCursorActionProvider.java new revision: 1.13; previous revision: 1.12 /cvs/debuggerjpda/ant/src/org/netbeans/modules/debugger/projects/StepIntoActionProvider.java,v <-- StepIntoActionProvider.java new revision: 1.13; previous revision: 1.12
Verified in build 200510100858