Hi. After a switch the project on WebGL I receive an error “Uncaught abort(298) at Error…” in the browser when the scene starts.
Here is the error log:
Uncaught abort(298) at Error at jsStackTrace (blob:https://mysite.com/74d4a08e-c185-409f-b97c-7838c4415155:2:15188) at Object.stackTrace (blob:https://mysite.com/74d4a08e-c185-409f-b97c-7838c4415155:2:15359) at Object.onAbort (https://mysite.com/WebGL_Builds/web_24.05_7/Build/UnityLoader.js:4:9327) at abort (blob:https://mysite.com/74d4a08e-c185-409f-b97c-7838c4415155:2:572213) at wasm-function[94818]:4 at wasm-function[33965]:49 at wasm-function[62665]:10 at wasm-function[87728]:776 at wasm-function[94504]:19 at Object.dynCall_viii (blob:https://mysite.com/74d4a08e-c185-409f-b97c-7838c4415155:2:558606) at invoke_viii (blob:https://mysite.com/74d4a08e-c185-409f-b97c-7838c4415155:2:424139) at wasm-function[79297]:352 at wasm-function[79990]:32 ... at wasm-function[49977]:17 at wasm-function[94467]:21 at Object.dynCall_iiiii (blob:https://mysite.com/74d4a08e-c185-409f-b97c-7838c4415155:2:539100) at invoke_iiiii (blob:https://mysite.com/74d4a08e-c185-409f-b97c-7838c4415155:2:393140) at wasm-function[45528]:172 at wasm-function[45949]:36 ... at wasm-function[10375]:280 at wasm-function[94489]:12 at Object.dynCall_v (blob:https://mysite.com/74d4a08e-c185-409f-b97c-7838c4415155:2:551707) at browserIterationFunc (blob:https://mysite.com/74d4a08e-c185-409f-b97c-7838c4415155:2:141328) at Object.runIter (blob:https://mysite.com/74d4a08e-c185-409f-b97c-7838c4415155:2:144401) at Browser_mainLoop_runner (blob:https://mysite.com/74d4a08e-c185-409f-b97c-7838c4415155:2:142863)
The error text may change, but the UnityLoader.js part remains.
Here is the UnityLoader code
var a = {
url: t,
onProgress: UnityLoader.Progress.handler,
compatibilityCheck: UnityLoader.compatibilityCheck,
Module: {
graphicsAPI: ["WebGL 2.0", "WebGL 1.0"],
onAbort: function(e) {
throw void 0 !== e ? (this.print(e),
this.printErr(e),
e = JSON.stringify(e)) : e = "",
"abort(" + e + ") at " + this.###ERROR IN THIS PLACE###stackTrace()
},
preRun: [],
postRun: [],
print: function(e) {
console.log(e)
},
printErr: function(e) {
console.error(e)
},
...
It turned out to start the scene by removing most of the objects. But consistently deleting objects failed to find the culprit. Need to delete a certain group of objects so that the error disappears.
unity 2018.3.14f1