AudioSource causing crash on mobile

I can reproduce the issue.
There are definitely other things going on, like, you’re using an older version of Needle Engine and an older version of the PlayerController / PointerLock, but the audio clip crashes on 1 of 3 devices I tested on here

Thanks a lot. yes its happening on some devices only

by user 1141289362336784394

That being said, the audio itself plays fine when I disable other objects in your scene. Still looking

Independent of that I recommend you update Needle Engine and the scripts from the First Person Controller - the latest version of that supports multiple touch pointers properly (you can try on First Person Controller | Needle Engine)

sure i will

by user 1141289362336784394

Can you try one thing:
If you press play, then in the editor go to the three dots here and select this option, then test on your phone - does that still crash?

I fixed the issue by cut the clip length to 1 min and also i am gonna try your suggestion

by user 1141289362336784394

Seems your scene simply has a memory footprint of at least 650 MB which is a lot for browsers; when then the audio loads it becomes too much. I’ll look at why audio takes up so much memory - it should be streamed but it looks like its uncompressed on load

same crash

by user 1141289362336784394

Do you have any suggestion for streaming the audio clip

by user 1141289362336784394

If it’s completely a background audio you can simply add it in HTML instead as

thanks for pointing out . May i know how you profile the memory footprint of 650mb it would be helpful for me to debug and optimize

by user 1141289362336784394

Thanks i will try that

by user 1141289362336784394

You can drop assets/virtualStore.glb on https://gltf.report to see a summary of textures and estimated VRAM memory usage. We’ll add a similar summary at a later point probably

Thanks a lot for your quick support

by user 1141289362336784394