WebGL build fails with "PlayerLoop internal function has been called recursively"
Hello, I am receiving this error message when building my game to webGL and opening the file in Google Chrome. My build settings have compression format gzip and enable exceptions "none." The error message says to contact Unity customer support. This seems to be a common webGL build problem and I am wondering how others have solved it. Thank you!
"06750000-d7cf-40cd-bd43-47a6ebfe14fd:1119 An abnormal situation has occurred: the PlayerLoop internal function has been called recursively. Please contact Customer Support with a sample project so that we can reproduce the problem and troubleshoot it."
5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Uncaught RuntimeError: unreachable at 05ae42ba:0x595df at 05ae42ba:0x4d7f2d at 05ae42ba:0x4ff16 at 05ae42ba:0xbf3e37 at 05ae42ba:0x1effde at 05ae42ba:0x11b9d39 at 05ae42ba:0x10f5f85 at 05ae42ba:0x2f0973 at 05ae42ba:0xba3925 at invoke_iiii (5a98ae4d-eb17-4c07-b225-56d8575c034e:1119:362525) at 05ae42ba:0x8296b at 05ae42ba:0x987879 at 05ae42ba:0x25a2f9 at 05ae42ba:0x56d83 at 05ae42ba:0x4cd887 at 05ae42ba:0x10b8aad at 05ae42ba:0x66c736 at 05ae42ba:0xc11b45 at 05ae42ba:0x97cb07 at 05ae42ba:0x97cb78 at 05ae42ba:0x5c64bd at 05ae42ba:0xba38ef at browserIterationFunc (5a98ae4d-eb17-4c07-b225-56d8575c034e:1119:206941) at callUserCallback (5a98ae4d-eb17-4c07-b225-56d8575c034e:1119:160139) at Object.runIter (5a98ae4d-eb17-4c07-b225-56d8575c034e:1119:161399) at Browser_mainLoop_runner (5a98ae4d-eb17-4c07-b225-56d8575c034e:1119:159674) $func784 @ 05ae42ba:0x595df $func12182 @ 05ae42ba:0x4d7f2d $func569 @ 05ae42ba:0x4ff16 $func34550 @ 05ae42ba:0xbf3e37 $func6382 @ 05ae42ba:0x1effde $func52567 @ 05ae42ba:0x11b9d39 $func47693 @ 05ae42ba:0x10f5f85 $func8740 @ 05ae42ba:0x2f0973 $qi @ 05ae42ba:0xba3925 invoke_iiii @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 $func1529 @ 05ae42ba:0x8296b $func21028 @ 05ae42ba:0x987879 $func7744 @ 05ae42ba:0x25a2f9 $func722 @ 05ae42ba:0x56d83 $func12074 @ 05ae42ba:0x4cd887 $func45947 @ 05ae42ba:0x10b8aad $func17160 @ 05ae42ba:0x66c736 $func35140 @ 05ae42ba:0xc11b45 $func20907 @ 05ae42ba:0x97cb07 $func20907 @ 05ae42ba:0x97cb78 $func16139 @ 05ae42ba:0x5c64bd $vi @ 05ae42ba:0xba38ef browserIterationFunc @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 callUserCallback @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 runIter @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 requestAnimationFrame (async) BrowserObject.requestAnimationFrame @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:598 Browser_mainLoop_scheduler_rAF @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Browser_mainLoop_runner @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 135a98ae4d-eb17-4c07-b225-56d8575c034e:1119 An abnormal situation has occurred: the PlayerLoop internal function has been called recursively. Please contact Customer Support with a sample project so that we can reproduce the problem and troubleshoot it.
_JS_Log_Dump @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 $func5826 @ 05ae42ba:0x1c825a $func32671 @ 05ae42ba:0xbca1e6 $func16202 @ 05ae42ba:0x5cd7ef $func503 @ 05ae42ba:0x4d6fb $func16139 @ 05ae42ba:0x5c54e4 $func32528 @ 05ae42ba:0xbc0ef0 $si @ 05ae42ba:0xba3917 (anonymous) @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 (anonymous) @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 setInterval (async) _emscripten_set_interval @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 $Xh @ 05ae42ba:0xbc0cdc Module._main @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 callMain @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 doRun @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 run @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 runCaller @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 removeRunDependency @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 (anonymous) @ webGL-Demo.loader.js:1 Promise.then (async) (anonymous) @ webGL-Demo.loader.js:1 callRuntimeCallbacks @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 preRun @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 run @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 runCaller @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 removeRunDependency @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 receiveInstance @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 receiveInstantiationResult @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 Promise.then (async) instantiateArrayBuffer @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 instantiateAsync @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 createWasm @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 unityFramework @ 5a98ae4d-eb17-4c07-b225-56d8575c034e:1119 (anonymous) @ webGL-Demo.loader.js:1 Promise.then (async) c @ webGL-Demo.loader.js:1 (anonymous) @ webGL-Demo.loader.js:2 createUnityInstance @ webGL-Demo.loader.js:2 script.onload @ (index):58 load (async) (anonymous) @ (index):57
Your answer
![](https://koobas.hobune.stream/wayback/20220613054316im_/https://answers.unity.com/themes/thub/images/avi.jpg)