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 244012

Summary: Deadlock in IDE after adding method
Product: java Reporter: scanti <scanti>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED DUPLICATE    
Severity: normal CC: sdedic
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: the threaddump
IDE log with exception inside
Another IDE log

Description scanti 2014-04-22 20:59:49 UTC
Created attachment 146897 [details]
the threaddump

I was coding a Java file when I called a non existent method on a object like

myObject.getSomething() and I waited for the hint that would had asked me to create the method, but the ide became irresponsible and the the window became black and I had to kill it forcefully. 

I was usuing jdk 8.0

I am attaching the thread dump
Comment 1 scanti 2014-04-22 21:09:17 UTC
Created attachment 146898 [details]
IDE log with exception inside
Comment 2 scanti 2014-04-22 21:10:13 UTC
It happened again with jdk 1.8.05, I am attaching the log for both times
Comment 3 scanti 2014-04-22 21:10:52 UTC
Created attachment 146899 [details]
Another IDE log
Comment 4 scanti 2014-04-22 21:24:02 UTC
It happened three times in a row, and this time when saving, it is becoming very annoying!
Comment 5 Miloslav Metelka 2014-05-14 15:14:08 UTC
There's an assertion error thrown from javac parser which (according to jlahoda) could cause the symptoms of this issue so reassigning to java/hints for further evaluation.
Comment 6 Svata Dedic 2014-05-16 08:45:16 UTC
Dusane, there's an assertion coming from javac, which may slow down / break the on-save task. On the threaddump, the save task is still runnable, but possibly blocks EDT for an extended period of time.

Reporter: if annoying, please disable the Tools - Editor -> On save, Remove Unused imports and Organize imports.
Comment 7 Dusan Balek 2015-03-12 08:38:30 UTC
AssertionError already fixed.

*** This bug has been marked as a duplicate of bug 237828 ***