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 258963 - Setting --font-size crashes Netbeans on start-up
Summary: Setting --font-size crashes Netbeans on start-up
Status: REOPENED
Alias: None
Product: ide
Classification: Unclassified
Component: UI (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-21 22:19 UTC by nimnio
Modified: 2016-09-22 18:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file from failed start. (48.30 KB, application/octet-stream)
2016-04-21 22:19 UTC, nimnio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nimnio 2016-04-21 22:19:12 UTC
Created attachment 159389 [details]
Log file from failed start.

In netbeans.conf I add --font-size 16 to the netbeans_default_options property.

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true --font-size 16"

When I start Netbeans, the splash screen shows (displaying "Start Modules, Downloading Modules", then the splash screen disappears and Netbeans doesn't not start.

No Netbeans or Java processes are running in the task manager.

If I remove the font-size property, Netbeans starts successfully.

Here is the info from the Netbeans About page:

Product Version: NetBeans IDE 8.1 (Build 201510222201)
Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
Java: 1.8.0_73; Java HotSpot(TM) 64-Bit Server VM 25.73-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_73-b02
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\David.Sharpe\AppData\Roaming\NetBeans\8.1
Cache directory: C:\Users\David.Sharpe\AppData\Local\NetBeans\Cache\8.1

A "C:\Users\David.Sharpe\AppData\Roaming\NetBeans\8.1\var\log\messages.log" file from a failed start is attached (but it doesn't show an errors that I can see).
Comment 1 Jiri Prox 2016-04-21 22:50:14 UTC
If the IDE disappears it indicates virtual machine crash. 
Can you please search for hs_err_pid* file. It should be in your home dir or in the temp dir. 
There should be more info.

Thanks.
Comment 2 nimnio 2016-04-21 23:21:01 UTC
I am having trouble finding a hs_err_pid* file.

When I run a search for it under "C:\Program Files", I find the following files:

- "C:\Program Files\NetBeans 8.0.2\hs_err_pid8308.log"
- "C:\Program Files\NetBeans 7.4\bin\hs_err_pid5764.log"
- "C:\Program Files\NetBeans 7.4\hs_err_pid7564.log"

But no files for Netbeans 8.1.

I also searched %TEMP% ("C:\Users\David.Sharpe\AppData\Local\Temp"), "C:\Users\David.Sharpe\AppData\Local\NetBeans", "C:\Users\David.Sharpe\AppData\Roaming\NetBeans", and "C:\Users\David.Sharpe" but found no files.

I tried running Netbeans as Administrator to see if the file wasn't being created because of permissions.
Comment 3 cedrikdubois 2016-09-22 18:38:15 UTC
You probably figured it out by not but by the off chance you didn't, I had the
same exact problem. For me I just had to close the config file before opening netbeans and it would work.