New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 853381 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug
Proj-VR
Proj-XR-AR
Proj-XR



Sign in to add a comment

XRDevice.prototype.requestSession intermittently fails with 'DOMException: Request for exclusive XRSession was denied.'

Project Member Reported by jsant...@google.com, Jun 15 2018

Issue description

Chrome Version: 69.0.3461.0
OS: Android 8.1

## What steps will reproduce the problem?

(1) Ensure WebXR+AR is enabled (latest canary, #webxr/#webxr-hit-test flags enabled, ARCore installed
(2) Go to https://ar-request-session-bug.glitch.me/
(3) Click "Enter AR"
(4) Around ~50% of the time, the call to `requestSession` fails throwing `DOMException: Request for exclusive XRSession was denied.` It's a magic window session (only `outputContext`), not an exclusive session, so this is an especially strange error to get. This was working in 69.0.3457.0.

## What is the expected result?

To not throw the error consistently.

## What happens instead?

The error is (sometimes) thrown. There seems to be no obvious reason why, I've seen it both fail and succeed on the same page depending on reloading, on both local and remote sites.

The same content was working consistently this morning with version 69.0.3457.0.


 
Cc: ijamardo@chromium.org
Labels: -Pri-3 M-69 Pri-1
Owner: lincolnfrog@chromium.org
Status: Assigned (was: Untriaged)
The "exclusive" reference is misleading as the error is now used for multiple types of requestSession failures. This will be fixed in the reland of the related change (https://crrev.com/c/1102800). Still, `requestSession()` should not be rejecting, and we should investigate that.

Note that this seems to not be happening for everyone.
Cc: klausw@chromium.org offenwanger@chromium.org billorr@chromium.org
It was suggested that this might be related to multiple AR tabs (known issue) or focus.
Cc: -offenwanger@chromium.org
Owner: offenwanger@chromium.org
Status: Started (was: Assigned)
Issue due to CL that has been reverted, fixed, and relanded. Will verify when change has reached Canary then close.
Status: Fixed (was: Started)

Sign in to add a comment