← Back to team overview

openjdk team mailing list archive

[Bug 398280] Re: experiencing frequent netbeans crashing

 

Unfortunately I don't have time to do more thorough research, but I'll
write my experiences here in case they help someone.

I had problems with frequent NetBeans crashes. It sometimes happened
with refactoring, bookmarks or other "advanced" editor features, but
most often it happend with form designer. It wasn't deterministic, ie.
loading project after crash and doing it again would usually not crash
again. And I sure learned to automatically do "save all" after every
form change, after losing a bit of work a few times...

This happened with Jaunty's NetBeans 6.5, manually installed NetBeans
6.7.1 and now with Karmic's NetBeans 6.7.1 too, and this week it got so
frequent that I had to do something about it (note: more frequent
crashing was probably because of growing code size and complexity, not
because of Jauntu -> Karmic update).

I solved the problem by removing openjdk-6 packages (not probably
necessary) and using sun-java6. Not a single crash after that. I'm sorry
I can't provide any technical information about the crashes, but it was
so frequent that just doing some complex form design stuff with netbeans
should trigger it.

Note: to get netbeans to use sun-java6 I had to manually edit /etc/netbeans.conf:
- netbeans_jdkhome="/usr/lib/jvm/java-6-openjdk"
+ netbeans_jdkhome="/usr/lib/jvm/java-6-sun"
I don't know if there's a way to do that automatically, but I think dpkg-reconfigure netbeans should maybe do it, if sun's jdk is installed and openjdk is not.

-- 
experiencing frequent netbeans crashing
https://bugs.launchpad.net/bugs/398280
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.

Status in “openjdk-6” package in Ubuntu: Confirmed

Bug description:
The last 3 errors all look like this (pids being different of course).  All mention nmethod.cpp line 1836, JavaThread "AWT-EventQueue-1", and libjvm.so.  I can't deliberately reproduce the error but if I run netbeans for long enough it will crash.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (nmethod.cpp:1836), pid=10665, tid=140316030511440
#  Error: guarantee(cont_offset != 0,"unhandled implicit exception in compiled code")
#
# Java VM: OpenJDK 64-Bit Server VM (14.0-b08 mixed mode linux-amd64 )
# Distribution: Ubuntu 9.04, package 6b14-1.4.1-0ubuntu10
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
#

---------------  T H R E A D  ---------------

Current thread (0x0000000000aaf000):  JavaThread "AWT-EventQueue-1" [_thread_in_Java, id=11553, stack(0x00007f9ddf07a000,0x00007f9ddf27b000)]

Stack: [0x00007f9ddf07a000,0x00007f9ddf27b000],  sp=0x00007f9ddf277d60,  free space=2039k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x66e7ef]
V  [libjvm.so+0x66eb51]
V  [libjvm.so+0x2cdc26]
V  [libjvm.so+0x52b006]
V  [libjvm.so+0x5bb6e9]
V  [libjvm.so+0x54f017]



References