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 243735 - Crash on first startup and go on second try
Summary: Crash on first startup and go on second try
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 8.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords: JDK_8
: 244876 248188 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-10 13:58 UTC by lesar
Modified: 2014-11-03 15:20 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (79.23 KB, text/plain)
2014-04-10 13:58 UTC, lesar
Details
JDK crash report (99.34 KB, text/plain)
2014-04-15 15:17 UTC, lesar
Details
JVM crash log. (85.62 KB, text/plain)
2014-06-13 13:48 UTC, fedetxf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lesar 2014-04-10 13:58:16 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Linux version 3.8.0-35-generic running on amd64
Java; VM; Vendor = 1.8.0-ea
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.0-b66

(sorry I do a mistake and send this:
http://statistics.netbeans.org/analytics/exception.do?id=720821
I do not know how to delete it...)

Every time I started NB I have a carsh by
/home/leonardo/netbeans-8.0/platform/modules/lib/amd64/linux/libjnidispatch-340.so
so when I try to start the second time all go without errors.
I have Ubuntu 13.04 64bit
12 GB ram
To start NB I use a script that gererate this start in a bash:
exec /home/leonardo/netbeans-8.0/bin/netbeans --userdir "/home/leonardo/.netbeans/8.0" --open-group myGroup -J-Xms320m -J-XX:PermSize=320m -J-Xmx3072m -J-XX:MaxPermSize=3072m -J-Djava.net.preferIPv4Stack=true -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=on

can you help?

best regards
Comment 1 lesar 2014-04-10 13:58:24 UTC
Created attachment 146674 [details]
IDE log
Comment 2 Stanislav Aubrecht 2014-04-15 13:54:00 UTC
Please attach the JDK crash report, there is nothing in the IDE log.
Also try running with the latest JDK 8 instead of early access builds.
Comment 3 lesar 2014-04-15 15:17:06 UTC
Created attachment 146769 [details]
JDK crash report
Comment 4 Antonin Nebuzelsky 2014-04-18 12:56:33 UTC
A similar issue (crash in libglib-2.0 in Ubuntu, and second run working for some of the users) is discussed here:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1241101

Unfortunately the issues is not closed fixed on Ubuntu side, only some workaround are mentioned. One of them is installing libgtk-3.0. Someone also mentions that switching to the latest 14.04 should fix that problem. Can you go that path?
Comment 5 lesar 2014-04-18 13:26:05 UTC
Ok no problem. I have report the bug to let comunity know this bug.
I hope that when I upgrade my system this wil be fix the bug.

Thank you, best regards

P.S. Have I to change the status in started or resolved?
Comment 6 Antonin Nebuzelsky 2014-04-22 09:39:31 UTC
Please reopen this issue with new logs if you experience the crash after the upgrade.
Comment 7 fedetxf 2014-06-13 13:47:56 UTC
This is still happening on Ubuntu 14.04 with 

java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

libgtk-3-0 version 3.10.8-0ubuntu1.1

Linux 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

The first time you launch it, it crashes. The second time it works ok. I'll attach the jvm crash log.
Comment 8 fedetxf 2014-06-13 13:48:45 UTC
Created attachment 147668 [details]
JVM crash log.
Comment 9 Antonin Nebuzelsky 2014-06-23 12:11:55 UTC
Thanks for the additional information with 14.04 and 8u5.

A Java bug has been filed:
https://bugs.openjdk.java.net/browse/JDK-8047802

This issue will now be closed wontfix here as the potential fix is not going to be on NetBeans side.
Comment 10 IoiLam 2014-06-25 22:13:26 UTC
lesar and fedetxf, could you explain what "first time" and "second time" means?

I.e., first time in a bash window, or first time after login to the desktop, or first time after netbeans was installed, or first time after Linux OS is rebooted?

I am a member of the JDK team and I am trying to reproduce this problem.

If you can give me a detailed and reliable reproducible step, that will help a lot!

Thanks.
Comment 11 fedetxf 2014-06-26 13:37:01 UTC
> A Java bug has been filed:
> https://bugs.openjdk.java.net/browse/JDK-8047802

Only certain people can comment on the openjdk Jira system and I'm not one of them.

Anyway, here's how I reproduce it.

1) Turn computer on.
2) Log-in in Ubuntu
3) Launch NetBeans from the Ubuntu launcher
4) Wait until it crashes
5) Launch NetBeans from the Ubuntu launcher
6) Start coding.

It may have to be the first java app you launch since startup. It is not the first time you launch it after istallation. It is the first time you launch it after you log in. I have not tested if it happens after logging out and in again but not rebooting or if lanuching another Hava app first (like jedit) makes it not crash. JEdit never crashes like this.

Here's a video of the crash. I just turned the computer on, logged in, installed gtk-recordmydesktop, launched it and started recording.

http://youtu.be/Ch_unZxApvo
Comment 12 lesar 2014-06-27 14:32:13 UTC
(In reply to IoiLam from comment #10)
> lesar and fedetxf, could you explain what "first time" and "second time"
> means?
> 
> I.e., first time in a bash window, or first time after login to the desktop,
> or first time after netbeans was installed, or first time after Linux OS is
> rebooted?
> 
> I am a member of the JDK team and I am trying to reproduce this problem.
> 
> If you can give me a detailed and reliable reproducible step, that will help
> a lot!
> 
> Thanks.

first time after login to the desktop

thank you
Comment 13 Antonin Nebuzelsky 2014-09-01 08:22:21 UTC
*** Bug 244876 has been marked as a duplicate of this bug. ***
Comment 14 Antonin Nebuzelsky 2014-11-03 15:20:34 UTC
*** Bug 248188 has been marked as a duplicate of this bug. ***