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 270591 - Every time I just click on Diff... the program closes without any message.
Summary: Every time I just click on Diff... the program closes without any message.
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Windows 10
: P1 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-08 17:41 UTC by Bruski
Modified: 2017-05-16 08:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (44.36 KB, text/plain)
2017-05-08 17:41 UTC, Bruski
Details
error log (25.05 KB, application/octet-stream)
2017-05-15 17:55 UTC, Bruski
Details
error log (25.14 KB, application/octet-stream)
2017-05-15 17:55 UTC, Bruski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bruski 2017-05-08 17:41:46 UTC
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.
Comment 1 Bruski 2017-05-08 17:41:48 UTC
Created attachment 164278 [details]
IDE log
Comment 2 Bruski 2017-05-08 18:49:40 UTC
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.
Comment 3 Bruski 2017-05-08 18:51:39 UTC
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.
Comment 4 Bruski 2017-05-11 15:53:51 UTC
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.
Comment 5 Jiri Sedlacek 2017-05-15 14:07:53 UTC
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.
Comment 6 Bruski 2017-05-15 17:55:10 UTC
Created attachment 164324 [details]
error log
Comment 7 Bruski 2017-05-15 17:55:30 UTC
Created attachment 164325 [details]
error log
Comment 8 Bruski 2017-05-15 17:57:34 UTC
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.
Comment 9 Jiri Sedlacek 2017-05-16 08:51:01 UTC
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.