<?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>188161</bug_id>
          
          <creation_ts>2018-07-30 03:58:55 -0700</creation_ts>
          <short_desc>[WPE] Missing context-lost callback causing ASSERTs</short_desc>
          <delta_ts>2020-05-19 00:29:56 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>LayoutTestFailure</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zan Dobersek">zan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1446188</commentid>
    <comment_count>0</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2018-07-30 03:58:55 -0700</bug_when>
    <thetext>The following two tests assert in debug mode due to non-existent context-lost callback:

- fast/canvas/webgl/context-lost-restored.html
- fast/canvas/webgl/WebGLContextEvent.html

Backtrace:

STDERR: ASSERTION FAILED: m_contextLostCallback
STDERR: /home/buildbot/wpe/wpe-linux-64-debug/build/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp(197) : virtual int WebCore::Extensions3DOpenGLES::getGraphicsResetStatusARB()
STDERR: 1   0x7fe63b9af975 WTFCrash
STDERR: 2   0x7fe63a6386c8 WebCore::Extensions3DOpenGLES::getGraphicsResetStatusARB()
STDERR: 3   0x7fe63a329128 WebCore::WebGLRenderingContextBase::maybeRestoreContext()
STDERR: 4   0x7fe63a339640 void std::__invoke_impl&lt;void, void (WebCore::WebGLRenderingContextBase::* const&amp;)(), WebCore::WebGLRenderingContextBase*&amp;&gt;(std::__invoke_memfun_deref, void (WebCore::WebGLRenderingContextBase::* const&amp;)(), WebCore::WebGLRenderingContextBase*&amp;)
STDERR: 5   0x7fe63a3395cd std::result_of&lt;void (WebCore::WebGLRenderingContextBase::* const&amp;(WebCore::WebGLRenderingContextBase*&amp;))()&gt;::type std::__invoke&lt;void (WebCore::WebGLRenderingContextBase::* const&amp;)(), WebCore::WebGLRenderingContextBase*&amp;&gt;(void (WebCore::WebGLRenderingContextBase::* const&amp;)(), WebCore::WebGLRenderingContextBase*&amp;)
STDERR: 6   0x7fe63a33957e decltype (__invoke((*this)._M_pmf, (forward&lt;WebCore::WebGLRenderingContextBase*&amp;&gt;)({parm#1}))) std::_Mem_fn_base&lt;void (WebCore::WebGLRenderingContextBase::*)(), true&gt;::operator()&lt;WebCore::WebGLRenderingContextBase*&amp;&gt;(WebCore::WebGLRenderingContextBase*&amp;) const
STDERR: 7   0x7fe63a33952c void std::_Bind&lt;std::_Mem_fn&lt;void (WebCore::WebGLRenderingContextBase::*)()&gt; (WebCore::WebGLRenderingContextBase*)&gt;::__call&lt;void, , 0ul&gt;(std::tuple&lt;&gt;&amp;&amp;, std::_Index_tuple&lt;0ul&gt;)
STDERR: 8   0x7fe63a3394a6 void std::_Bind&lt;std::_Mem_fn&lt;void (WebCore::WebGLRenderingContextBase::*)()&gt; (WebCore::WebGLRenderingContextBase*)&gt;::operator()&lt;, void&gt;()
STDERR: 9   0x7fe63a33947a WTF::Function&lt;void ()&gt;::CallableWrapper&lt;std::_Bind&lt;std::_Mem_fn&lt;void (WebCore::WebGLRenderingContextBase::*)()&gt; (WebCore::WebGLRenderingContextBase*)&gt; &gt;::call()
STDERR: 10  0x7fe6375bae90 WTF::Function&lt;void ()&gt;::operator()() const
STDERR: 11  0x7fe6375ca116 WebCore::Timer::fired()
STDERR: 12  0x7fe6399a3ea8 WebCore::ThreadTimers::sharedTimerFiredInternal()
STDERR: 13  0x7fe6399a39cd
STDERR: 14  0x7fe6399ae566
STDERR: 15  0x7fe6375bae90 WTF::Function&lt;void ()&gt;::operator()() const
STDERR: 16  0x7fe639982511 WebCore::MainThreadSharedTimer::fired()
STDERR: 17  0x7fe6399867e4 WTF::RunLoop::Timer&lt;WebCore::MainThreadSharedTimer&gt;::fired()
STDERR: 18  0x7fe63ba2fb8d
STDERR: 19  0x7fe63ba2fbe5
STDERR: 20  0x7fe63ba2f310
STDERR: 21  0x7fe63ba2f33f
STDERR: 22  0x7fe6290d47aa g_main_context_dispatch
STDERR: 23  0x7fe6290d4b38
STDERR: 24  0x7fe6290d4e52 g_main_loop_run
STDERR: 25  0x7fe63ba2f84d WTF::RunLoop::run()
STDERR: 26  0x7fe637f4d4ab int WebKit::ChildProcessMain&lt;WebKit::WebProcess, WebKit::WebProcessMain&gt;(int, char**)
STDERR: 27  0x7fe637f4d143 WebProcessMainUnix
STDERR: 28  0x55d36e85ed9b main
STDERR: 29  0x7fe62815a2e1 __libc_start_main
STDERR: 30  0x55d36e85ec1a _start
STDERR: LEAK: 1 WebPageProxy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1446190</commentid>
    <comment_count>1</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2018-07-30 04:14:13 -0700</bug_when>
    <thetext>(In reply to Zan Dobersek from comment #0)
&gt; The following two tests assert in debug mode due to non-existent
&gt; context-lost callback:
&gt; 
&gt; - fast/canvas/webgl/context-lost-restored.html
&gt; - fast/canvas/webgl/WebGLContextEvent.html

Also:
- webgl/1.0.2/conformance/context/context-lost-restored.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1653936</commentid>
    <comment_count>2</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2020-05-19 00:29:56 -0700</bug_when>
    <thetext>No longer a problem.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>