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

Bug 315670

Summary: Eclipse crashes when Control Assist
Product: [Eclipse Project] Platform Reporter: seretur <erostarbe>
Component: SWTAssignee: Grant Gayed <grant_gayed>
Status: CLOSED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: overholt, remy.suen
Version: 3.5.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
log from last crash none

Description seretur CLA 2010-06-03 16:43:23 EDT
Build Identifier: M20100211-1343

Every time i start coding, whenever the Content Assistant appears, no matter if i did Ctrl + space or not, Eclipse automatically crashes and it looses all the data i was writing.

Reproducible: Always

Steps to Reproduce:
1. Open Eclipse...
2. Start coding...
3. It crashes...
Comment 1 seretur CLA 2010-06-03 16:44:38 EDT
Created attachment 171022 [details]
log from last crash
Comment 2 Andrew Overholt CLA 2010-06-03 16:51:25 EDT
What version of XULRunner is on your system?
Comment 3 seretur CLA 2010-06-03 17:00:33 EDT
(In reply to comment #2)
> What version of XULRunner is on your system?

It seems i have both 1.9.1 and 1.9.2 of XULRunner installed as in Synaptic.

PS: The problem in deed is in control assistant, i disable it from preferences and i can work just fine, but as soon as i press Crl + Space it crashes again.
Comment 5 seretur CLA 2010-06-03 18:13:15 EDT
I've searched on the .metadata file for all of the variables that might appear there and nothing, not a single reference to xul or nothing. BTW, it's the only problem i have in my machine. Netbeans, Inteli..., they all work fine. Is there any other log that might help you out finding out the problem?

> See if the information here helps:
> 
> http://wiki.eclipse.org/IRC_FAQ#Eclipse_gets_past_the_splash_screen_but_then_an_empty_window_appears_.2F_Eclipse_is_crashing_on_me_whenever_I_initiate_a_browser_component_such_as_hovering_over_Java_methods_for_javadoc_tooltips...
Comment 6 Remy Suen CLA 2010-06-03 18:38:31 EDT
This might help.
http://www.robertsmall.org/2008/06/26/fix-for-eclipse-sdk-3x-libmozjs-bug/

You might also want to try getting rid of your 1.9.2 installation.
Comment 7 seretur CLA 2010-06-03 18:54:02 EDT
Thanks! But...

Tried deleting ~/.mozilla/eclipse/ and renaming libmozjs in Firefox's folder but nothing happens. And about xul 1.9.2, it won't let me uninstall it without erasing 400MB+ in libraries. 

> This might help.
> http://www.robertsmall.org/2008/06/26/fix-for-eclipse-sdk-3x-libmozjs-bug/
> 
> You might also want to try getting rid of your 1.9.2 installation.
Comment 8 Remy Suen CLA 2010-06-03 18:55:45 EDT
Point Eclipse to your 1.9.1 installation.
http://www.eclipse.org/swt/faq.php#specifyxulrunner
Comment 9 Grant Gayed CLA 2010-06-07 11:49:24 EDT
The libraries in the crash dump look problematic.  Several are loaded from both the xulrunner-1.9.1.9 and xulrunner-1.9.2.3 directories, the crash is happening in the xulrunner-1.9.1.9 libmozjs.so, and the xulrunner-1.9.2.3 directory appears on the LD_LIBRARY_PATH.

Try the suggestion in comment 8 to point at your xulrunner-1.9.1.9, but when you do this, first add /usr/lib/xulrunner-1.9.1.9 to your LD_LIBRARY_PATH environment variable.  I think the eclipse launcher is adding /usr/lib/xulrunner-1.9.2.3 to the LD_LIBRARY_PATH, so if you add /usr/lib/xulrunner-1.9.1.9 to it before launching eclipse then it should be searched first for xulrunner libraries.
Comment 10 Grant Gayed CLA 2010-09-16 11:46:04 EDT
Based on the mixing of the libraries from the two different xulrunner versions I believe that this is another case of bug 319123, just with a different symptom, so marking report as a duplicate.

You will be CC'd on the other report.  When a build with that fix becomes available please give it a try, and if you still see the problem there then re-open this report, thanks.

*** This bug has been marked as a duplicate of bug 319123 ***