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 244876 - Netbeans crash on start
Summary: Netbeans crash on start
Status: RESOLVED DUPLICATE of bug 243735
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0
Hardware: PC Linux
: P1 normal with 1 vote (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-03 23:21 UTC by mjr_1974
Modified: 2014-09-01 08:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
error log (64.40 KB, text/x-log)
2014-08-22 14:18 UTC, bhopps_2
Details
Log file (80.99 KB, text/x-log)
2014-08-26 17:10 UTC, mjr_1974
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mjr_1974 2014-06-03 23:21:10 UTC
Netbeans shows the splash screen centered between the 2 monitors, and then dissapears: the main GUI is never shown. A second call brings the splash screen centered in the main screen and (rarely) shows the GUI.

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)

Linux 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux


Executing Netbeans from command line rises exeption:

~ $ /bin/sh "/home/marcelo/netbeans-8.0/bin/netbeans"
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=32m; support was removed in 8.0
/home/marcelo/netbeans-8.0/platform/lib/nbexec: line 462:  7176 Segmentation fault      "/usr/lib/jvm/java-8-oracle/bin/java" -Djdk.home="/usr/lib/jvm/java-8-oracle" -classpath "/home/marcelo/netbeans-8.0/platform/lib/boot.jar:/home/marcelo/netbeans-8.0/platform/lib/org-openide-modules.jar:/home/marcelo/netbeans-8.0/platform/lib/org-openide-util.jar:/home/marcelo/netbeans-8.0/platform/lib/org-openide-util-lookup.jar:/home/marcelo/netbeans-8.0/platform/lib/locale/boot_ja.jar:/home/marcelo/netbeans-8.0/platform/lib/locale/boot_pt_BR.jar:/home/marcelo/netbeans-8.0/platform/lib/locale/boot_ru.jar:/home/marcelo/netbeans-8.0/platform/lib/locale/boot_zh_CN.jar:/home/marcelo/netbeans-8.0/platform/lib/locale/org-openide-modules_ja.jar:/home/marcelo/netbeans-8.0/platform/lib/locale/org-openide-modules_pt_BR.jar:/home/marcelo/netbeans-8.0/platform/lib/locale/org-openide-modules_ru.jar:/home/marcelo/netbeans-8.0/platform/lib/locale/org-openide-modules_zh_CN.jar:/home/marcelo/netbeans-8.0/platform/lib/locale/org-openide-util_ja.jar:/home/marcelo/netbeans-8.0/platform/lib/locale/org-openide-util-lookup_ja.jar:/home/marcelo/netbeans-8.0/platform/lib/locale/org-openide-util-lookup_pt_BR.jar:/home/marcelo/netbeans-8.0/platform/lib/locale/org-openide-util-lookup_ru.jar:/home/marcelo/netbeans-8.0/platform/lib/locale/org-openide-util-lookup_zh_CN.jar:/home/marcelo/netbeans-8.0/platform/lib/locale/org-openide-util_pt_BR.jar:/home/marcelo/netbeans-8.0/platform/lib/locale/org-openide-util_ru.jar:/home/marcelo/netbeans-8.0/platform/lib/locale/org-openide-util_zh_CN.jar:/usr/lib/jvm/java-8-oracle/lib/dt.jar:/usr/lib/jvm/java-8-oracle/lib/tools.jar" -Dnetbeans.default_userdir_root="/home/marcelo/.netbeans" -Dnetbeans.running.environment=gnome -Dnetbeans.dirs="/home/marcelo/netbeans-8.0/nb:/home/marcelo/netbeans-8.0/ergonomics:/home/marcelo/netbeans-8.0/ide:/home/marcelo/netbeans-8.0/extide:/home/marcelo/netbeans-8.0/java:/home/marcelo/netbeans-8.0/apisupport:/home/marcelo/netbeans-8.0/webcommon:/home/marcelo/netbeans-8.0/websvccommon:/home/marcelo/netbeans-8.0/enterprise:/home/marcelo/netbeans-8.0/mobility:/home/marcelo/netbeans-8.0/profiler:/home/marcelo/netbeans-8.0/python:/home/marcelo/netbeans-8.0/php:/home/marcelo/netbeans-8.0/identity:/home/marcelo/netbeans-8.0/harness:/home/marcelo/netbeans-8.0/cnd:/home/marcelo/netbeans-8.0/dlight:/home/marcelo/netbeans-8.0/groovy:/home/marcelo/netbeans-8.0/extra:/home/marcelo/netbeans-8.0/javacard:/home/marcelo/netbeans-8.0/javafx:" -Dnetbeans.home="/home/marcelo/netbeans-8.0/platform" '-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade' '-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense' '-XX:MaxPermSize=384m' '-Xmx1024m' '-client' '-Xss2m' '-Xms32m' '-XX:PermSize=32m' '-Dapple.laf.useScreenMenuBar=true' '-Dapple.awt.graphics.UseQuartz=true' '-Dsun.java2d.noddraw=true' '-Dsun.java2d.dpiaware=true' '-Dsun.zip.disableMemoryMapping=true' -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="/home/marcelo/.netbeans/8.0/var/log/heapdump.hprof" -splash:"/home/marcelo/.cache/netbeans/8.0/splash.png" org.netbeans.Main --cachedir "/home/marcelo/.cache/netbeans/8.0" --userdir "/home/marcelo/.netbeans/8.0" "--branding" "nb" 0<&0
Comment 1 mjr_1974 2014-06-07 13:53:34 UTC
Ok, additional info about this bug: I did a completely new install of linux, installed both java oracle 8 and 7 and now the first time I start Netbeans it crashes and the second time (so far) starts...
Comment 2 Antonin Nebuzelsky 2014-06-10 10:24:56 UTC
Can you find JVM crash log file (hs_err_pid*.log) and attach here?
Comment 3 Antonin Nebuzelsky 2014-06-23 13:22:04 UTC
Still need the JVM crash log requested above. Closing incomplete. If you find the crash log, attach here and reopen. Thanks.

Given the mention of a first start crashing and the second start successful, this could as well be a duplicate of issue 243735. Though the JVM crash log is needed to investigate.
Comment 4 bhopps_2 2014-08-22 14:18:12 UTC
Created attachment 148846 [details]
error log
Comment 5 bhopps_2 2014-08-22 14:25:31 UTC
I'm experiencing the same issue.  Netbeans will run as expected maybe 1/20 times I start it.  The rest of the time it crashes either while the splash screen shows the loading bar or when it's scanning projects.  In top, it consistently takes over 150% cpu just before crashing.  I've also had the same problem with Netbeans 7.3 and the oracle-java7-installer and with Netbeans 8 and oracle-java8-installer.  Let me know if there's any other information I can provide or if I'm commenting in the wrong bug report.
Comment 6 Antonin Nebuzelsky 2014-08-22 14:39:06 UTC
(In reply to bhopps_2 from comment #5)
> I'm experiencing the same issue.

Your problem is different and as mentioned in your log file it is a memory problem in your system:

# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 19922944 bytes for committing reserved memory.
# Possible reasons:
#   The system is out of physical RAM or swap space
#   In 32 bit mode, the process size limit was hit
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Use 64 bit Java on a 64 bit OS
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
Comment 7 mjr_1974 2014-08-26 17:10:00 UTC
Created attachment 148906 [details]
Log file
Comment 8 Antonin Nebuzelsky 2014-09-01 08:22:20 UTC

*** This bug has been marked as a duplicate of bug 243735 ***