Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 317763

Summary: Eclipse 3.6 crashes _every_ startup right after choosing the workspace
Product: [Eclipse Project] Platform Reporter: Patrick Rypalla <patrick>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: antonio.petrelli, asturias666, eclipse.felipe, eclipse, freidin.alex, jarl, ktomazin, pawel, remy.suen, rhopp, Silenio_Quarti, tonny.madsen, woskimi
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
one of the logfiles none

Description Patrick Rypalla CLA 2010-06-23 22:21:32 EDT
Build Identifier: 20100617-1415 (guessing from other pc)

The new 3.6 RCP crashes every startup. The IDE want open anyway.
Its the final release and not a rc. I searched for similar bugs but just find older one for 3.6 rc or they didnt crashed on startup.

Eclipse 3.5 worked without any problems with the same installation. I work every day with eclipse so iam pretty sure that 3.5 worked perfectly on this pc.

Operation System:
Linux Kubuntu Lucid 10.4 - KDE Destop - 64 bit - Kernel 2.6.32-23-generic
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

Hardware:
http://h10010.www1.hp.com/wwpc/ca/en/sm/WF06a/321957-321957-64295-3955552-3955552-4095207.html

Reproducible: Always

Steps to Reproduce:
1.Start Eclipse
2.Choose Workspace
3.Read Crashreport ;-)
Comment 1 Patrick Rypalla CLA 2010-06-23 22:22:31 EDT
Created attachment 172565 [details]
one of the logfiles
Comment 2 Prakash Rangaraj CLA 2010-06-24 00:18:29 EDT
Assigning to SWT for investigation.
Comment 3 Remy Suen CLA 2010-06-24 06:11:09 EDT
What versions of GTK+ do you have installed?
Comment 4 Patrick Rypalla CLA 2010-06-24 13:03:43 EDT
I guess you mean the swt libary, hope format will be readable

dpkg -l libswt*

ii  libswt-cairo-gtk-3.5-jni     3.5.1+versionbump-2ubuntu2                       Standard Widget Toolkit for GTK+ Cairo JNI library
ii  libswt-glx-gtk-3.5-jni       3.5.1+versionbump-2ubuntu2                       Standard Widget Toolkit for GTK+ GLX JNI library
ii  libswt-gnome-gtk-3.5-jni     3.5.1+versionbump-2ubuntu2                       Standard Widget Toolkit for GTK+ GNOME JNI library
ii  libswt-gtk-3.5-java          3.5.1+versionbump-2ubuntu2                       Standard Widget Toolkit for GTK+ Java library
ii  libswt-gtk-3.5-java-gcj      3.5.1+versionbump-2ubuntu2                       Standard Widget Toolkit for GTK+ native library
ii  libswt-gtk-3.5-jni           3.5.1+versionbump-2ubuntu2                       Standard Widget Toolkit for GTK+ JNI library
ii  libswt-mozilla-gtk-3.5-jni   3.5.1+versionbump-2ubuntu2                       Standard Widget Toolkit for GTK+ Mozilla JNI library
Comment 5 Remy Suen CLA 2010-06-24 13:06:15 EDT
(In reply to comment #4)
> I guess you mean the swt libary

No, I do mean GTK+.
Comment 6 Patrick Rypalla CLA 2010-06-24 13:08:31 EDT
and of course gtk libary following

dpkg -l libgtk*

ii  libgtk2.0-0    2.20.1-0ubuntu2      The GTK+ graphical user interface library
ii  libgtk2.0-bin  2.20.1-0ubuntu2      programs for the GTK+ graphical user interface library
ii  libgtk2.0-common 2.20.1-0ubuntu2   Common files for the GTK+ graphical user interface library
ii  libgtk2.0-dev    2.20.1-0ubuntu2   Development files for the GTK+ library
ii  libgtkglext1     1.2.0-1ubuntu1    OpenGL Extension to GTK+ (shared libraries)
ii  libgtkmm-2.4-1c2a  1:2.20.3-0ubuntu1  C++ wrappers for GTK+ (shared libraries)
Comment 7 Patrick Rypalla CLA 2010-06-24 13:10:55 EDT
ok sorry thought you needed both because component changed to swt.
Do you have all information needed? or any packages still missing?
Comment 8 Patrick Rypalla CLA 2010-06-24 13:18:04 EDT
maybe this one might be intressting as well. 

ii  gtk2-engines-qtcurve  1.0.2-1ubuntu1   This is a set of widget styles for Gtk2 based app

but dont think that there are other packages installed on kubuntu which belongs to gtk beside some libaries from apps which uses gtk but not for the operation system.
As far as i know
Comment 9 Pawe³ Smoliñski CLA 2010-06-30 16:01:48 EDT
Please look to comments #10 and #11 at https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/598371 - can it be problem with invalid cast?
Comment 10 Patrick Rypalla CLA 2010-06-30 16:36:13 EDT
The more interesting comment is #5. He has the same problems with openjdk and sun jdk. So this looks for me, that the problem is not with java and thats what i could say from my tests. I tried also to figure out why eclipse dosnt run on my laptop, reinstalling stuff and so on, without any success. 
But I also have a second pc at home, with the same software installation, further almost the same configuration. And Eclipse work on this PC without any problems. So the only difference is in the hardware and the drivers installed. So maybe thats the point you may look to solve this problem. 
More detailed: 
-working PC runs with nvidia graphics 
-not working laptop runs with intel hd graphics (i5 cpu)
both driver informations could be found here:
https://launchpad.net/~xorg-edgers/+archive/ppa

to make a point clear. both software installations are equal (kernel, xorg-server, java...) only difference is that one uses xserver-xorg-video-nouveau and the other xserver-xorg-video-intel

maybe that could help

And both using sun's jdk "sun-java6-jdk 6.20dlj-1ubuntu3" due the fact that iam doing alot with eclipse.jdt and the java ast and it does not work correct with openjdk.
Comment 11 Pawe³ Smoliñski CLA 2010-07-01 02:27:57 EDT
I have two laptops with Kubuntu on the first one and Slackware on the second one. Eclipse crashes only on Kubuntu machine and everything works OK on the Slackware. I think that the problem is not Java but in GTK SWT implementation or in GTK itself (or maybe gtk-qt-engine makes some mess??).
Comment 12 Felipe Heidrich CLA 2010-07-05 09:37:32 EDT
In the past (years ago) I remember that we had many problems with the qt-engine for gtk. Could you change the theme for gtk application and let us know if anything changes ?
Comment 13 Jonathan CLA 2010-07-07 02:03:50 EDT
Yes, changing the widget style from QtCurve allowed my eclipse to boot up finally. Though it looks ugly now but at least the suggestion works, thanks.
Comment 14 Jonathan CLA 2010-07-07 02:14:11 EDT
OK, switching back to QtCurve from Raleigh and restarting eclipse, now it's working properly!

So for now the workaround (that works for me) is
1. Change the widget style to Raleigh
2. Start and exit eclipse
3. Change back to QtCurve for better looking style
4. Start eclipse again
Comment 15 Pawe³ Smoliñski CLA 2010-07-07 02:26:23 EDT
I can confirm too that turning off QtCurve fixes the problem
Comment 16 Antonio Petrelli CLA 2010-07-07 10:35:52 EDT
Comment 14 helped me. I had problems with both openjdk and Sun's JDK. Now they both work. Thanks!
Comment 17 Michael Woski CLA 2010-09-16 09:46:41 EDT
*** Bug 325313 has been marked as a duplicate of this bug. ***
Comment 18 Silenio Quarti CLA 2012-08-31 13:06:31 EDT
Please try the next 4.3 integration build.

*** This bug has been marked as a duplicate of bug 383189 ***
Comment 19 Grant Gayed CLA 2013-06-26 16:31:22 EDT
*** Bug 330476 has been marked as a duplicate of this bug. ***
Comment 20 Jarl Friis CLA 2014-05-27 09:14:28 EDT
I also ran into this with Kubuntu 14.04

Changing GTK2 theme (In KDE system settings) from oxygen-gtk to Raleigh and back again from Raleigh to oxygen-gtk as explained in comment 14 solved the problem for me.