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.
This issue was reported manually by jglick. It already has 1 duplicates Build: NetBeans IDE Dev (Build 20140919-94fb7d47c056) VM: Java HotSpot(TM) 64-Bit Server VM, 24.65-b04, Java(TM) SE Runtime Environment, 1.7.0_67-b01 OS: Linux User Comments: jglick: Had switched Git branch from shell. IDE froze. Had to use jkillthread to kill the "Maven project reloading" thread. Maximum slowness yet reported was 131078 ms, average is 131078
Created attachment 149426 [details] nps snapshot
Created attachment 149427 [details] Thread dump
IDE did not recover without killing thread holding the Mutex. After that, it was sort of responsive, but classpath scanning stalled out, so I restarted and it is fine after the restart.
Maven Project Reloading: - FileObjectFactory.invalidateSubtree -> locks allIBaseLock.writeLock - BaseFileObj.invalidateFO -> waits for ChildrenCache.mutex.writeAccess Pending refresh: - Watcher.unlock -> locks Watcher - FileObjectFactory.getCachedOnly -> waits for allIBaseLock.readLock org.netbeans.modules.maven.cos.CopyResourceOnSave: - FolderObj.createDataImpl -> locks ChildrenCache.mutex.writeAccess - FolderObj.createDataImpl -> waits for Watcher There should be no need to call FileObject.getParent() under Watcher's lock. http://hg.netbeans.org/core-main/rev/8b590a349f29 Thank you very much for the thread dump, Jesse.
Integrated into 'main-silver', will be available in build *201410020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/8b590a349f29 User: Jaroslav Havlin <jhavlin@netbeans.org> Log: #247371: Deadlock involving Watcher, BaseFileObj and FileObjectFactory