wpesrc: crash on second instantiation
When during application life cycle wpesrc
is created for the first time it works, but second time always results in this crash:
ASSERTION FAILED: !m_impl || Thread::mayBeGCThread() || m_impl->wasConstructedOnMainThread() == isMainThread()
DerivedSources/ForwardingHeaders/wtf/WeakPtr.h(94) : T* WTF::WeakPtr< <template-parameter-1-1>, <template-parameter-1-2> >::get() const [with T = WebKit::WebProcessPool; Counter = WTF::EmptyCounter]
--Type <RET> for more, q to quit, c to continue without paging--
Thread 169 "WPEThreadedView" received signal SIGABRT, Aborted.
[Switching to Thread 0x7f9477fff700 (LWP 2175569)]
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
warning: Could not find DWO CU Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/AutomationBackendDispatchers.cpp.dwo(0xb15dd7e268e6b27a) referenced by CU at offset 0x0 [in module /lib/x86_64-linux-gnu/libWPEWebKit-1.0.so.3]
warning: Could not find DWO CU Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-7.cpp.dwo(0xc7031a1fe39476f8) referenced by CU at offset 0x23c0 [in module /lib/x86_64-linux-gnu/libWPEWebKit-1.0.so.3]
warning: (Internal error: pc 0x7f9604ab5a27 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604ab59a0 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604ab5a27 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604ab5a27 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604abc404 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604abc404 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604abc3da in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604abc404 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604abc404 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a8c30f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a8c30f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a8c2ae in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a8c30f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a8c30f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2ec1f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2ec1f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2eac8 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2ec1f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2ec1f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2e975 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2e975 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2e922 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2e975 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2e975 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a28f9e in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a28f9e in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a28b16 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a28f9e in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a28f9e in read in CU, but not in symtab.)
warning: Could not find DWO CU Source/WebKit/CMakeFiles/WebKit.dir/UIProcess/API/wpe/WPEView.cpp.dwo(0x122b3b2be7c34a2a) referenced by CU at offset 0x33f0 [in module /lib/x86_64-linux-gnu/libWPEWebKit-1.0.so.3]
warning: (Internal error: pc 0x7f9604c8468d in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c843c6 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c8468d in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c8468d in read in CU, but not in symtab.)
warning: Could not find DWO CU Source/WebKit/CMakeFiles/WebKit.dir/UIProcess/API/glib/WebKitWebView.cpp.dwo(0xd7675b889535e9c3) referenced by CU at offset 0x31c4 [in module /lib/x86_64-linux-gnu/libWPEWebKit-1.0.so.3]
warning: (Internal error: pc 0x7f9604c664ce in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c6649a in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c664ce in read in CU, but not in symtab.)
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
warning: (Internal error: pc 0x7f9604c664ce in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c57e73 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c57e73 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c57e1f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c57e73 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604ab5a27 in read in CU, but not in symtab.)
#1 0x00007f9625b55859 in __GI_abort () at abort.c:79
warning: (Internal error: pc 0x7f9604c57e73 in read in CU, but not in symtab.)
warning: Could not find DWO CU Source/WebKit/CMakeFiles/WebKit.dir/UIProcess/API/glib/WebKitWebContext.cpp.dwo(0x5b7346f57c0c8baa) referenced by CU at offset 0x315c [in module /lib/x86_64-linux-gnu/libWPEWebKit-1.0.so.3]
warning: (Internal error: pc 0x7f9604c3ff5c in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c3fd41 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c3ff5c in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604ab5a27 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604abc404 in read in CU, but not in symtab.)
#2 0x00007f9603fa8b7b in WTF::CrashOnOverflow::overflowed() () at DerivedSources/ForwardingHeaders/wtf/Assertions.h:713
warning: (Internal error: pc 0x7f9604c3ff5c in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c562a9 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c562a9 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c55f66 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c562a9 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604ab5a27 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604abc404 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a8c30f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604ab5a27 in read in CU, but not in symtab.)
#3 0x00007f9604ab5a28 in warning: (Internal error: pc 0x7f9604ab5a27 in read in CU, but not in symtab.)
WTF::WeakPtr<WebKit::WebProcessPool, WTF::EmptyCounter>::get() constwarning: (Internal error: pc 0x7f9604ab5a27 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604ab5a27 in read in CU, but not in symtab.)
()warning: (Internal error: pc 0x7f9604ab5a27 in read in CU, but not in symtab.)
at DerivedSources/ForwardingHeaders/wtf/WeakPtr.hwarning: (Internal error: pc 0x7f9604ab5a27 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604ab5a27 in read in CU, but not in symtab.)
:94
warning: (Internal error: pc 0x7f9604c562a9 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604abc404 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a8c30f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2ec1f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604abc404 in read in CU, but not in symtab.)
#4 0x00007f9604abc405 in warning: (Internal error: pc 0x7f9604abc404 in read in CU, but not in symtab.)
WebKit::WebProcessProxy::WeakOrStrongPtr<WebKit::WebProcessPool>::updateStrongReference()warning: (Internal error: pc 0x7f9604abc404 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604abc404 in read in CU, but not in symtab.)
()warning: (Internal error: pc 0x7f9604abc404 in read in CU, but not in symtab.)
at ../Source/WebKit/UIProcess/WebProcessProxy.hwarning: (Internal error: pc 0x7f9604abc404 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604abc404 in read in CU, but not in symtab.)
:529
warning: (Internal error: pc 0x7f9604a8c30f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2ec1f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2e975 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a8c30f in read in CU, but not in symtab.)
#5 0x00007f9604a8c310 in warning: (Internal error: pc 0x7f9604a8c30f in read in CU, but not in symtab.)
WebKit::WebProcessProxy::WeakOrStrongPtr<WebKit::WebProcessPool>::WeakOrStrongPtr(WebKit::WebProcessPool&, WebKit::WebProcessProxy::IsWeak)warning: (Internal error: pc 0x7f9604a8c30f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a8c30f in read in CU, but not in symtab.)
()warning: (Internal error: pc 0x7f9604a8c30f in read in CU, but not in symtab.)
at ../Source/WebKit/UIProcess/WebProcessProxy.hwarning: (Internal error: pc 0x7f9604a8c30f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a8c30f in read in CU, but not in symtab.)
:512
warning: (Internal error: pc 0x7f9604a2ec1f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2e975 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a28f9e in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2ec1f in read in CU, but not in symtab.)
#6 0x00007f9604a2ec20 in warning: (Internal error: pc 0x7f9604a2ec1f in read in CU, but not in symtab.)
WebKit::WebProcessProxy::WebProcessProxy(WebKit::WebProcessPool&, WebKit::WebsiteDataStore*, WebKit::WebProcessProxy::IsPrewarmed)warning: (Internal error: pc 0x7f9604a2ec1f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2ec1f in read in CU, but not in symtab.)
()warning: (Internal error: pc 0x7f9604a2ec1f in read in CU, but not in symtab.)
at ../Source/WebKit/UIProcess/WebProcessProxy.cppwarning: (Internal error: pc 0x7f9604a2ec1f in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2ec1f in read in CU, but not in symtab.)
:203
warning: (Internal error: pc 0x7f9604a2e975 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a28f9e in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c8468d in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2e975 in read in CU, but not in symtab.)
#7 0x00007f9604a2e976 in warning: (Internal error: pc 0x7f9604a2e975 in read in CU, but not in symtab.)
WebKit::WebProcessProxy::create(WebKit::WebProcessPool&, WebKit::WebsiteDataStore*, WebKit::WebProcessProxy::IsPrewarmed, WebKit::WebProcessProxy::ShouldLaunchProcess)warning: (Internal error: pc 0x7f9604a2e975 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2e975 in read in CU, but not in symtab.)
()warning: (Internal error: pc 0x7f9604a2e975 in read in CU, but not in symtab.)
at ../Source/WebKit/UIProcess/WebProcessProxy.cppwarning: (Internal error: pc 0x7f9604a2e975 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a2e975 in read in CU, but not in symtab.)
:141
warning: (Internal error: pc 0x7f9604a28f9e in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c8468d in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c664ce in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a28f9e in read in CU, but not in symtab.)
#8 0x00007f9604a28f9f in warning: (Internal error: pc 0x7f9604a28f9e in read in CU, but not in symtab.)
WebKit::WebProcessPool::createWebPage(WebKit::PageClient&, WTF::Ref<API::PageConfiguration, WTF::DumbPtrTraits<API::PageConfiguration> >&&)warning: (Internal error: pc 0x7f9604a28f9e in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a28f9e in read in CU, but not in symtab.)
()warning: (Internal error: pc 0x7f9604a28f9e in read in CU, but not in symtab.)
at ../Source/WebKit/UIProcess/WebProcessPool.cppwarning: (Internal error: pc 0x7f9604a28f9e in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604a28f9e in read in CU, but not in symtab.)
:1303
warning: (Internal error: pc 0x7f9604c8468d in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c664ce in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c57e73 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c8468d in read in CU, but not in symtab.)
#9 0x00007f9604c8468e in warning: (Internal error: pc 0x7f9604c8468d in read in CU, but not in symtab.)
WKWPE::View::View(wpe_view_backend*, API::PageConfiguration const&)warning: (Internal error: pc 0x7f9604c8468d in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c8468d in read in CU, but not in symtab.)
()warning: (Internal error: pc 0x7f9604c8468d in read in CU, but not in symtab.)
at ../Source/WebKit/UIProcess/API/wpe/WPEView.cppwarning: (Internal error: pc 0x7f9604c8468d in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c8468d in read in CU, but not in symtab.)
:74
warning: (Internal error: pc 0x7f9604c664ce in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c57e73 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c3ff5c in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c664ce in read in CU, but not in symtab.)
#10 0x00007f9604c664cf in warning: (Internal error: pc 0x7f9604c664ce in read in CU, but not in symtab.)
WKWPE::View::create(wpe_view_backend*, API::PageConfiguration const&)warning: (Internal error: pc 0x7f9604c664ce in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c664ce in read in CU, but not in symtab.)
()warning: (Internal error: pc 0x7f9604c664ce in read in CU, but not in symtab.)
at ../Source/WebKit/UIProcess/API/wpe/WPEView.hwarning: (Internal error: pc 0x7f9604c664ce in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c664ce in read in CU, but not in symtab.)
:70
warning: (Internal error: pc 0x7f9604c57e73 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c3ff5c in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c562a9 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c57e73 in read in CU, but not in symtab.)
#11 0x00007f9604c57e74 in warning: (Internal error: pc 0x7f9604c57e73 in read in CU, but not in symtab.)
webkitWebViewCreatePage(_WebKitWebView*, WTF::Ref<API::PageConfiguration, WTF::DumbPtrTraits<API::PageConfiguration> >&&)warning: (Internal error: pc 0x7f9604c57e73 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c57e73 in read in CU, but not in symtab.)
()warning: (Internal error: pc 0x7f9604c57e73 in read in CU, but not in symtab.)
at ../Source/WebKit/UIProcess/API/glib/WebKitWebView.cppwarning: (Internal error: pc 0x7f9604c57e73 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c57e73 in read in CU, but not in symtab.)
:2276
warning: (Internal error: pc 0x7f9604c3ff5c in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c562a9 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c3ff5c in read in CU, but not in symtab.)
#12 0x00007f9604c3ff5d in warning: (Internal error: pc 0x7f9604c3ff5c in read in CU, but not in symtab.)
webkitWebContextCreatePageForWebView(_WebKitWebContext*, _WebKitWebView*, _WebKitUserContentManager*, _WebKitWebView*, _WebKitWebsitePolicies*)warning: (Internal error: pc 0x7f9604c3ff5c in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c3ff5c in read in CU, but not in symtab.)
()warning: (Internal error: pc 0x7f9604c3ff5c in read in CU, but not in symtab.)
at ../Source/WebKit/UIProcess/API/glib/WebKitWebContext.cppwarning: (Internal error: pc 0x7f9604c3ff5c in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c3ff5c in read in CU, but not in symtab.)
:1919
warning: (Internal error: pc 0x7f9604c562a9 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c562a9 in read in CU, but not in symtab.)
#13 0x00007f9604c562aa in warning: (Internal error: pc 0x7f9604c562a9 in read in CU, but not in symtab.)
webkitWebViewConstructed(_GObject*)warning: (Internal error: pc 0x7f9604c562a9 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c562a9 in read in CU, but not in symtab.)
()warning: (Internal error: pc 0x7f9604c562a9 in read in CU, but not in symtab.)
at ../Source/WebKit/UIProcess/API/glib/WebKitWebView.cppwarning: (Internal error: pc 0x7f9604c562a9 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x7f9604c562a9 in read in CU, but not in symtab.)
:765
#14 0x00007f9626300526 in () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#15 0x00007f9626302378 in g_object_new_valist () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007f96263026cd in g_object_new () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007f9617b7c8c1 in WPEThreadedView::<lambda(gpointer)>::operator() (__closure=0x0, data=0x7f95d37fc4f0) at ../ext/wpe/WPEThreadedView.cpp:259
#18 WPEThreadedView::<lambda(gpointer)>::_FUN(gpointer) () at ../ext/wpe/WPEThreadedView.cpp:274
#19 0x00007f962620ee8e in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f962620f240 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007f962620f533 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f9617b7b516 in WPEThreadedView::s_viewThread(void*) (data=0x7f94542da7c0) at ../ext/wpe/WPEThreadedView.cpp:148
#23 0x00007f9626238931 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f9625d48609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#25 0x00007f9625c52103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
This is GStreamer from master branch as of a few days ago on Ubuntu 20.04 and latest WPE releases built from source:
- libwpe 1.7.1
- libwpebackend-fdo 1.7.1
- libwpewebkit 2.29.2
With LIBGL_ALWAYS_SOFTWARE=true
@philn looks like you've been working on wpesrc
Edited by Nazar Mokrynskyi