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

Bug 355209

Summary: Eclipse sometimes crashes when rendering Javadoc tooltip
Product: [Eclipse Project] Platform Reporter: Sander Koning <askoning>
Component: SWTAssignee: Grant Gayed <grant_gayed>
Status: CLOSED INVALID QA Contact:
Severity: critical    
Priority: P3 CC: akurtakov, ammo, eclipse, eclipsebugs, remy.suen
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
hs_err log 1/3
none
hs_err 2/3
none
hs_err log 3/3
none
JVM crash log for Eclipse Juno none

Description Sander Koning CLA 2011-08-19 08:12:43 EDT
Build Identifier:  I20110613-1736

Eclipse sometimes (seemingly randomly) crashes when rendering the Javadoc tooltip that appears when mouse hovering over an item (variable, class, etc).

It doesn't happen always, nor is it consistently reproducible. At the very least I haven't been able to trigger it manually.

I'll attach the 3 hs_err logfiles I got so far.

Reproducible: Couldn't Reproduce

Steps to Reproduce:
1. Hover the mouse pointer over an item with Javadoc
2. Eclipse crashes
3.
Comment 1 Sander Koning CLA 2011-08-19 08:13:35 EDT
Created attachment 201780 [details]
hs_err log 1/3
Comment 2 Sander Koning CLA 2011-08-19 08:14:00 EDT
Created attachment 201781 [details]
hs_err 2/3
Comment 3 Sander Koning CLA 2011-08-19 08:14:25 EDT
Created attachment 201782 [details]
hs_err log 3/3
Comment 4 Remy Suen CLA 2011-08-19 08:16:56 EDT
What versions of WebKit GTK+ do you have installed?
Comment 5 Sander Koning CLA 2011-08-19 08:34:37 EDT
org.eclipse.swt.gtk.linux.x86_64 (3.7.0.v3735b) "Standard Widget Toolkit for GTK 2.0"
Comment 6 Remy Suen CLA 2011-08-19 08:35:30 EDT
(In reply to comment #5)
> org.eclipse.swt.gtk.linux.x86_64 (3.7.0.v3735b) "Standard Widget Toolkit for
> GTK 2.0"

That would be SWT. Not WebKit GTK+.
Comment 7 Sander Koning CLA 2011-08-19 09:00:55 EDT
(In reply to comment #6)
> (In reply to comment #5)
> > org.eclipse.swt.gtk.linux.x86_64 (3.7.0.v3735b) "Standard Widget Toolkit for
> > GTK 2.0"
> 
> That would be SWT. Not WebKit GTK+.

Hmm... Sorry. That's the only reasonable reference I could find to GTK in the Eclipse configuration, so I figured that it would have to be this one.

I have a libwebkit package installed with version 1.2.4-ubuntu1 (and I can upgrade to 1.2.5, apparently.) If that's not the one you mean, please give me a pointer to where I have to look :)
Comment 8 Grant Gayed CLA 2011-08-23 14:21:07 EDT
I haven't heard of a crash at this location before, and all of the pointer sizes in the native call look correct.  Can  you see if upgrading to WebKitGTK 1.2.5 helps?  And, which Ubuntu release are you using?

Relevant stack:
j  org.eclipse.swt.internal.webkit.WebKitGTK._JSEvaluateScript(JJJJI[J)J+0
j  org.eclipse.swt.internal.webkit.WebKitGTK.JSEvaluateScript(JJJJI[J)J+17
j  org.eclipse.swt.browser.WebKit.execute(Ljava/lang/String;)Z+123
j  org.eclipse.swt.browser.WebKit.addEventHandlers(Z)V+120
j  org.eclipse.swt.browser.WebKit.webkit_window_object_cleared(JJJJ)J+145
j  org.eclipse.swt.browser.WebKit.webViewProc(JJJJJ)J+42
j  org.eclipse.swt.browser.WebKit.Proc(JJJJJ)J+58
Comment 9 Sander Koning CLA 2011-08-23 16:10:04 EDT
(In reply to comment #8)
> Can you see if upgrading to WebKitGTK 1.2.5 helps?

Sure, I'll give it a try. I don't upgrade at every opportunity, but this sounds like a good time :)
I'll report back if the issue persists after upgrading.

> And, which Ubuntu release are you using?

Linux Mint 10, so that would be Maverick Meerkat, 10.10.
Comment 10 Sander Koning CLA 2011-09-06 08:26:49 EDT
(In reply to comment #9)

> Sure, I'll give it a try. I don't upgrade at every opportunity, but this sounds
> like a good time :)
> I'll report back if the issue persists after upgrading.

As promised: I updated my libwebkit (to 1.2.7-0ubuntu0.10.10.1) just over a week ago, didn't have the crash for a while, but today it happened again. Same stack from WebKit.Proc up to WebKitGTK._JSEvaluateScript.
Comment 11 Keith Branton CLA 2011-09-19 13:29:04 EDT
I Installed Indigo on 9/7/11 and have had eclipse crash 20 times since then. Digging into the logs I find that almost all the crashes reports start...

J  org.eclipse.swt.internal.webkit.WebKitGTK._JSEvaluateScript(JJJJI[J)J
J  org.eclipse.swt.internal.webkit.WebKitGTK.JSEvaluateScript(JJJJI[J)J
J  org.eclipse.swt.browser.WebKit.execute(Ljava/lang/String;)Z
j  org.eclipse.swt.browser.WebKit.addEventHandlers(Z)V+120
j  org.eclipse.swt.browser.WebKit.webkit_window_object_cleared(JJJJ)J+145
j  org.eclipse.swt.browser.WebKit.webViewProc(JJJJJ)J+42
j  org.eclipse.swt.browser.WebKit.Proc(JJJJJ)J+58

I notice these are missing the +17 and +123 suffixes from the second and third lines compared to the stack posted by Grant. I also have a couple that are the same as the one Grant posted. Not sure if that's relevant.

I'm using Ubuntu 10.10, and have libwebkit-1.0.2 version 1.2.7-0ubuntu0.10.10.1 installed.

Sometimes this doesn't happen for a few days at a time. Today it's happened a few times in the last hour or so.

I found Helios to be completely stable. Never had any crashes with it. 

Any suggestions besides going back to Helios?
Comment 12 Steven Lawrance CLA 2013-02-19 21:51:42 EST
This unfortunately happened to me, too. As the last update was back in 2011, this doesn't seem to be too promising.

I'm running Ubuntu Lucid Lynx, and the libwebkit version that it's using is 1.2.7-0ubuntu0.10.04.1. I can try switching it to another version to see if that helps.

One oddity that I've been using is: export GDK_NATIVE_WINDOWS=1
I'm now trying Eclipse without that environment variable set. I think that was being used for an earlier problem years ago, and not having it might (hopefully) fix this latest issue.
Comment 13 Steven Lawrance CLA 2013-02-19 21:53:44 EST
Created attachment 227310 [details]
JVM crash log for Eclipse Juno
Comment 14 Steven Lawrance CLA 2013-02-25 19:03:04 EST
As an update, I haven't had a single crash since I removed "export GDK_NATIVE_WINDOWS=1" from my environment when starting Eclipse, and I've hovered over a lot of items to see JavaDoc tooltips to see if I can get it to crash, too. This may be an effective workaround..
Comment 15 Alexander Kurtakov CLA 2013-12-20 04:38:11 EST
(In reply to Steven Lawrance from comment #14)
> As an update, I haven't had a single crash since I removed "export
> GDK_NATIVE_WINDOWS=1" from my environment when starting Eclipse, and I've
> hovered over a lot of items to see JavaDoc tooltips to see if I can get it
> to crash, too. This may be an effective workaround..

As per this report I'm closing the bug as it seems to been caused by your env. Plus GDK_NATIVE_WINDOWS is not supported anymore in GTK3.
Comment 16 Ammo Goettsch CLA 2014-07-27 08:58:07 EDT
Please reopen this bug.  I do not use GDK_NATIVE_WINDOWS and I have exactly the same problems since I switched from Helios to Juno.  The other reporters on this bug also did not mention having used GDK_NATIVE_WINDOWS, so this is not INVALID.