<?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>212513</bug_id>
          
          <creation_ts>2020-05-28 23:56:13 -0700</creation_ts>
          <short_desc>[WPE] Assertions in W3C WebXR tests</short_desc>
          <delta_ts>2020-05-29 06:20:10 -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>
          <dependson>212516</dependson>
    
    <dependson>212517</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zan Dobersek">zan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>svillar</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1657166</commentid>
    <comment_count>0</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2020-05-28 23:56:13 -0700</bug_when>
    <thetext>The following tests crash due to assertions in debug builds of WPE:
  imported/w3c/web-platform-tests/webxr/xrDevice_isSessionSupported_immersive.https.html [ Crash ]
  imported/w3c/web-platform-tests/webxr/xrDevice_isSessionSupported_immersive_unsupported.https.html [ Crash ]
  imported/w3c/web-platform-tests/webxr/xrDevice_requestSession_immersive.https.html [ Crash ]
  imported/w3c/web-platform-tests/webxr/xrDevice_requestSession_immersive_unsupported.https.html [ Crash ]
  imported/w3c/web-platform-tests/webxr/xrDevice_requestSession_no_mode.https.html [ Crash ]
  imported/w3c/web-platform-tests/webxr/xrDevice_requestSession_non_immersive_no_gesture.https.html [ Crash ]
  imported/w3c/web-platform-tests/webxr/xrDevice_requestSession_optionalFeatures.https.html [ Crash ]
  imported/w3c/web-platform-tests/webxr/xrSession_cancelAnimationFrame.https.html [ Crash ]
  imported/w3c/web-platform-tests/webxr/xrSession_cancelAnimationFrame_invalidhandle.https.html [ Crash ]
  imported/w3c/web-platform-tests/webxr/xrSession_requestAnimationFrame_callback_calls.https.html [ Crash ]

Seemingly two different crashes:

STDERR: &lt;empty&gt;
STDERR: ASSERTION FAILED: m_immersiveDevices.contains(device)
STDERR: ../../Source/WebCore/Modules/webxr/WebXRSystem.cpp(454) : void WebCore::WebXRSystem::unregisterSimulatedXRDeviceForTesting(PlatformXR::Device&amp;)
STDERR: 1   0x7f176cac5fc1 WTFCrash
STDERR: 2   0x7f1765f30297 WTF::CrashOnOverflow::overflowed()
STDERR: 3   0x7f17684ac675 WebCore::WebXRSystem::unregisterSimulatedXRDeviceForTesting(PlatformXR::Device&amp;)
STDERR: 4   0x7f167d475fe3 WebCore::WebXRTest::disconnectAllDevices(WebCore::DOMPromiseDeferred&lt;void&gt;&amp;&amp;)

STDERR: /usr/libexec/xdg-desktop-portal: No such file or directory.
STDERR: Failed to call suspendIfNeeded() for XRSystem
STDERR: ASSERTION FAILED: m_suspendIfNeededWasCalled
STDERR: ../../Source/WebCore/dom/ActiveDOMObject.cpp(104) : void WebCore::ActiveDOMObject::assertSuspendIfNeededWasCalled() const
STDERR: 1   0x7f2598509fc1 WTFCrash
STDERR: 2   0x7f2591974297 WTF::CrashOnOverflow::overflowed()
STDERR: 3   0x7f259441ac0e WebCore::ActiveDOMObject::assertSuspendIfNeededWasCalled() const
STDERR: 4   0x7f2594616f0b WebCore::ScriptExecutionContext::checkConsistency() const
STDERR: 5   0x7f259461784b WebCore::ScriptExecutionContext::stopActiveDOMObjects()
STDERR: 6   0x7f259447d128 WebCore::Document::stopActiveDOMObjects()
STDERR: 7   0x7f25944752e6 WebCore::Document::commonTeardown()
STDERR: 8   0x7f259447cb12 WebCore::Document::willBeRemovedFromFrame()
STDERR: 9   0x7f2594ec7bfd WebCore::Frame::setView(WTF::RefPtr&lt;WebCore::FrameView, WTF::DumbPtrTraits&lt;WebCore::FrameView&gt; &gt;&amp;&amp;)
STDERR: 10  0x7f2594eca899 WebCore::Frame::createView(WebCore::IntSize const&amp;, WTF::Optional&lt;WebCore::Color&gt; const&amp;, WebCore::IntSize const&amp;, WebCore::IntRect const&amp;, bool, WebCore::ScrollbarMode, bool, WebCore::ScrollbarMode, bool)
STDERR: 11  0x7f2592b06f9d WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1657169</commentid>
    <comment_count>1</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2020-05-29 00:04:17 -0700</bug_when>
    <thetext>I&apos;ll check</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1657195</commentid>
    <comment_count>2</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2020-05-29 03:05:39 -0700</bug_when>
    <thetext>I&apos;m going to handle this as a metabug and fix the two crashes in two different bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1657238</commentid>
    <comment_count>3</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2020-05-29 06:20:10 -0700</bug_when>
    <thetext>Both patches landed. Closing this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>