- Home /
AudioListener makes WebGL crash (?!)
Weird problem, took me days to narrow it down.
The game works fine in Windows Build.
The game crashes in WebGL build (the web page crashes before we can even see the Unity Splash Screen).
When I remove the AudioListener on the camera... the WebGL build works fine. (o_O)
If the entire Unity Audio is disabled, or if the GameObject containing the AudioListener is disabled... it crashes anyway, as long as the AudioListener is present.
The problem is the same regardless of the browser or the computer I use (tried several).
I can't figure out why this is happening. I'm trying to solve this issue for weeks now...
Here are browser console logs on both cases.
I swear the ONLY thing changing between both is the presence of an AudioListener in the scene...
CRASH NO CRASH
Your answer
![](https://koobas.hobune.stream/wayback/20220613035708im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
An error ocurred running the Unity content of this page 0 Answers
Problems with webgl 1 Answer
UDP with coroutines crashing unity? 1 Answer
WebGL crash when certain actions ingame 0 Answers
Scene crashes in WebGl build 1 Answer