experiencing frequent netbeans crashing

Bug #398280 reported by agent 8131
80
This bug affects 14 people
Affects Status Importance Assigned to Milestone
netbeans (Ubuntu)
Confirmed
Undecided
Unassigned
openjdk-6 (Ubuntu)
Confirmed
Medium
Unassigned

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]

Revision history for this message
Àlex Magaz (rivaldi8) wrote :

I'm also having this problem, but with JOSM instead of Netbeans. I don't know how to reproduce, it simply happens when I've been modifying a map for a while. It seems like the chances of a crash increases with the number of modifications.

Revision history for this message
Tim Pederick (pederick) wrote :

Same error message with PCGen 5.16.1, Kubuntu Jaunty amd64.
1. Run PCGen using pcgen.sh
2. Load default dataset, close Tip of the Day, click through the license screen
3. Click File -> New
4. Count to three

It crashes a few seconds after the New page opens, with the following information.

#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (nmethod.cpp:1836), pid=14707, tid=139923309537616
# 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-0ubuntu11
# An error report file with more information is saved as:
# /home/tim/bin/pcgen5161/hs_err_pid14707.log
#
# 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/
#
Aborted

It's happened three times in the same way now; crash report #3 is attached.

Revision history for this message
Matthias Klose (doko) wrote :

please recheck with current karmic and/or with the packages from
https://edge.launchpad.net/~openjdk/+archive/ppa?field.series_filter=jaunty

Changed in openjdk-6 (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Ari Hyttinen (ari-hyttinen-gmail) wrote :

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.

Revision history for this message
another_sam (anothersam) wrote :

I also have frequent crashes with NetBeans. In several, at first glance random, moments. I just found a consistent way to reproduce a crash. This is what I explain next.

Steps to reproduce:
1. Open NetBeans
2. Right-click on a project in the project browser
3. Click "Properties", a windows titled "Project Properties" will appear
4. Resize that window during a couple a couple of seconds ()

What should happen: The "Project Properties" window gets resized.

What happens now: NetBeans crashes. If I start it from console (simply typing "netbeans"), on crashing some output appears: "
The program '<unknown>' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 18972 error_code 8 request_code 140 minor_code 4)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
"

System
* Hardware
** CPU: Intel Core Duo T2400
** GPU: ATI Mobility Radeon X1400
* Software
** Ubuntu 9.10 Karmic Koala Desktop Edition i386
** NetBeans IDE 6.7.1-0ubuntu1 (netbeans)
** Tested with both OpenJDK and Sun Java Runtime Environments
** All packages updated until one hour ago

Let me know if I can provide more significant data.

Revision history for this message
Jorge Suárez de Lis (ys) wrote :

This also happens to me, but only with metacity? I have no problems with compiz.

Revision history for this message
Luiz Rosalba (luizrosalba) wrote :

same problem ... no fixes yet

Revision history for this message
unmacaque (unmacaque) wrote :

Getting the same error as #5 when resizing, not just with NetBeans but with several swing apps, i.e. TV-Browser, JDownloader, ArgoUML and some swing apps written by myself. However, when I tried the resizing on Geogebra it did not crash. This helped me (hopefully) pinpointing the problem.

All of the crashing applications allow you to set the look and feel to GTK l&f or have this as the default and only option. Geogebra, which does not crash, uses the default ocean l&f. So I configured JDownloader of them to use a different l&f and in fact, the crashes did stop. To workaroung the error, you can either avoid using GTK look, recompile the app and remove the code affecting the look and feel or use the Java distribution from Sun.

Also, this problem is not limited to resizing a window. I tried to create an app that can demonstrate this error but unfortunately the l&f is not the only factor responsible for the problem. Once I find the exact source, I will post the code here.

I hope this can help you guys to fix this problem. I have had this error for months now but I blamed the application for it.

Revision history for this message
Mehrdad Moradi (mehrdad66) wrote :

same problem here.

It happens randomly, albeit it seems as though dragging and dropping editor tabs is very likely to make Netbeans crash.

Revision history for this message
Matthias Klose (doko) wrote :

is this reproducible with the packaged netbeans in ubuntu lucid?

Revision history for this message
Yulia Novozhilova (yulia-novozhilova) wrote :

I can't reproduce this bug in lucid

Revision history for this message
Jim Rorie (jfrorie) wrote :

I'm seeing two or more crashes over an eight hour day on Lucid Beta 1. No apport recognition. Just disappears. Last time was during a macro operation. Once during a PHP web debug. Another time just editing.

Revision history for this message
Lorenzo Ribaldi (ribaldi-lorenzo) wrote :

I'm not able to reproduce the crash, because netbeans seems to crash randomly.

Revision history for this message
Jim Rorie (jfrorie) wrote :

I was having stability problems in netbeans under Lucid. I resolved it by installing the sun jdk. Netbeans has been rock solid since. Not sure what the difference is between the two stacks. Would like to figure it out, tho.

Revision history for this message
BC Holmes (bc-intelliware) wrote :

This problem started manifesting on my machine within the last few weeks, using Open JDK and either Eclipse or the Maven Jetty runtime. I'm now encountering this problem several times a day.

Revision history for this message
Vlad Adrian (adriannvl) wrote :

Here's a somewhat recent crash report with latest netbeans version (7.0) on xubuntu natty. Same stability problems, it crashes randomly and very often so i was forced to change to sun/oracle jdk.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in netbeans (Ubuntu):
status: New → Confirmed
Revision history for this message
Joachim Durchholz (jo-durchholz) wrote :

Getting the same stability problems with jMonkeyEngine (a repackaged Netbeans) on a 64-bit Oneiric.

Product Version: jMonkeyEngine SDK 3.0beta
Java: 1.6.0_23; OpenJDK 64-Bit Server VM 20.0-b11
System: Linux version 3.0.0-15-generic running on amd64; UTF-8; de_DE (jmonkeyplatform)

I haven't tried with the Sun SDK yet.
Since this affects more than one application, I blame either openjdk or the GTK theme, not the application itself.

Revision history for this message
Joachim Durchholz (jo-durchholz) wrote :

Okay, my crash seems to be related to the nvidia driver, and inside the LWJGL thread (LWJGL is an OpenGL wrapper library).
It's still some X problem though, so I'm logging the crash report here anyway.

Revision history for this message
Joachim Durchholz (jo-durchholz) wrote :
Revision history for this message
Joachim Durchholz (jo-durchholz) wrote :
Revision history for this message
Joachim Durchholz (jo-durchholz) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.