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: | deadlock in options dialog | ||
---|---|---|---|
Product: | cnd | Reporter: | Tomas Danek <musilt2> |
Component: | execution | Assignee: | Andrew Krasny <akrasny> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | anebuzelsky |
Priority: | P2 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
threaddump
threaddump2 |
rising to P1, 100% reproducible for me, just try to invoke Tools | Options > Editor > Hints I can not reproduce the issue on Win XP. Will try to find Win 7 though not sure if it depends on the OS. Anyway, could you please try to run NetBeans with a clean %USERDIR%\.netbeans\dev folder? Does this happen again? Do you have any logs in %USERDIR%\.netbeans\dev\var\log folder? If the issue is still reproducible, could you please, give me exact steps in order I could do the same. Well, I found Windows 7 and tried to reproduce. The only similar situation happened when "Unpacking index" process was in progress. While this time any interaction with UI was really slow and sometimes IDE seemed to be frozen but in several seconds it started working again. I agree it is uncomfortable and there are many bug reports about slowness in maven. But I couldn't reproduce this particular issue with Hints. So downgrading to P2 and marking as incomplete. Please give the exact steps if you are still able to reproduce. Anyway there is no a deadlock according to the thread dump. AWT thread is waiting for org.netbeans.modules.options.CategoryModel.masterLookupTask to be finished. So either this task takes too much time to finish or another process takes all the CPU resources and doesn't let it to be finished at the reasonable time. Will investigate. well, on my setup 100% reproducible, even with fresh userdir...AWT is blocked for > 5 min, IDE must be killed:( Could you please describe what exactly you do to reproduce the bug. Something like the following: 1. Run the IDE (what distribution?) 2. Open (or Create?) for example a Maven Java Application (please describe more accurately, please note if the IDE runs any processes like "scanning projects" or another) 3. Then open tools -> Options -> Editor -> Hints 4. IDE is freezing Is the thread dump is the same as the one you attached before? I need your help to understand what is happening on your setup. 1) start ide (java distro) 2) invoke Tools | Options > Editor > Hints that's all. Tried this time with jdk 1.7ea, the same result. Will generate a new thread dump. Created attachment 104164 [details]
threaddump2
Thank you, Tomas. It definitely sticks in org.netbeans.modules.options.CategoryModel.masterLookupTask. Will investigate. Looks like a problem in Dlight module to me. Thread "AWT-EventQueue-0" is waiting for thread "org.netbeans.modules.options.CategoryModel" to finish which hangs in initialization of dlight's LocalTerminalAction. The action's constructor calls into LocalTerminalAction.getEnvironment() which triggers and waits for another thread ("Default RequestProcessor") and that thread is hanging in some native execution. Should be fixed in Dlight IMO. Thank you, Tonda! org.netbeans.modules.nativeexecution.ExecutionEnvironmentFactoryServiceImpl.getLocalHostInfo() method runs another thread that executes HostInfoUtils.getHostInfo(LOCAL) method. Looks like problem is somewhere there. Reassigning to ide. Thank you, Tonda! org.netbeans.modules.nativeexecution.ExecutionEnvironmentFactoryServiceImpl.getLocalHostInfo() method runs another thread that executes HostInfoUtils.getHostInfo(LOCAL) method. Looks like problem is somewhere there. Reassigning to ide. *** This bug has been marked as a duplicate of bug 193186 *** Hmm... Not sure it is a duplicate. Andrew, can you take a look, please. It is a duplicate of that bug. I'm pretty sure it is not a deadlock, but 'just' a big pause in response. This is true that the problem was caused by getLocalHostInfo(). Now this should be fixed. Tomas Musil: could you, please, confirm that the problem is gone? Thanks! *** This bug has been marked as a duplicate of bug 193186 *** i am not able to reproduce anymore, consider as verified. Thanks! |
Created attachment 104060 [details] threaddump Product Version: NetBeans IDE Dev (Build 201012130001) Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01 System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Users\tester\.netbeans\dev --------------------------- working with maven project, tried to change in Tools|Options > Editor > Hints but IDE froze. Generated thread dump (attached) before killing it.