<?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>272329</bug_id>
          
          <creation_ts>2024-04-08 06:54:17 -0700</creation_ts>
          <short_desc>[WPE][WebXR] Assertion fails `gl.checkFramebufferStatus(GL::FRAMEBUFFER) == GL::FRAMEBUFFER_COMPLETE` in `WebXROpaqueFramebuffer::blitShared()`</short_desc>
          <delta_ts>2024-04-08 10:15:17 -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>WebXR</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly Dyackhov">vitaly</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2026741</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Dyackhov">vitaly</who>
    <bug_when>2024-04-08 06:54:17 -0700</bug_when>
    <thetext>Many tests in `http/wpt/webxr` and `imported/w3c/web-platform-tests/webxr` hit this assertion.

Stack trace:
```
STDERR: ASSERTION FAILED: gl.checkFramebufferStatus(GL::FRAMEBUFFER) == GL::FRAMEBUFFER_COMPLETE
STDERR: /app/webkit/Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp(283) : void WebCore::WebXROpaqueFramebuffer::blitShared(WebCore::GraphicsContextGL&amp;)
STDERR: 1   0x7faad4658f18 WTFCrash
STDERR: 2   0x7faad09abff0 WTF::isIntegralOrPointerType()
STDERR: 3   0x7faad6d2c2e3 WebCore::WebXROpaqueFramebuffer::blitShared(WebCore::GraphicsContextGL&amp;)
STDERR: 4   0x7faad6d2be3b WebCore::WebXROpaqueFramebuffer::endFrame()
STDERR: 5   0x7faad6d4c56e WebCore::WebXRWebGLLayer::endFrame()
STDERR: 6   0x7faad6d31142 operator()
STDERR: 7   0x7faad6d48d82 call
STDERR: 8   0x7faad12cfef5 WTF::Function&lt;void ()&gt;::operator()() const
STDERR: 9   0x7faad6d25132 WebCore::ActiveDOMObject::queueTaskKeepingObjectAlive&lt;WebCore::WebXRSession&gt;(WebCore::WebXRSession&amp;, WebCore::TaskSource, WTF::Function&lt;void ()&gt;&amp;&amp;)::{lambda()#1}::operator()() const
STDERR: 10  0x7faad6d29c1e WTF::Detail::CallableWrapper&lt;WebCore::ActiveDOMObject::queueTaskKeepingObjectAlive&lt;WebCore::WebXRSession&gt;(WebCore::WebXRSession&amp;, WebCore::TaskSource, WTF::Function&lt;void ()&gt;&amp;&amp;)::{lambda()#1}, void&gt;::call()
STDERR: 11  0x7faad12cfef5 WTF::Function&lt;void ()&gt;::operator()() const
STDERR: 12  0x7faad78de9ea WebCore::EventLoopFunctionDispatchTask::execute()
STDERR: 13  0x7faad78ddadb WebCore::EventLoop::run(std::optional&lt;WTF::ApproximateTime&gt;)
STDERR: 14  0x7faad7a69bd9 WebCore::WindowEventLoop::didReachTimeToRun()
STDERR: 15  0x7faad7a8107e void std::__invoke_impl&lt;void, void (WebCore::WindowEventLoop::*&amp;)(), WebCore::WindowEventLoop*&amp;&gt;(std::__invoke_memfun_deref, void (WebCore::WindowEventLoop::*&amp;)(), WebCore::WindowEventLoop*&amp;)
STDERR: 16  0x7faad7a80fe9 std::__invoke_result&lt;void (WebCore::WindowEventLoop::*&amp;)(), WebCore::WindowEventLoop*&amp;&gt;::type std::__invoke&lt;void (WebCore::WindowEventLoop::*&amp;)(), WebCore::WindowEventLoop*&amp;&gt;(void (WebCore::WindowEventLoop::*&amp;)(), WebCore::WindowEventLoop*&amp;)
STDERR: 17  0x7faad7a80f5f void std::_Bind&lt;void (WebCore::WindowEventLoop::*(WebCore::WindowEventLoop*))()&gt;::__call&lt;void, , 0ul&gt;(std::tuple&lt;&gt;&amp;&amp;, std::_Index_tuple&lt;0ul&gt;)
STDERR: 18  0x7faad7a80ef1 void std::_Bind&lt;void (WebCore::WindowEventLoop::*(WebCore::WindowEventLoop*))()&gt;::operator()&lt;, void&gt;()
STDERR: 19  0x7faad7a80d4c WTF::Detail::CallableWrapper&lt;std::_Bind&lt;void (WebCore::WindowEventLoop::*(WebCore::WindowEventLoop*))()&gt;, void&gt;::call()
STDERR: 20  0x7faad12cfef5 WTF::Function&lt;void ()&gt;::operator()() const
STDERR: 21  0x7faad13b4870 WebCore::Timer::fired()
STDERR: 22  0x7faad883d7c8 WebCore::ThreadTimers::sharedTimerFiredInternal()
STDERR: 23  0x7faad883d0a5 operator()
STDERR: 24  0x7faad884711a call
STDERR: 25  0x7faad12cfef5 WTF::Function&lt;void ()&gt;::operator()() const
STDERR: 26  0x7faad87e9458 WebCore::MainThreadSharedTimer::fired()
STDERR: 27  0x7faad87f1ffe void std::__invoke_impl&lt;void, void (WebCore::MainThreadSharedTimer::*&amp;)(), WebCore::MainThreadSharedTimer*&amp;&gt;(std::__invoke_memfun_deref, void (WebCore::MainThreadSharedTimer::*&amp;)(), WebCore::MainThreadSharedTimer*&amp;)
STDERR: 28  0x7faad87f1f77 std::__invoke_result&lt;void (WebCore::MainThreadSharedTimer::*&amp;)(), WebCore::MainThreadSharedTimer*&amp;&gt;::type std::__invoke&lt;void (WebCore::MainThreadSharedTimer::*&amp;)(), WebCore::MainThreadSharedTimer*&amp;&gt;(void (WebCore::MainThreadSharedTimer::*&amp;)(), WebCore::MainThreadSharedTimer*&amp;)
STDERR: 29  0x7faad87f1eed void std::_Bind&lt;void (WebCore::MainThreadSharedTimer::*(WebCore::MainThreadSharedTimer*))()&gt;::__call&lt;void, , 0ul&gt;(std::tuple&lt;&gt;&amp;&amp;, std::_Index_tuple&lt;0ul&gt;)
STDERR: 30  0x7faad87f1e7f void std::_Bind&lt;void (WebCore::MainThreadSharedTimer::*(WebCore::MainThreadSharedTimer*))()&gt;::operator()&lt;, void&gt;()
STDERR: 31  0x7faad87f1e48 WTF::Detail::CallableWrapper&lt;std::_Bind&lt;void (WebCore::M
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2026744</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Dyackhov">vitaly</who>
    <bug_when>2024-04-08 07:10:27 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/26972</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2026779</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-04-08 10:14:50 -0700</bug_when>
    <thetext>Committed 277202@main (d52c23512973): &lt;https://commits.webkit.org/277202@main&gt;

Reviewed commits have been landed. Closing PR #26972 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2026780</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-04-08 10:15:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/126081630&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>