Camera switching does not work on Samsung

We have a project with camera switching, but I’m on two devices getting errors when switching:

[RuntimeError] XR caught an error; stopping. TypeError: Cannot read properties of null (reading 'createProgram')
    at onException xrextras.js?s=1
    at cb xr-simd-26.0.6.150.js
    at (anonymous) xr-simd-26.0.6.150.js
    at Z xr-simd-26.0.6.150.js
    at Y xr-simd-26.0.6.150.js
    at (anonymous) xr-simd-26.0.6.150.js
    at O xr-simd-26.0.6.150.js
    at nA xr-simd-26.0.6.150.js
6:16:58 PM
▶️ [XR] Pause cannot be called at this time.
6:16:58 PM
▶️ XR threw an exception TypeError: Cannot read properties of null (reading 'createProgram')
6:16:58 PM
▶️ TypeError: Cannot read properties of null (reading 'createProgram')
    at rB (https://cdn.8thwall.com/xr-26.0.6.150/simd/slam.js:1:5244959)
    at wasm://wasm/00e8375e:wasm-function[1359]:0xbca6b
    at wasm://wasm/00e8375e:wasm-function[306]:0xb840
    at wasm://wasm/00e8375e:wasm-function[323]:0xed89
    at Object._c8EmAsm_engineVideoSizeChange (https://cdn.8thwall.com/xr-26.0.6.150/simd/slam.js:1:97727)
    at tA (https://cdn.8thwall.com/xr-26.0.6.150/simd/slam.js:18:56742)
    at cb (https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:51752)
    at https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:78737
    at Array.forEach (<anonymous>)
    at Z (https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:78725)
6:16:58 PM
▶️ XR threw an exception TypeError: Cannot read properties of undefined (reading 'controlsCamera')
6:16:58 PM
▶️ TypeError: Cannot read properties of undefined (reading 'controlsCamera')
    at i (https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:233931)
    at cb (https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:51752)
    at https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:78569
    at Array.reduce (<anonymous>)
    at W (https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:78527)
    at https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:76027
    at Object.attach (https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:75196)
    at nA (https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:82752)
    at https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:86157
    at Generator.next (<anonymous>)
6:16:58 PM
▶️ XR threw an exception TypeError: Cannot read properties of null (reading 'getParameter')
6:16:58 PM
▶️ TypeError: Cannot read properties of null (reading 'getParameter')
    at L (https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:76337)
    at https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:78160
    at https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:77838
    at https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:80643
    at https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:77838
    at Object.gA [as runPreRender] (https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:80744)
    at n.tick (https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:251655)
    at v.tick (https://cdn.8thwall.com/web/aframe/8frame-1.4.1.min.js:1:431864)
    at v.render (https://cdn.8thwall.com/web/aframe/8frame-1.4.1.min.js:1:432362)
    at https://cdn.8thwall.com/web/aframe/8frame-1.4.1.min.js:1:1239075
6:16:58 PM
▶️ XR threw an exception TypeError: Cannot convert undefined or null to object
6:16:58 PM
▶️ TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at P (https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:78447)
    at https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:79344
    at https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:77838
    at https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:80858
    at https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:77838
    at Object.BA [as runPostRender] (https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:80911)
    at n.tock (https://cdn.8thwall.com/xr-simd-26.0.6.150.js:18:251793)
    at v.tock (https://cdn.8thwall.com/web/aframe/8frame-1.4.1.min.js:1:432108)
    at e.object3D.onAfterRender (https://cdn.8thwall.com/web/aframe/8frame-1.4.1.min.js:1:421285)

I also tried running your example with camera switching: https://www.8thwall.com/playground/swap-dof
A similar error occurs there.
The devices on which I found the bug:

  1. Samsung Galaxy M51 / Android 12 / One UI 4.1
  2. Samsung Galaxy S21 FE 5G / Android 14 / One UI 6.1

Everything works on other iPhone 13 and Xiaomi Readmi Note 12 Pro devices as it should.

1 Like

Bumping this topic, I have the same issue (on Samsung S21 and S23, Chrome).

1 Like

Looking into this now, thank you for reporting it!

Any update on this? It’s still broken. Samsung S24 Ultra.

We are facing similar issues any update on this ?

Hello,

I’ve been able to reproduce this on a Samsung Galaxy S24 using Google Chrome and our Swap Camera Settings sample project. Unfortunately there is no workaround I’m aware of, however I’ve filed this with our engineering team.