Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 423393 - Eclipse 4.2.2 J2E (Juno) crashes for no reason leaving a hs_err_pid log
Summary: Eclipse 4.2.2 J2E (Juno) crashes for no reason leaving a hs_err_pid log
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.2.2   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-05 22:43 EST by आलोक कुमार CLA
Modified: 2014-06-25 04:30 EDT (History)
2 users (show)

See Also:


Attachments
hs_err_pid log (117.33 KB, text/x-log)
2013-12-05 22:43 EST, आलोक कुमार CLA
no flags Details
Installation details (596.88 KB, text/plain)
2013-12-05 22:44 EST, आलोक कुमार CLA
no flags Details
hs_err_pid log (115.70 KB, text/plain)
2013-12-05 22:45 EST, आलोक कुमार CLA
no flags Details
hs err pid log (117.05 KB, text/x-log)
2013-12-05 22:46 EST, आलोक कुमार CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description आलोक कुमार CLA 2013-12-05 22:43:33 EST
Created attachment 238098 [details]
hs_err_pid log

I need to use Eclipse 4.2.2 J2EE because that is what allows me to use IBM worklight.

However with or without the plugin, eclipse is crashing and creating hs_err_pid*log files

I am attaching the log files here and other details of the machine


$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)


$ uname -a
Linux cxps044 3.2.0-57-generic #87-Ubuntu SMP Tue Nov 12 21:35:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux


about eclipse:
Eclipse Java EE IDE for Web Developers.

Version: Juno Service Release 2
Build id: 20130225-0426

(c) Copyright Eclipse contributors and others 2005, 2013.  All rights reserved.
Visit http://www.eclipse.org/webtools
Comment 1 आलोक कुमार CLA 2013-12-05 22:44:20 EST
Created attachment 238099 [details]
Installation details

Installation details from Eclipse About
Comment 2 आलोक कुमार CLA 2013-12-05 22:45:04 EST
Created attachment 238100 [details]
hs_err_pid log
Comment 3 आलोक कुमार CLA 2013-12-05 22:46:40 EST
Created attachment 238101 [details]
hs err pid log
Comment 4 David Williams CLA 2013-12-05 23:57:36 EST
Is this frequent? Or occur in a roughly predictable scenario?  

I think in any case, it appears the "native code" where it occurs is related to SWT, 

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J  org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(JZ)Z
J  org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(JZ)Z

so will route over to them. 

Perhaps related to version of webkit? 
appears that libwebkit-1.0.so.2 is involved? 

Oh, just noticed from your config you are trying to use xulrunner. Have a fragment for it and everything! 
You might see this FAQ, which notes that sometimes "clashes" have been reported, 
http://www.eclipse.org/swt/faq.php#browserspecifydefault
And it might help to set, in addition to xulrunners's path, if I'm reading it right, the property 

-Dorg.eclipse.swt.browser.DefaultType=mozilla

But, I'm sure SWT team can give better advise ... I'm half guessing.
Comment 5 आलोक कुमार CLA 2013-12-06 01:00:21 EST
Yes setting the value

-Dorg.eclipse.swt.browser.DefaultType=mozilla

at the end of the eclipse.ini and restarting eclipse works around the problem, thanks for comment 4. 

I was getting a crash whenever I clicked on an .html file, so this was probably related to rendering. However sometimes this happened immediately on startup, perhaps some rendering was involved even then.

I'll observe eclipse with this change throughout the day and update if there are any issues faced even after this workaround

Thanks again
Comment 6 Arun Thondapu CLA 2013-12-06 07:28:25 EST
(In reply to David Williams from comment #4)
> Oh, just noticed from your config you are trying to use xulrunner. Have a
> fragment for it and everything! 
> You might see this FAQ, which notes that sometimes "clashes" have been
> reported, 
> http://www.eclipse.org/swt/faq.php#browserspecifydefault
> And it might help to set, in addition to xulrunners's path, if I'm reading
> it right, the property 
> 
> -Dorg.eclipse.swt.browser.DefaultType=mozilla
> 
> But, I'm sure SWT team can give better advise ... I'm half guessing.

Thanks for jumping on this David :)
This does seem to be a case of mixing up of xulrunner and webkit libraries causing the crash. The DefaultType flag suggested above should avoid loading of webkit libraries and resolve the crash. 

Please close the bug if you don't see the crash anymore. Thanks!
Comment 7 Arun Thondapu CLA 2014-06-25 04:30:28 EDT
(In reply to Arun Thondapu from comment #6)
> (In reply to David Williams from comment #4)
> > Oh, just noticed from your config you are trying to use xulrunner. Have a
> > fragment for it and everything! 
> > You might see this FAQ, which notes that sometimes "clashes" have been
> > reported, 
> > http://www.eclipse.org/swt/faq.php#browserspecifydefault
> > And it might help to set, in addition to xulrunners's path, if I'm reading
> > it right, the property 
> > 
> > -Dorg.eclipse.swt.browser.DefaultType=mozilla
> > 
> > But, I'm sure SWT team can give better advise ... I'm half guessing.
> 
> Thanks for jumping on this David :)
> This does seem to be a case of mixing up of xulrunner and webkit libraries
> causing the crash. The DefaultType flag suggested above should avoid loading
> of webkit libraries and resolve the crash. 
> 
> Please close the bug if you don't see the crash anymore. Thanks!

I'm assuming the crash is resolved and will go ahead and close the bug. Please re-open if that is not the case...