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 238567

Summary: Initial run crashes JRE if icon says run minimized, WinXP
Product: platform Reporter: err <err>
Component: JDK ProblemsAssignee: Antonin Nebuzelsky <anebuzelsky>
Status: NEW ---    
Severity: normal CC: lfischmeistr
Priority: P4    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: JRE crash report

Description err 2013-11-19 16:56:50 UTC
Created attachment 142368 [details]
JRE crash report

First run, attached jre crash report. Change to "Run: Normal Window" and it starts up OK. Probably has to do with import option. After first startup, go back to "Run: minimized" and it starts up OK.

Target:
    "C:\a\j\NetBeans 7.4\bin\netbeans.exe" --console new --userdir "%HOME%\NB-TEST\7.4\userdir" --cachedir "%HOME%\NB-TEST\7.4\cachedir"
Run:
    Minimized

BTW, I filed a bug report as mentioned in hs_err_*, but that's all a black hole to me, so in case NB doesn't know.
Comment 1 err 2013-11-19 18:24:05 UTC
Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 2 Antonin Nebuzelsky 2013-12-27 16:20:47 UTC
Libor, take this one. Thanks.
Comment 3 Libor Fischmeistr 2014-01-21 10:19:40 UTC
I cannot confirm that any error occurs when starting with "Run: minimized". NetBeans is normally launched. The only bug is that it is not minimized, but I consider it P4.
Comment 4 err 2014-01-21 19:29:25 UTC
The JRE didn't crash?

The setup where I encountered the crash:
- JDK-1.7, current WinXP
- there's a previous release on the system, NB-7.3
- install NB-7.4 (or use a clear userdir for the run)
- make the changes to the icon as shown in the description
  (--console new, Run:minimized)

Note the minimized refers to the console created by '--console new' not to the NB main window. On startup, expect to see the "Import Options from previous release" dialog.

- double click icon to run NB 
Observe: the JRE crashes. See the attached crash report, its plain text.


I'm putting this back to P3, because you didn't mention the import options. (note this only crashes the JRE when it is going to do the import options, the first run with a new userdir). If you can not reproduce the crash, then you can close it as WorksForMe or something like that (but it does crash consistently for me); the bug is not about NB main JFrame not minimized.
Comment 5 Libor Fischmeistr 2014-01-22 10:24:18 UTC
(In reply to err from comment #4)
> Note the minimized refers to the console created by '--console new' not to
> the NB main window. On startup, expect to see the "Import Options from
> previous release" dialog.

The problem is not caused by --console new parameter but by the "Import settings" dialog. Do the first run without "Run: minimized" option, just run it normally and pass the "Import settings" dialog. Then you can run it minimized and you will see it works. I'll try to investigate where is the problem but I still see it more P4. It's very unusual corner case...
Comment 6 Libor Fischmeistr 2014-01-22 12:58:51 UTC
Fails on core.startup\src\org\netbeans\core\startup\Main.java line 552

Launcher correctly starts IDE but when trying to show License or Import Settings dialog IDE unexpectedly fails.

Reassigning to Module System.
Comment 7 Jaroslav Tulach 2014-04-25 10:06:41 UTC
Crash of JDK is usually a JDK problem. Apparently JDK's AWT implementation is not happy when running minimized.