eclipse36 hangs, keyboard disabled EXCEPT for the SUPER key, mouse movable but no clicks processed

Bug #894470 reported by knb
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have an old (German) (Windows) PS-2 keyboard.
My oneiric is a fresh install, but I have restored a lot of my data files (and some config files in /etc) from a backup which was from an older oneiric, upgraded from natty.

When I work with eclipse36 for a while in oneiric under unity, eclipse 36 helios (from 2010) suddenly hangs.

Then, all keys on my keyboard are disabled EXCEPT for the SUPER (Windows) key. When I press it, the Dash shows up and gets the focus.
When I press SUPER again, eclipse gets the focus (the frame-colors of some panel in the IDE briefly flashes)

The mouse is movable but no clicks are getting processed.

Ctrl Alt-F2 does not work. Removing the keyboard and plugging it back in does not work.

I have to go to another computer, login to the hanging computer with ssh (works fine), then kill eclipse. Then, mouse and keyboard are usable again.

Besides, and maybe unrelated to the above-mentioned- bug, sometimes eclipse crashes. There is no Eclipse crash dialog box with process metadata.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: openjdk-6-jre-headless 6b23~pre11-0ubuntu1.11.10
ProcVersionSignature: Ubuntu 3.0.0-13.22-generic 3.0.6
Uname: Linux 3.0.0-13-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Thu Nov 24 18:20:08 2011
ExecutablePath: /usr/lib/jvm/java-6-openjdk/jre/bin/java
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
LocalLibraries: /opt/eclipse/eclipse36/configuration/org.eclipse.osgi/bundles/917/1/.cp/libswt-pi-gtk-3659.so /opt/eclipse/eclipse36/configuration/org.eclipse.osgi/bundles/917/1/.cp/libswt-cairo-gtk-3659.so /opt/eclipse/eclipse36/configuration/org.eclipse.osgi/bundles/917/1/.cp/libswt-gnome-gtk-3659.so /opt/eclipse/eclipse36/configuration/org.eclipse.osgi/bundles/917/1/.cp/libswt-gtk-3659.so /opt/eclipse/eclipse36/configuration/org.eclipse.osgi/bundles/48/1/.cp/os/linux/x86_64/libunixfile_1_0_0.so /opt/eclipse/eclipse36/configuration/org.eclipse.osgi/bundles/917/1/.cp/libswt-atk-gtk-3659.so /opt/eclipse/eclipse36/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.2.R36x_v20101019_1345/eclipse_1310.so
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
 LANGUAGE=en_US.UTF-8
SourcePackage: openjdk-6
UpgradeStatus: No upgrade log present (probably fresh install)

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

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

Changed in openjdk-6 (Ubuntu):
status: New → Confirmed
Revision history for this message
knb (knb) wrote :

FYI: I'm using a lot of Eclipse plugins.

I was able to avoid this behaviour by increasing the max memory available to eclipse to 1124 MB
See last line of my eclipse.ini:

-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.2.R36x_v20101019_1345
-product
org.eclipse.epp.package.php.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Djava.library.path=/usr/lib/jni
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx1124m

I don't know what all these options do exactly. I found out by trial and error, and by researching the net. For example, there is a large discussion about these settings on stackoverflow.com: http://stackoverflow.com/questions/142357/what-are-the-best-jvm-settings-for-eclipse

Recently I have reduced the Xmx param (because I only have 4 GB available, and 1124 MB just for Eclipse was just too much.)
and the hanging behaviour reappeared. I think I'll go back to 1124 MB (it's actually 1024 MB plus some extra Memory for something else, for some reason)

Revision history for this message
mb0 (mb0) wrote :

i have the same problem and i already use -Xmx1536m.

i found this bug https://bugs.launchpad.net/unity/+bug/896773 which seems to have matching symptoms. i also have a nvidia card and can see the same segfaults.

knb, do you also use nvidia and do you have similar segfaults in your logs?

Revision history for this message
knb (knb) wrote :

Yes, I also use nvidia on my PC, GeForce 6200 TurboCache(TM)/PCI/SSE2
AMD Athlon(tm) 64 X2 Dual Core Processor 5400+ × 2
I use the current proprietary driver, and there are no related segfault entries in my dmesg log except for these two lines

[978093.888391] compiz[29704]: segfault at 48 ip 00007fd8dad1d4d0 sp 00007fff012e3dc8 error 4 in libcomposite.so[7fd8dad0f000+18000]
[978095.383527] compiz[29748]: segfault at 48 ip 00007eff42dd24d0 sp 00007fffaa22db68 error 4 in libcomposite.so[7eff42dc4000+18000]

I don't remember if the timestamp value matches the last time of reappearence of the bug. I don't have the time now to gather more system-information data about driver, libs etc.

Revision history for this message
mb0 (mb0) wrote :

i disabled the proprietary driver as suggested in the other bug but had the same problem again.
if i kill eclipse the keyboard and mouse work again but the unity launcher and window decorations are sometimes gone.
i then get compiz segfaults when i kill the lightdm to restart the x session.
i use eclipse 3.7sr1.

i found a forum thread with (what might be) the same symptoms that reports that installing a new compiz version from ppa fixes the issue. i will try that now and report back if the error reoccurs or eclipse is stable for a week.

http://ubuntuforums.org/showthread.php?t=1869266

Revision history for this message
mb0 (mb0) wrote :

again, this time with updated compiz and without unity (instead plain gnome 3 and cairo dock).

Revision history for this message
mb0 (mb0) wrote :

when i had the same problem again i switched to the terminal Ctrl+Alt+F1 and did a jstack process dump.

i am not sure how to read the output but it seams to me that most processes are in a deadlock waiting for an org.eclipse.swt.internal.gtk.OS.Call to finish.

process dump is attatched

Revision history for this message
mb0 (mb0) wrote :

second instance showing the same characteristics.

Revision history for this message
Jordan Bowman (jordanbowman) wrote :

I can confirm this bug using Eclipse 3.7.2 on Ubuntu 12.04. I have the exact same problem, my machine freezes except for the super key and I can move the mouse. Super opens and closes dash, mouse clicks not recognized. I can drop to ttys and restart lightdm, or ctrl+alt+backspace works as well I believe. Haven't investigated too much..

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.