# WebXR reference space : 'unbounded' not supported issue

**URL:** <https://forum.magicleap.cloud/t/webxr-reference-space-unbounded-not-supported-issue/2962>\
**Category:** General\
**Tags:** webxr\
**Created:** [December 13, 2023, 7:59am UTC](https://forum.magicleap.cloud/t/webxr-reference-space-unbounded-not-supported-issue/2962 "2023-12-13T07:59:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy.willems](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@andy.willems](https://forum.magicleap.cloud/u/andy.willems)\
**Post date:** [December 13, 2023, 7:59am UTC](https://forum.magicleap.cloud/t/webxr-reference-space-unbounded-not-supported-issue/2962/1 "2023-12-13T07:59:18Z")

</div>

Hello,

navigator.xr.requestSession('immersive-ar').then((session) =\>  
{  
let refSpace = await session.requestReferenceSpace('unbounded');  
});

This gives me the following error in the Magic Leap 2 browser:

VM8 ARCubes.js:82 Uncaught (in promise) DOMException: Failed to execute 'requestReferenceSpace' on 'XRSession': This device does not support the requested reference space type.

I understand from the Magic Leap documentation that the following reference spaces are supported (see [WebXR | MagicLeap Developer Documentation](https://developer-docs.magicleap.cloud/docs/guides/features/webxr-viewer/index.html)) :

- WebXR reference spaces (view, local, local-floor, bounded, unbounded)  
(note : view should be viewer).

So what am I doing wrong?

Thanks in advance,

---

<div class="post-metadata">

**Author:** ![etucker](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/etucker/32/842_2.png) [@etucker](https://forum.magicleap.cloud/u/etucker)\
**Post date:** [December 13, 2023, 11:25pm UTC](https://forum.magicleap.cloud/t/webxr-reference-space-unbounded-not-supported-issue/2962/2 "2023-12-13T23:25:39Z")

</div>

Hi @andy.willems,

Would you mind sharing your ML2 OS version?

I have reached out to our team regarding this issue and I will report back to you as soon as I learn more.

Best,

El

---

<div class="post-metadata">

**Author:** ![andy.willems](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@andy.willems](https://forum.magicleap.cloud/u/andy.willems)\
**Post date:** [December 14, 2023, 6:14am UTC](https://forum.magicleap.cloud/t/webxr-reference-space-unbounded-not-supported-issue/2962/3 "2023-12-14T06:14:37Z")

</div>

Hello El,

Thanks for your response

I did an OS update just yesterday to see if that helps (it didn't).

Today I am working from home, I will give you the exact ML2 OS version tomorrow.

Kind Regards,  
Andy

---

<div class="post-metadata">

**Author:** ![andy.willems](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@andy.willems](https://forum.magicleap.cloud/u/andy.willems)\
**Post date:** [December 15, 2023, 6:35am UTC](https://forum.magicleap.cloud/t/webxr-reference-space-unbounded-not-supported-issue/2962/4 "2023-12-15T06:35:45Z")

</div>

The OS version is : 1.4.1

Build number : B3E.230928.10-R.098

---

<div class="post-metadata">

**Author:** ![etucker](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/etucker/32/842_2.png) [@etucker](https://forum.magicleap.cloud/u/etucker)\
**Post date:** [December 19, 2023, 12:20am UTC](https://forum.magicleap.cloud/t/webxr-reference-space-unbounded-not-supported-issue/2962/5 "2023-12-19T00:20:42Z")

</div>

Hi @andy.willems,

Only viewer and local reference spaces are defualt and can be used without any request. For all other reference spaces, the application needs to specify explicitly when recoding a session. So instead of

```auto
navigator.xr.requestSession('immersive-ar').then((session) =>
{
let refSpace = await session.requestReferenceSpace('unbounded');
}); 

```

it should be:

```auto
navigator.xr.requestSession('immersive-ar', { requiredFeatures: ['unbounded']}).then((session) =>
{
let refSpace = await session.requestReferenceSpace('unbounded');
});

```

Best,

El

---

<div class="post-metadata">

**Author:** ![andy.willems](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@andy.willems](https://forum.magicleap.cloud/u/andy.willems)\
**Post date:** [December 19, 2023, 7:53am UTC](https://forum.magicleap.cloud/t/webxr-reference-space-unbounded-not-supported-issue/2962/6 "2023-12-19T07:53:19Z")

</div>

Hmm, did not know that. It will take a while before I can test.  
Thanks!  
Andy

---

<div class="post-metadata">

**Author:** ![andy.willems](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@andy.willems](https://forum.magicleap.cloud/u/andy.willems)\
**Post date:** [January 3, 2024, 11:01am UTC](https://forum.magicleap.cloud/t/webxr-reference-space-unbounded-not-supported-issue/2962/7 "2024-01-03T11:01:36Z")

</div>

Thanks, this fixed the error:-)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/bd9b737a4d45ea243aa7eb177d60a773b806899a.svg) [@system](https://forum.magicleap.cloud/u/system)\
**Post date:** [January 18, 2024, 11:01am UTC](https://forum.magicleap.cloud/t/webxr-reference-space-unbounded-not-supported-issue/2962/8 "2024-01-18T11:01:40Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
