Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] GTK crashing JVM on Hudson/Gerrit Job

Hello,

Yes, the webkit1 browser of Eclipse is notorious for crashing.

They're all similar, in that they have a similar crash log. g_context_main_iteration, for example in setVisible(). (There are various places where it crashes thou).

Crasher tracking bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=509587

If you try to run the tests again, after 2-3 runs eventually it passes.

The solution is to switch over to Webkit2, which runs webkit in a separate process. Currently the port is in progress:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=441568

As of yesterday, there are no more failing browser test cases when using Webkit2.

I'm working on getting Webkit2 to be stable enough so that it can be used as default, hopefully sometime in the coming weeks.

In the meantime, you could launch your eclipse with webkit2:
export SWT_WEBKIT2=1
./eclipse
(Let me know if you want to do this, I'll email you more info).

And at least the local tests would pass. (you do need to install webkitgtk4.x86_64 if you're on fedora). For hudson you'd have to re-trigger the test a few times until it succeeds.

Let me know if you have questions.




On Thu, Mar 16, 2017 at 3:38 AM, Gunnar Wagenknecht <gunnar@xxxxxxxxxxxxxxx> wrote:
Hi,

It seems that some GTK tests are crashing the JVM on the Gerrit trigger job. The is affecting Mac reviews. Anyone seen this before?

Running org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser
Running Test_org_eclipse_swt_browser_Browser#test_TitleListener_removeWithNullArg
Running Test_org_eclipse_swt_browser_Browser#test_OpenWindowListener_closeShell
Running Test_org_eclipse_swt_browser_Browser#test_LocationListener_addAndRemove
Running Test_org_eclipse_swt_browser_Browser#test_forward
Running Test_org_eclipse_swt_browser_Browser#test_ProgressListener_addAndRemove
Running Test_org_eclipse_swt_browser_Browser#test_CloseWindowListener_removeWithNullArg
Running Test_org_eclipse_swt_browser_Browser#test_TitleListener_addAndRemove
Running Test_org_eclipse_swt_browser_Browser#test_BrowserFunction_callback_with_multipleValues
Running Test_org_eclipse_swt_browser_Browser#test_setUrlWithNullArg
Running Test_org_eclipse_swt_browser_Browser#test_setTextLjava_lang_String
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
Running Test_org_eclipse_swt_browser_Browser#test_BrowserFunction_callback_with_String
Running Test_org_eclipse_swt_browser_Browser#test_ProgressListener_addWithNullArg
Running Test_org_eclipse_swt_browser_Browser#test_evaluate_null
Running Test_org_eclipse_swt_browser_Browser#test_ProgressListener_newProgressAdapter_closeShell
Running Test_org_eclipse_swt_browser_Browser#test_back
Running Test_org_eclipse_swt_browser_Browser#test_stop
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
Running Test_org_eclipse_swt_browser_Browser#test_isBackEnabled
Running Test_org_eclipse_swt_browser_Browser#test_evaluate_number_negative
Running Test_org_eclipse_swt_browser_Browser#test_BrowserFunction_callback_afterPageReload
Running Test_org_eclipse_swt_browser_Browser#test_evaluate_boolean
Running Test_org_eclipse_swt_browser_Browser#test_TitleListener_addwithNull
Running Test_org_eclipse_swt_browser_Browser#test_ProgressListener_newProgressAdapter
Running Test_org_eclipse_swt_browser_Browser#test_execute_and_closeListener
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
Running Test_org_eclipse_swt_browser_Browser#test_VisibilityWindowListener_addWithNull
Running Test_org_eclipse_swt_browser_Browser#test_evaluate_evaluation_failed_exception
Running Test_org_eclipse_swt_browser_Browser#test_LocationListener_changed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
Running Test_org_eclipse_swt_browser_Browser#test_getUrl
Running Test_org_eclipse_swt_browser_Browser#test_BrowserFunction_callback_with_boolean
Running Test_org_eclipse_swt_browser_Browser#test_evaluate_invalid_return_value
Running Test_org_eclipse_swt_browser_Browser#test_setJavascriptEnabled
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
Running Test_org_eclipse_swt_browser_Browser#test_LocationListener_removeWithNullArg
Running Test_org_eclipse_swt_browser_Browser#test_getChildren
Running Test_org_eclipse_swt_browser_Browser#test_evaluate_array_numbers
Running Test_org_eclipse_swt_browser_Browser#test_setUrl
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_closure_unref: assertion 'closure->ref_count > 0' failed
Running Test_org_eclipse_swt_browser_Browser#test_refresh
Running Test_org_eclipse_swt_browser_Browser#test_evaluate_number_big
Running Test_org_eclipse_swt_browser_Browser#test_evaluate_array_strings
Running Test_org_eclipse_swt_browser_Browser#test_OpenWindowListener_addWithNulArg
Running Test_org_eclipse_swt_browser_Browser#test_execute_withNullArg
Running Test_org_eclipse_swt_browser_Browser#test_CloseWindowListener_closeShell
Running Test_org_eclipse_swt_browser_Browser#test_isVisible
(My Application Name:5552): libsoup-CRITICAL **: soup_connection_disconnect: assertion 'SOUP_IS_CONNECTION (conn)' failed
(My Application Name:5552): libsoup-CRITICAL **: soup_message_queue_remove: assertion '!item->removed' failed
(My Application Name:5552): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fdabc37fd7a, pid=5552, tid=0x00007fdba1ce3700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libglib-2.0.so.0+0x8ad7a]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /jobs/genie.platform/eclipse.platform.swt-Gerrit/workspace/tests/org.eclipse.swt.tests/hs_err_pid5552.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
/bin/sh: line 1:  5552 Aborted                 /opt/public/common/jdk1.8.0_121.x64/jre/bin/java -Dorg.eclipse.swt.internal.gtk.disablePrinting -Dorg.eclipse.swt.browser.DefaultType=webkit -jar /jobs/genie.platform/eclipse.platform.swt-Gerrit/workspace/tests/org.eclipse.swt.tests/target/surefire/surefirebooter5049723483607331019.jar /jobs/genie.platform/eclipse.platform.swt-Gerrit/workspace/tests/org.eclipse.swt.tests/target/surefire/surefire7910384422562600176tmp /jobs/genie.platform/eclipse.platform.swt-Gerrit/workspace/tests/org.eclipse.swt.tests/target/surefire/surefire_05165024895385619798tmp

https://hudson.eclipse.org/platform/job/eclipse.platform.swt-Gerrit/4215/console

-Gunnar

-- 
Gunnar Wagenknecht
gunnar@xxxxxxxxxxxxxxx, http://guw.io/







_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



--
Leo Ufimtsev
Software Engineer, Eclipse team.
Toronto, Canada

Red Hat, Inc.
Leonidas@xxxxxxxxxx | http://DeveloperBlog.RedHat.com/

Back to the top