Community
Participate
Working Groups
Created attachment 238942 [details] Test project Using Eclipse 4.4-I20140107-0800 Ubuntu 14.04 64 bit (trusty) libwebkitgtk 2.3.2 (package from trusty) 1. Start Eclipse with SWT_GTK3=0 to disable GTK3. 2. Create a plug-in project with a JUnit test or import the attached project 3. Run as a Plug-in test 4. Crash occurs at [libwebkitgtk-1.0.so.0+0x43df2c] webkit_web_view_get_type+0x23fc
Created attachment 238943 [details] Java error log
Created attachment 238944 [details] GDB backtrace from core dump
Looks like bug 424657. *** This bug has been marked as a duplicate of bug 424657 ***
I'm not able to reproduce the problem reported in bug 424657 on Ubuntu 13.10 but this one could be something specific to Ubuntu 14.04. Niraj, can you please test with the steps from comment 0 on Ubuntu 14.04 and verify? Thanks!
It's specific to Ubuntu 14.04. I have reproduced it on 3 different machines (1 real, 2 vms on different machines) and it's not happening on 13.10 (2 real, 1 vm). 14.04 has a newer version or libwebkitgtk (2.3.2) compared to 13.10 which had libwebkitgtk 1.10.2. Also, make sure you have the libwebkitgtk-1.0-0 package installed when testing. I also reproduced it with yesterday's build I20140122-0800.
Also note, that we currently have problems with GTK+ 3 on Ubuntu 14.04. See bug 421127 for details. *** This bug has been marked as a duplicate of bug 425123 ***
(In reply to Dani Megert from comment #6) > Also note, that we currently have problems with GTK+ 3 on Ubuntu 14.04. See > bug 421127 for details. But I'm using GTK2 (SWT_GTK3=0)
(In reply to Marc-Andre Laperle from comment #7) > (In reply to Dani Megert from comment #6) > > Also note, that we currently have problems with GTK+ 3 on Ubuntu 14.04. See > > bug 421127 for details. > > But I'm using GTK2 (SWT_GTK3=0) Sure. Just a reminder in case you try GTK3+.
Created attachment 239327 [details] Occasionally coming console error message. Hi Marc, I tried the steps/configuration as mentioned in comment 0 on Ubuntu 14.04 The test project when run as 'JUnit Plug-in Test' always passes as green; with occasionally coming console error message, refer attachment. One difference I could note:- you seems to be using Open JDK 6 (as seen in your core dump) where as I am using IBM JRE 7.
(In reply to Niraj Modi from comment #9) > Created attachment 239327 [details] > Occasionally coming console error message. > > Hi Marc, > I tried the steps/configuration as mentioned in comment 0 on Ubuntu 14.04 > The test project when run as 'JUnit Plug-in Test' always passes as green; > with occasionally coming console error message, refer attachment. Thanks for trying! That error looks unrelated. Do you have the package libwebkitgtk-1.0-0 installed? It should be version 2.3.4-1ubuntu2. Also, it's even easier to reproduce the bug than importing the project. Help > Welcome triggers the crash for me. I tested again with SWT_GTK3=1 and it works OK (well except the fact that all views are empty but it doesn't crash). So it's really when using GTK2 (SWT_GTK3=0) that it's problematic. It's not too surprising though since the crashing webkit code in question is in #ifdef GTK_API_VERSION_2. > One difference I could note:- you seems to be using Open JDK 6 (as seen in > your core dump) where as I am using IBM JRE 7. Hmm, I wonder if it really makes a difference. I see the crash with Open JDK 7 as well.
(In reply to Dani Megert from comment #8) > (In reply to Marc-Andre Laperle from comment #7) > > (In reply to Dani Megert from comment #6) > > > Also note, that we currently have problems with GTK+ 3 on Ubuntu 14.04. See > > > bug 421127 for details. > > > > But I'm using GTK2 (SWT_GTK3=0) > > Sure. Just a reminder in case you try GTK3+. Oops, sorry, I thought you misread my original comment but I was the one who misinterpreted your comment ;) Thanks. From what I understand, webkit2gtk is a different library/.so, it's like different framework level. libwebkitgtk 2.3.2 contains both webkit1 and webkit2 source and builds both framework versions, webkit1 being in maintenance mode. SWT always uses webkit1 either with GTK2 (libwebkitgtk-1.0.so) or GTK3 (libwebkitgtk-3.0.so). SWT doesn't try to load webkit2 yet (libwebkit2gtk-3.0.so) which is what Bug 425123 is about. This crash occurs when webkit1 is used which makes it not a duplicate of 425123. I also tested the patch there and it did not address the crash.
Tried with GTK2 on Ubuntu 14.04 with libwebkitgtk-1.0-0 version 2.3.4-1Ubuntu3, the issue is reproducible whereas with GTK2 on Ubuntu 13.10 with libwebkitgtk-1.0-0 version 1.10.2-0Ubuntu3 issue is not reproducible. The problem doesn't seems to be with libwebkitgtk-1.0-0 library as such but in the way it gets packaged under version 2.3.4-1Ubuntu3. Note:- In both of the above configurations Internal Browser works.
(In reply to Niraj Modi from comment #12) > Tried with GTK2 on Ubuntu 14.04 with libwebkitgtk-1.0-0 version > 2.3.4-1Ubuntu3, the issue is reproducible Great thank you! > The problem doesn't seems to be with libwebkitgtk-1.0-0 library as such but > in the way it gets packaged under version 2.3.4-1Ubuntu3. Sorry I'm not sure I understand what you mean. Can you expand on that? Are you talking about the mismatching version numbers (1.0 vs 2.3.4)? All the libwebkitgtk shared objects come from the same source package (webkitgtk 2.3.4) but are produced using different parameters: --with-gtk=2.0|3.0, --enable-webkit1, --enable-webkit2, etc. GTK2 GTK3 Webkit1 libwebkitgtk-1.0.so libwebkitgtk-3.0.so Webkit2 ------------------- libwebkit2gtk-3.0.so
I have spent some time debugging this issue and I have found that disabling overlay-scrollbar (LIBOVERLAY_SCROLLBAR=0) works around the issue. I am not sure why this is the case yet. WEBKIT_WEB_VIEW(widget)->priv->backingStore is null because ChromeClient::widgetSizeChanged doesn't get called...because webView->priv->needsResizeOnMap is false. It looks like the behavior for size allocation is different between 13.10 and 14.04 but I'll have to debug some more to know where the real problem is.
I sent a patch to webkit. https://bugs.webkit.org/show_bug.cgi?id=129784
*** Bug 433099 has been marked as a duplicate of this bug. ***
Closing as NOT_ECLIPSE as this seems to be a bug either with the overlay scrollbars library or the webkit library. Since the fix(workaround) for bug 424343 disables overlay scrollbars in Ubuntu by default for Eclipse, this bug should also be not seen now.