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.
Product Version = NetBeans IDE 8.2 (Build 201609300101) Operating System = Windows 10 version 10.0 running on amd64 Java; VM; Vendor = 1.8.0_101 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.101-b13 Reproducibility: Happens every time STEPS: * Open any file * Click on Tools >> Diff.... ACTUAL: Program closes without any message. EXPECTED: Expect to be able to use the Diff feature on two files.
Created attachment 164278 [details] IDE log
The only changes I've made recently was installing the Windows 10 'Windows Creators Update'. I have a notebook computer also running Windows 10 (Not creators update), and the Diff feature still works fine there.
Also, I've tried running Netbeans with admin permissions, and under compatibility mode (windows 8), and it still closes when I click the Diff menu item.
PLEASE NOTE In addition to the Diff menu item causing a crash, all the Project menu items did the same. So I could not open or create new projects. Obviously this rendered the program pretty much useless. Also, the program's uninstaller/installer process would close without completing. I thought to uninstall and then reinstall, but could not remove the program without manually deleting everything. I updated my Java - did not help. Deleted an older (8.0.2) version. Did not help. I rolled my Windows update back to the previous version, and now Netbeans works again. So there has to be something in the Windows update that conflicts with this program. I had no issues with any other programs.
Looks like the Creators Update broke the AWT/File dialogs. Might be somehow related to https://bugs.openjdk.java.net/browse/JDK-8178873. A crash log should be created after the IDE crashes - please search for the hs_err_pid<pid>.log or start NetBeans with -J-XX:ErrorFile=<location>/hs_err_pid.log parameter to define its location and provide the file here. Based on the tips already provided on the web, using a cross platform LaF (netbeans.exe --laf Metal or netbeans.exe --laf Nimbus) might help. Please let us know the result.
Created attachment 164324 [details] error log
Created attachment 164325 [details] error log
I found two error logs, but I'm not certain they pertain to this issue. As noted above, I use Netbeans for work, so I rolled back the Windows update which fixed the error, but now I can't test or generate new error reports.
Thanks for the logs - the crash is caused by the above mentioned JDK bug (sun.awt.shell.Win32ShellFolder2.getDisplayNameOf(JJI)Ljava/lang/String fails). In case you need to install the Creators Update in future, running NetBeans using the Metal or Nimbus LaF should help until JDK provides a fix.