Chrome Windows 64bit - RangeError: Invalid typed array length

Our WebGL client is consistently crashing in chrome on 64bit Windows. It is dying with RangeError deep inside the unity generated and loaded javascript. This makes it almost impossible to debug.

This url (and others) will trigger the error in windows chrome according to our error monitor and bug report

https://play.blocksworld.com/play?world_id=732815

I’m looking for any insight into how to catch this error earlier or how to identify what part of the unity code is crashing or why it might only be an issues on windows chrome.

native: in new Int8Array
blob:https%3A//play.blocksworld.com/ae8e0f79-9285-4f1a-aa75-a3493a23439e:124348

“userAgentInfo”: {
“browserName”: “Chrome”,
“browserVersion”: “51.0.2704.106”,
“engineName”: “AppleWebKit”,
“engineVersion”: “537.36”,
“isBot”: false,
“isMobile”: false,
“os”: “Windows 7”,
“platform”: “Windows”
},

Hello CurtisLinden.

The reason why you are getting this error is because you have set TOTAL_MEMORY to 1 GB
see i.e. https://play.blocksworld.com/js/play-03a10f8fcf599939e93844bf054fce48.js : 26973: 29 :

TOTAL_MEMORY: 1073741824,

which can not work in 32-bit Chrome (regardless of the operating system being 64-bit). Maximum size of the heap in 32-bit Chrome is currently about 1000 MB (and not 1024). With 768 MB heap you should be safe.