<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>179957</bug_id>
          
          <creation_ts>2017-11-22 12:49:30 -0800</creation_ts>
          <short_desc>[WPE] Web process crashes on startup (ASSERTION FAILED: !RunLoop::isMain() in WebKit::ThreadedCompositor::frameComplete)</short_desc>
          <delta_ts>2017-12-08 12:05:55 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WPE WebKit</component>
          <version>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>178894</blocked>
    
    <blocked>178896</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1374276</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-11-22 12:49:30 -0800</bug_when>
    <thetext>The web process is currently crashing on startup in debug builds:

ASSERTION FAILED: !RunLoop::isMain()
../../Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp(378) : void WebKit::ThreadedCompositor::frameComplete()
1   0x7fd40a46fe2a WTFCrash
2   0x7fd4070ca97f WebKit::ThreadedCompositor::frameComplete()
3   0x7fd4071cee38 WebKit::ThreadedCoordinatedLayerTreeHost::frameComplete()
4   0x7fd4071d1397
5   0x7fd4071d13b7
6   0x7fd3f7ee54b9 wpe_renderer_backend_egl_target_dispatch_frame_complete
7   0x7fd3b18f1a36
8   0x7fd3b18f1a70
9   0x7fd3f4a8eff4 ffi_call_unix64
10  0x7fd3f4a8dfe0 ffi_call
11  0x7fd3f5fc09a3
12  0x7fd3f5fbd7f8
13  0x7fd3f5fbe994 wl_display_dispatch_queue_pending
14  0x7fd3b18f153a
15  0x7fd3b18f1591
16  0x7fd3f8344827 g_main_context_dispatch
17  0x7fd3f8344a38
18  0x7fd3f8344d42 g_main_loop_run
19  0x7fd40a4e1ece WTF::RunLoop::run()
20  0x7fd4071d4283 int WebKit::ChildProcessMain&lt;WebKit::WebProcess, WebKit::WebProcessMain&gt;(int, char**)
21  0x7fd4071d3f2f WebProcessMainUnix
22  0x400bc2 main
23  0x7fd3f722703a __libc_start_main
24  0x400a9a _start

I notice this code has not changed in a long time, which is concerning.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1374277</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-11-22 13:00:23 -0800</bug_when>
    <thetext>This is with the fdo backend. It&apos;s possible that this is a fdo backend bug, because the mesa backend calls wpe_renderer_backend_egl_target_dispatch_frame_complete() inside its wpe_renderer_backend_egl_target_interface::frame_rendered callback, and that&apos;s called by AcceleratedSurfaceWPE::didRenderFrame. I&apos;m not sure if that&apos;s called on the main RunLoop or not. But the fdo backend calls wpe_renderer_backend_egl_target_dispatch_frame_complete() inside its wl_callback_listener::done callback, which is wrong because that&apos;s called on the main RunLoop.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1379700</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-12-08 12:05:55 -0800</bug_when>
    <thetext>This is fixed in the backend, thanks to Carlos Garcia.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>