Shadows with WebGPURenderer in WebVR

Hi,

I have an issue with dynamic shadows in WebVR.
In a scene, with shadows enabled, lit by a DirectionalLight and rendered with WebGPURenderer,
either the shadows are not visible / are moving with the camera movement, or the app crashes with the error :

Uncaught TypeError: Cannot destructure property 'object' of 'renderList[i]' as it is undefined.
    at WebGPURenderer._renderObjects (three.webgpu.js:52935:12)
    at WebGPURenderer._renderScene (three.webgpu.js:51616:64)
    at WebGPURenderer.render (three.webgpu.js:51338:8)
    at XRManager.animate [as _currentAnimationLoop] (pen.js:109:12)
    at XRManager.onAnimationFrame (three.webgpu.js:50164:41)
    at XRSession.update (three.webgpu.js:25340:45)

Outside of the VR session, it works as expected.

I created a simple scene with codepen that reproduce the issue.
Looking to the right, at some point, there is something going wrong with the light, the light camera helper seems to be duplicated and one is “parented” with the camera, hence the moving shadows I suspect.
Looking to the left, the application crashes.

https://codepen.io/Eman-Ymton/pen/raapKPd

A WebXR session has to be started (“Enter VR” button) to exhibit the issue. With the chrome extension “Immersive Web Emulator” it is possible to emulate a VR headset and start a WebXR session on a desktop browser. By rotating the emulated headset around the error occurs.

Question :

Any idea what cause this issue ?

Edit :

Same scene with WebGLRenderer doesn’t seem to have the issue.

https://codepen.io/Eman-Ymton/pen/raaprLZ

Thanks