Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Errors when trying to use no exceptions

Discussion in 'WebGL' started by Shadowing, Apr 4, 2021.

  1. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,627
    I get this error if I try to use no exceptions. The unity manual says i should use none for best performance.
    Unity 2020 LTS


    26.3.loader.js:1 exception thrown: undefined - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.
    printErr @ 26.3.loader.js:1
    systemlords.26horses.com/:1 Uncaught (in promise) undefined - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.
     
  2. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,627
    I don't have any issues when using Full With out Stacktrace
     
  3. VoxelBoy

    VoxelBoy

    Joined:
    Nov 7, 2008
    Posts:
    240
    @Shadowing Did you ever find out the root cause? I have the same problem.
     
  4. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,627
    I don't think i ever gotton no exceptions to work for the 6 years I've been using web GL for Unity.
     
  5. VoxelBoy

    VoxelBoy

    Joined:
    Nov 7, 2008
    Posts:
    240
    Alright, thank you :)
     
  6. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,627
    I have a theory. If there is no exceptions then if there is any error at all it won't handle it properly. Including even game engine bugs. So i was thinking in order for no exceptions to work is there has to be no bugs what so ever. Other wise all code gets halted.

    but idk lol.
     
  7. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,627
    So I just been leaving exceptions on. Performance seems good. Its better performance than what I get on mobile.
     
  8. unityruba

    unityruba

    Unity Technologies

    Joined:
    Nov 6, 2020
    Posts:
    233
  9. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,627
    Actually I dont think I tested 2020 LTS which is what i use now for all my games. I just recently upgraded from 2018.

    But ya ill test it on both
     
  10. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,627
    If i change Enable Exceptions to None. I get these errors. in Unity 2020.3.21
    I'll see about testing on 2021


    Uncaught undefined - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.
    runIter @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    Browser_mainLoop_runner @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    requestAnimationFrame (async)
    requestAnimationFrame @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    Browser_mainLoop_scheduler_rAF @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    Browser_mainLoop_runner @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    requestAnimationFrame (async)
    requestAnimationFrame @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    Browser_mainLoop_scheduler_rAF @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    _emscripten_set_main_loop @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    $_main @ 0877ad9a:0x485863
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    callMain @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    doRun @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    run @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    runCaller @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    removeRunDependency @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    doCallback @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    done @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    done @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    storeLocalEntry @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    IndexedDB (async)
    loadRemoteEntry @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    reconcile @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    IndexedDB (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    success (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    IndexedDB (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    success (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    IndexedDB (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    success (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    IndexedDB (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    success (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    IndexedDB (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    IndexedDB (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    success (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    IndexedDB (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    success (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    IndexedDB (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    success (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    IndexedDB (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    success (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    IndexedDB (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    IndexedDB (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    IndexedDB (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    IndexedDB (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    IndexedDB (async)
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    IndexedDB (async)
    getDB @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    getRemoteSet @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    getLocalSet @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    syncfs @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    syncfs @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    callRuntimeCallbacks @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    preRun @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    run @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    runCaller @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    removeRunDependency @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    receiveInstance @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    receiveInstantiatedSource @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    Promise.then (async)
    instantiateArrayBuffer @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    doNativeWasm @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    (anonymous) @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    unityFramework @ b11e1102-c52b-4f8f-bdac-69d1983cb791:2
    (anonymous) @ 3.7.loader.js:1
    Promise.then (async)
    c @ 3.7.loader.js:1
    (anonymous) @ 3.7.loader.js:2
    createUnityInstance @ 3.7.loader.js:2
    script.onload @ (index):67
    load (async)
    (anonymous) @ (index):66
    21b11e1102-c52b-4f8f-bdac-69d1983cb791:2 An abnormal situation has occurred: the PlayerLoop internal function has been called recursively. Please contact Customer Support with a sample project so that we can reproduce the problem and troubleshoot it.
     
  11. mickfcna

    mickfcna

    Joined:
    May 13, 2019
    Posts:
    46
    The problem is still present on Unity 2021.3.5 :-(