What are 'Uncaught abort(x)' errors on WebGL.

So, I have been working on a WebGL game for several months and I had this kind of error messages on several occasions.

I managed to fix the issue most of the time, for example by removing try catch blocks in my code.

But in the end, I don’t understand several things about these errors:

Can they happen because of a mistake in my code? Or are they only related to using something that doesn’t work in WebGL?

There is an error code (ie: abort(84), abort(-1) ), what does this code means and is there some kind of documentation on it?

the top google result for “webgl abort” is a unity forums post which suggests:

  • turning off code stripping
  • filing a bug w/ a specific repro to unity
  • updating your version of unity