Maximum Call stack size exceeded on Chrome, works fine on Edge

Hi all,

I am using Unity 5.6.7 since this is a project that I started a long time ago and just retook.

I am trying to play my game on the browser and it works fine on Microsoft edge, but when I try to play on chrome the maximum call stack size exceeded error appears.
This happens while the unity loading screen, so it does not even open.

This is the error that appears on the chrome console:

Uncaught TypeError: Module.asm is not a function
at Object.af4dbdc15471931d8f432589f5f6ec11 (39561783-b270-4f16-9411-3d6daf95fd44:4)
at UnityLoader.loadCode.Module (UnityLoader.js:1)
at HTMLScriptElement.o.onload (UnityLoader.js:1)

UPDATE: I have managed to fix the issue by randomly changing the setting for WebGL. By changing enable exceptions from “Full” to “Explicitly Thrown Exceptions Only” the game works.

With “None” exceptions enabled I managed to get through 2 menu scenes before an exception error appeared.

If anyone ever finds out why this happens I would appreciate an update. Thanks in advance, I hope that this helps someone.

3 Likes

Have you tried deleting your browser cache?