Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 319775 - dev-util/netbeans-5.5.1-r1 fails execution resulting in a crash or blank window
Summary: dev-util/netbeans-5.5.1-r1 fails execution resulting in a crash or blank window
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 318151
Blocks: 237562
  Show dependency tree
 
Reported: 2010-05-14 21:02 UTC by Dominik Köppl
Modified: 2011-10-25 00:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Errorlog of netbeans (hs_err_pid1386.log,32.47 KB, text/plain)
2010-05-14 21:03 UTC, Dominik Köppl
Details
Errorlog of netbeans-6.8-r1 (hs_err_pid21011.log,33.01 KB, text/plain)
2010-05-15 21:56 UTC, Dominik Köppl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Köppl 2010-05-14 21:02:29 UTC
The execution of the script 'netbeans-5.5' is determined by the value of the variable 'AWT_TOOLKIT'. 
If I set it to 'XToolkit' or leave this variable undefined, I'll get a blank white window.
On the other hand exists (according to the netbeans-manual) the possibility to set this variable to 'MToolkit', which then results in a crash of the program before it really starts:


# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fd0624742fa, pid=1386, tid=140532531390736
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) 64-Bit Server VM (16.3-b01 mixed mode linux-amd64 )
# Problematic frame:
# C  [libc.so.6+0x312fa]  catgets+0x1a
#
# An error report file with more information is saved as:
# /home/dominik/hs_err_pid1386.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
/usr/share/netbeans-5.5/bin/../platform6/lib/nbexec: line 422:  1386 Aborted                 "/opt/sun-jdk-1.6.0.20/bin/java" -Djdk.home="/opt/sun-jdk-1.6.0.20" -classpath "/usr/share/netbeans-5.5/platform6/lib/boot.jar:/usr/share/netbeans-5.5/platform6/lib/org-openide-modules.jar:/usr/share/netbeans-5.5/platform6/lib/org-openide-util.jar:/opt/sun-jdk-1.6.0.20/lib/dt.jar:/opt/sun-jdk-1.6.0.20/lib/tools.jar" -Dnetbeans.osenv="/tmp/nbenv.1309" -Dnetbeans.osenv.nullsep=true -Dnetbeans.dirs="/usr/share/netbeans-5.5/bin/../nb5.5:/usr/share/netbeans-5.5/bin/../ide7:/usr/share/netbeans-5.5/bin/../enterprise3:/usr/share/netbeans-5.5/bin/../harness:/usr/share/netbeans-5.5/bin/../cnd1:" -Dnetbeans.home="/usr/share/netbeans-5.5/platform6" "-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade" "-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense" "-Xms32m" "-Xmx128m" "-XX:PermSize=32m" "-XX:MaxPermSize=160m" "-Xverify:none" "-Dapple.laf.useScreenMenuBar=true" org.netbeans.Main --userdir "/home/dominik/.netbeans/5.5.1" "--branding" "nb"

My installed java-versions are:
eselect java-vm list
Available Java Virtual Machines:
  [1]   emul-linux-x86-java-1.6 
  [2]   sun-jdk-1.5 Build Only
  [3]   sun-jdk-1.6  system-vm user-vm
  [4]   sun-jre-bin-1.6 
dev-java/sun-jdk-1.5.0.22-r1 X alsa odbc -doc -examples -jce -nsplugin
dev-java/sun-jdk-1.6.0.20 X alsa nsplugin odbc -derby -doc -examples -jce
dev-java/sun-jre-bin-1.6.0.20 X alsa nsplugin odbc -jce
Comment 1 Dominik Köppl 2010-05-14 21:03:59 UTC
Created attachment 231475 [details]
Errorlog of netbeans
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2010-05-15 08:59:34 UTC
We are hoping to get 6.8 stable soon. Does that work for you?
Comment 3 Dominik Köppl 2010-05-15 21:55:31 UTC
* Emerged netbeans-6.8-r1:
dev-util/netbeans-6.8-r1 netbeans_modules_apisupport netbeans_modules_harness netbeans_modules_ide netbeans_modules_java netbeans_modules_nb netbeans_modules_websvccommon -debug -doc -elibc_FreeBSD -linguas_ar -linguas_ca -linguas_cs -linguas_de -linguas_es -linguas_fr -linguas_gl -linguas_id -linguas_it -linguas_ja -linguas_ko -linguas_nl -linguas_pl -linguas_pt_BR -linguas_ro -linguas_ru -linguas_sq -linguas_sv -linguas_tr -linguas_zh_CN -linguas_zh_TW -netbeans_modules_cnd -netbeans_modules_dlight -netbeans_modules_enterprise -netbeans_modules_ergonomics -netbeans_modules_groovy -netbeans_modules_identity -netbeans_modules_mobility -netbeans_modules_php -netbeans_modules_profiler -netbeans_modules_ruby

* Unfortunately, the problem survived the upgrade:
* The command 'AWT_TOOLKIT=MToolkit; netbeans-6.8' results again in a crash, 

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f740113a2fa, pid=21011, tid=140135565752592
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) 64-Bit Server VM (16.3-b01 mixed mode linux-amd64 )
# Problematic frame:
# C  [libc.so.6+0x312fa]  catgets+0x1a
#
# An error report file with more information is saved as:
# /home/dominik/hs_err_pid21011.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
/usr/share/netbeans-6.8/bin/../platform11/lib/nbexec: line 516: 21011 Aborted                 "/opt/sun-jdk-1.6.0.20/bin/java" -Djdk.home="/opt/sun-jdk-1.6.0.20" -classpath "/usr/share/netbeans-6.8/platform11/lib/boot.jar:/usr/share/netbeans-6.8/platform11/lib/org-openide-modules.jar:/usr/share/netbeans-6.8/platform11/lib/org-openide-util.jar:/opt/sun-jdk-1.6.0.20/lib/dt.jar:/opt/sun-jdk-1.6.0.20/lib/tools.jar" -Dnetbeans.dirs="/usr/share/netbeans-6.8/nb6.8:/usr/share/netbeans-6.8/bin/../ergonomics2:/usr/share/netbeans-6.8/ide12:/usr/share/netbeans-6.8/java3:/usr/share/netbeans-6.8/bin/../xml2:/usr/share/netbeans-6.8/apisupport1:/usr/share/netbeans-6.8/bin/../webcommon1:/usr/share/netbeans-6.8/websvccommon1:/usr/share/netbeans-6.8/bin/../enterprise6:/usr/share/netbeans-6.8/bin/../mobility8:/usr/share/netbeans-6.8/bin/../profiler3:/usr/share/netbeans-6.8/bin/../ruby2:/usr/share/netbeans-6.8/bin/../python1:/usr/share/netbeans-6.8/bin/../php1:/usr/share/netbeans-6.8/bin/../visualweb2:/usr/share/netbeans-6.8/bin/../soa2:/usr/share/netbeans-6.8/bin/../identity2:/usr/share/netbeans-6.8/bin/../uml6:/usr/share/netbeans-6.8/harness:/usr/share/netbeans-6.8/bin/../cnd3:/usr/share/netbeans-6.8/bin/../dlight2:/usr/share/netbeans-6.8/bin/../groovy2:/usr/share/netbeans-6.8/bin/../extra:/usr/share/netbeans-6.8/bin/../javafx2:/usr/share/netbeans-6.8/bin/../javacard1:" -Dnetbeans.home="/usr/share/netbeans-6.8/platform11" '-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade' '-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense' '-Xmx200m' '-client' '-Xverify:none' '-Xss2m' '-Xms32m' '-XX:PermSize=32m' '-XX:MaxPermSize=200m' '-Dapple.laf.useScreenMenuBar=true' '-Dsun.java2d.noddraw=true' -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="/home/dominik/.netbeans/6.8/var/log/heapdump.hprof" org.netbeans.Main --userdir "/home/dominik/.netbeans/6.8" "--branding" "nb"
Comment 4 Dominik Köppl 2010-05-15 21:56:38 UTC
Created attachment 231597 [details]
Errorlog of netbeans-6.8-r1
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2010-05-16 08:02:03 UTC
(In reply to comment #3)

> 
> * Unfortunately, the problem survived the upgrade:
> * The command 'AWT_TOOLKIT=MToolkit; netbeans-6.8' results again in a crash, 
> 

Motif toolkit hasn't been supported by Sun/Oracle for years. It's known to crash anything in Java. See for example bug 181854.
Comment 6 Dominik Köppl 2010-05-16 09:16:41 UTC
Thank's for this hint. Yes, you're right about the deficient Motif support.
Thus it remains to examine the command 'AWT_TOOLKIT="" netbeans-6.8', which again results in a blank white window. I've tested other java-applications which work with the xtoolkit perfectly.
Comment 7 Dominik Köppl 2010-05-20 10:10:06 UTC
It seems that the program is fully functional in the way that it can catch events like the keystroke 'Ctrl+O' by displaying a OpenFile-Dialog. Strangely, only the netbeans-mainwidget gets not painted (e.g. filled with white color) - the dialogs and the splashscreen are visible. I think there is something fishy about the PaintEvent implemented in the netbeans code. Does anybody know if it uses a different widget-toolkit than most other java applications use?
Comment 8 Miroslav Šulc gentoo-dev 2010-07-08 14:59:04 UTC
netbeans 6.9 suffers with the same problem? also, did you try to download binary tarball from netbeans and see if the problem is netbeans related or gentoo related?
Comment 9 Dominik Köppl 2010-07-08 15:51:28 UTC
I've downloaded the netbeans-6.9-ml-javase-linux.sh bundle. Execution results again in a blank window offering an invisible configuration wizard.
Comment 10 Miroslav Šulc gentoo-dev 2010-07-08 16:00:42 UTC
can you pls search netbeans bug database for the issue, and if not filed yet, file it there and paste link here? here is link to netbeans bug database: http://netbeans.org/community/issues.html
Comment 11 Dominik Köppl 2010-07-08 18:26:38 UTC
I've filed the bug in http://netbeans.org/bugzilla/show_bug.cgi?id=188505
Comment 12 Miroslav Šulc gentoo-dev 2011-10-25 00:49:14 UTC
this bug is over one year old without no activity here nor in the upstream bug. please reopen if the problem still persists.