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.
Created attachment 113766 [details] IDE session log file at deadlock Sorry, next deadlock here - described initially in this forum thread (with attachment): http://forums.netbeans.org/viewtopic.php?t=45095 I'm also attaching log file after IDE start and before closing the IDE. Starting with clean userdir doesn't help also.
It seems like the root of problem is a set of file opened in the editor: if to close all editor tabs before closing the IDE, chances to successfully open next IDE sessions are high: I have sequentially done it few times (5-6) just now.
From the screenshot it seems that the indexing thread is not yet active it waits until the projects are opened and then it starts to do the scanning. As there is the "Opening Projects" progress it does not seem to be parsing api. Please can you attach the thread dump when the deadlock happened. See http://wiki.netbeans.org/GenerateThreadDump how to generate the thread dump. Thanks!
Created attachment 113818 [details] thread dump on deadlock As requested, a dump is attached.
Thanks!
caused by J2SEProject$ProjectOpenedHookImpl.projectOpened
Fixed jet-main c2e8e416dc43
Tomas, thanks! Are there any chances the fix will be merged into final (or next rc) 7.1?
Depends on QA. Only issues approved by QA are integrated into 7.1. If it's not integrated into 7.1 it will become part of patch release 7.1.1. If you think that it should be a part of 7.1 increase the priority otherwise no chances. Adding the boss of QA to cc list. :-)
Tomas, As far as I have found a workaround (to close all editor tabs before closing IDE session), I'm not sure it would be honest from my side to increase the priority. OTOH the issue is too outstanding - to my taste, of course - to be ignored by QA. But it is my taste only :-) And thanks again for quick fixing.
Increasing at least to P2.
We have just one report so far .... Tomasi, do you think it's just recent regression ? If so we will fix it, if not I suggest to leave it open for 7.1 (we are close to FCS date) and fix it in 7.1.1(patch1).
The fixed code is there from time of NB 6.0. Maybe some thread ordering changed, but it's hard to say with lazy projects.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/c2e8e416dc43 User: Tomas Zezula <tzezula@netbeans.org> Log: #205859:deadlock on projects scanning
(In reply to comment #12) > The fixed code is there from time of NB 6.0. Maybe some thread ordering > changed, but it's hard to say with lazy projects. So leaving for the patch ...
I have built the IDE from main-golden. Unfortunately the issue still exists with absolutely the same symptoms.
Can you please capture new thread dump and attach it here? Thanks
This deadlock cannot happen as the caller thread does not hold any lock. If you have deadlock it's probably some other problem. Please attach a stack trace.
Created attachment 114927 [details] thread dump on deadlock, after fix, from golden The next thread dump is attached. Just the only editor tab was opened with htm-file. As far as I'm not sure why reopened bug was closed, I don't reopen it again :-)
The bug was closed as it's fixed :-) According to the new stack trace you have a deadlock in Scala support plugin. The relevant stack trace where locks are taken in wrong order is: at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:200) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:106) at org.netbeans.modules.scala.project.MainClassUpdater.addFileChangeListener(MainClassUpdater.java:227) at org.netbeans.modules.scala.project.MainClassUpdater.<init>(MainClassUpdater.java:110) at org.netbeans.modules.scala.project.J2SEProject$ProjectOpenedHookImpl.projectOpened(J2SEProject.java:560) So I will create a new issue on Scala later today and add you on CC.
(In reply to comment #19) > So I will create a new issue on Scala later today and add you on CC. Thanks!
I've created a new issue for NB-Scala http://java.net/bugzilla/show_bug.cgi?id=3575
Tomas, I'm not registered at java.net, but I have tried your patch for Scala plugin - the problem has gone, thanks!
verified
Integrated into release71_fixes: 4a2ec826d093, 6560382c51b3
Integrated into 'releases', will be available in build *201202102200* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/4a2ec826d093 User: Tomas Zezula <tzezula@netbeans.org> Log: #205859:deadlock on projects scanning