WebGL Aw Snap Crash on Chrome

I’m trying to track down a bug and have utilized just about every strategy I can think of.

The Bug:
After waiting a variable amount of time on both the Title scene and Gameplay scene, the Aw, Snap crash occurs.
This can happen after just sitting there with nothing apparent causing it to trigger.
This only occurs on Chrome (55).
The bug doesn’t appear to occur when the game is paused (and Time Scale is set to near 0 ie: 0.0000001).

Steps Taken:

  • I have tried examining console logs as the crash occurs

  • I have tried profiling on a local host version of WebGL where crashes are less frequent. Nothing besides the garbage collector seems to spike the profiler, and memory/cpu doesn’t grow over time.

  • I have tried examining Chrome’s dump logs to see the cause of the bug. The dump log’s error says “The thread tried to read from or write to a virtual address for which it does not have the appropriate address” Exception code 0xC0000005. Though I’m unsure what I could be doing that would cause this as this should be handled as WebGL allocates usable memory

  • I have tried to force the bug to happen. Since it seemed to take a 2-6 minutes (most of the time, sometimes it takes longer) and since it seemed to not occur when the game is paused, I figured increasing the timescale would hasten the rate that the bug occurs. Increasing the timescale seemed to have no effect on the bug rate (though it may have made it occur less frequently).

  • I have tried removing the functionality of an internet checker that pings for a connection every 2.5 seconds. This was done because this is something that calls code even as the game sits there with no interaction. This seems to have an effect on Macs (though not all the time), but the bug still persists on Windows machines.

More Info:
I’m using Unity 5.3.4 p1
The project is being hosted on AWS S3 (Which makes it so I can’t hook up the profiler as it runs on the server, only localhost, due to Facebook Https requirements)
The project uses plugins/sdks(from what I remember):
-Facebook
-Swrve
-Delta DNA
-Smooth Moves
-Full Inspector

Any help is appreciated!

It appears to be animation related. Character animations were turned off on a build and I didn’t see any crashes. I’m investigating further to see if it’s smooth moves or something else.

Hi tictocpeter,

Did you happen to find a fix for this? I’ve been having a lot of trouble getting my WebGL build to stop crashing on Chrome using Windows 10. I have tried everything and am still getting crash after crash.

Thanks!

Hi folks,
My webgl build starting giving me Aw, Snap message. I guess when i am disabling the cache in chrome then it works fine. What the solution you have achieved?

When the chrome browser’s console (Developer tools) is open, you get aw snap error. More