Bug 295526

Summary: [WebXR][OpenXR] XR_ERROR_SESSION_NOT_RUNNING issued sometimes when starting XR sessions
Product: WebKit Reporter: Sergio Villar Senin <svillar>
Component: New BugsAssignee: Sergio Villar Senin <svillar>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 208988    

Sergio Villar Senin
Reported 2025-07-07 10:05:17 PDT
We're getting XR_ERROR_SESSION_NOT_RUNNING sometimes when trying to start WebXR sessions. The problem is that there is nothing that prevents the render loop to call xrWaitFrame() and the rest of the methods before the session is actually started. WebXR code can properly setup the frame update callback before the OpenXR session begins, and thus the render loop would try to call xrWaitFrame()->xrBeginFrame()->xrEndFrame() on a session that hasn't started yet.
Attachments
Sergio Villar Senin
Comment 1 2025-07-07 10:17:58 PDT
EWS
Comment 2 2025-07-08 01:39:13 PDT
Committed 297102@main (c2db6f72f6cd): <https://commits.webkit.org/297102@main> Reviewed commits have been landed. Closing PR #47666 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-07-08 01:40:16 PDT
Note You need to log in before you can comment on or make changes to this bug.