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 235928 - Deadlock scanning after change name of project with folder
Summary: Deadlock scanning after change name of project with folder
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-13 10:25 UTC by MackSix
Modified: 2013-09-16 14:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file from when deadlock occurred. (286.77 KB, text/plain)
2013-09-13 10:25 UTC, MackSix
Details
Thread dump from when deadlock occurred. (36.36 KB, text/plain)
2013-09-13 10:26 UTC, MackSix
Details
Screenshot of scanning deadlock. (188.06 KB, image/png)
2013-09-13 10:27 UTC, MackSix
Details
Screenshot of blank project folder in Project Window. (246.61 KB, image/png)
2013-09-13 10:30 UTC, MackSix
Details
Log file from when blank file showed in Project Window. (95.55 KB, text/plain)
2013-09-13 10:31 UTC, MackSix
Details
Screenshot of empty file in Project Window. (42.79 KB, image/png)
2013-09-13 10:36 UTC, MackSix
Details
Log file from when empty file showed in project window. (879.92 KB, text/plain)
2013-09-13 10:36 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-09-13 10:25:28 UTC
Created attachment 140032 [details]
Log file from when deadlock occurred.

1. Open attached project in NetBeans.
2. Open 4 Java files out of 2 packages.
3. Rename the Project and choose to rename the directory also.
4. Immediately after the name changes repeat steps 2 & 3.
5. Do that 3 or 4 times.

Result: Scanning deadlocks or after project is renames, the project folder shows only as a blank file.

See attached screenshots, log files, thread dump.

Product Version: NetBeans IDE 7.4 RC1 (Build 201309112301)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b40
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 MackSix 2013-09-13 10:26:28 UTC
Created attachment 140033 [details]
Thread dump from when deadlock occurred.

Thread dump from when deadlock occurred. Thread dump says there is one deadlock.
Comment 2 MackSix 2013-09-13 10:27:28 UTC
Created attachment 140034 [details]
Screenshot of scanning deadlock.
Comment 3 MackSix 2013-09-13 10:30:10 UTC
Created attachment 140035 [details]
Screenshot of blank project folder in Project Window.

No Deadlock occurred when this happen. Only way to get source folder back was to restart NetBeans.
Comment 4 MackSix 2013-09-13 10:31:20 UTC
Created attachment 140036 [details]
Log file from when blank file showed in Project Window.
Comment 5 MackSix 2013-09-13 10:32:42 UTC
I have heap dumps and the project is JEDIT 5.1 setup as a NetBeans project and it's 45MB zipped, so I will not upload all that unless it is needed.
Comment 6 MackSix 2013-09-13 10:33:18 UTC
Comment on attachment 140035 [details]
Screenshot of blank project folder in Project Window.

Sorry, wrong screenshot.
Comment 7 MackSix 2013-09-13 10:34:54 UTC
Comment on attachment 140036 [details]
Log file from when blank file showed in Project Window.

Sorry wrong log file.
Comment 8 MackSix 2013-09-13 10:36:00 UTC
Created attachment 140037 [details]
Screenshot of empty file in Project Window.

Screenshot of empty file in Project Window. A deadlock did not occur when this happened.
Comment 9 MackSix 2013-09-13 10:36:35 UTC
Created attachment 140038 [details]
Log file from when empty file showed in project window.
Comment 10 Tomas Zezula 2013-09-16 11:26:12 UTC
"Pending refresh":
	at org.openide.filesystems.DeepListener.relisten(DeepListener.java:100)
	- waiting to lock <0x00000007f8b23810> (a org.openide.filesystems.DeepListener)
	at org.openide.filesystems.DeepListener.fileFolderCreated(DeepListener.java:129)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectKeeper.fileFolderCreated(FileObjectKeeper.java:285)
	- locked <0x00000007f89236a0> (a org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectKeeper)


vs

"FileUtil-Refresh-All":
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectKeeper.removeRecursiveListener(FileObjectKeeper.java:108)
	- waiting to lock <0x00000007f89236a0> (a org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectKeeper)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.removeRecursiveListener(FolderObj.java:687)
	at org.openide.filesystems.DeepListener.relisten(DeepListener.java:105)
	- locked <0x00000007f8b23810> (a org.openide.filesystems.DeepListener)
Comment 11 Jaroslav Havlin 2013-09-16 14:25:03 UTC
Fixed in http://hg.netbeans.org/core-main/rev/4a00a644404c.
It should work correctly now. Please verify.
Thank you very much for reporting and providing dumps and logs.