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 262268

Summary: IDE hang when saving a file
Product: ide Reporter: _ gtzabari <gtzabari>
Component: CodeAssignee: issues@ide <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: Thread dump

Description _ gtzabari 2016-05-30 01:55:17 UTC
Created attachment 159913 [details]
Thread dump

I hit CTRL+S to save an open Java file. The IDE hung and had to be killed. Before terminating the process, I took a thread dump for your review (attached).

On a side-note, Netbeans is configured to run the following operations "On Save":

1. Reformat all lines
2. Remove trailing whitespace from all lines
3. Remove unused imports
4. Organize imports

I have run across this issue dozens of times, but I can't figure out exact repro steps (it seems to be random) so I guess we're stuck working with the thread dump...
Comment 1 _ gtzabari 2016-05-30 01:56:12 UTC
I forgot to mention, my IDE version is:

Product Version: NetBeans IDE Dev (Build 201605260002)
Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14
System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev

and when I say the IDE hung, I mean I get the hourglass icon and the UI won't respond to any mouse clicks.
Comment 2 Exilor 2016-12-20 21:15:18 UTC
I also noticed this issue after updating to the latest version of Netbeans. Running on Ubuntu 14.04.

I fixed it by removing the Pinnable Watches for that class. The hanging on save only occurred in the file with Pinnable Watches, but didn't occur in files without them.