AR on Android is crashing #4681
-
Hello, I currently run my projects in babylonjs, i used to use the model viewer ar by sending the scene into a blob and passing it to the model viewer source, initially it was normally functioning, suddenly it stopped working on android only on ios its still working normally, so when i press to got to AR on android devices it switches to the ar app then suddenly crashes before even loading the model, whereas if i load the model directly from the public folder locally to the model viewer source it works and doesn't crash, i need a solution for it to work on android through sending it in a blob url since it has to be dynamic with customizations and whatever else, any solution please ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
It sounds like the problem is that WebXR has stopped working for some reason. Our Scene Viewer AR mode was never able to work with blobs (it's a separate app outside our sandbox). Check your JS console and you may find some warnings about why WebXR failed to start. It may be related to this: #4582 which appears to be a WebXR regression, but it's been difficult to repro or debug. Any more detailed info you can give would be helpful. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply, the weird thing i checked the console i connected the phone and used the debugger, it says that its starting the AR and then no errors or warnings appear, i tried using the ar mode as webxr, when i did that it didnt even initialize the ar i just click the button and nothing happens
|
Beta Was this translation helpful? Give feedback.
-
Here is an example of whats happening and a screenshot of the console, and the link is : (url)](https://ar-testing-modular.netlify.app/) vlc-record-2024-02-16-14h40m00s-Screen_Recording_20240216_143218.mp4-.mp4 |
Beta Was this translation helpful? Give feedback.
I'm unable to reproduce on https://modelviewer.dev/examples/augmentedreality/index.html using Pixel 8, S8+, and S20+5G. I'm using Chrome 121.0.6167.178. When trying on S8+ with https://ar-testing-modular.netlify.app/, I see similar behavior as described in #4665 ("useProgram: program not valid" warning in the console). When testing the netlify page on Pixel 8, I initially had the same (or very similar) results as the OP - the device would enter fullscreen but AR session contents were not visible. The content of the session started to show up only when I changed the element style of
<div class="modelviewerdiv">
to "display: hidden" in dev tools (actually, they started to be visible when I …