Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

UnityLoader Code URL corruption does not return error with WASM

Discussion in 'Web' started by mattbrandmm, Oct 4, 2018.

  1. mattbrandmm

    mattbrandmm

    Joined:
    Jun 5, 2018
    Posts:
    90
    I am having some trouble tracking an error that used to be caught using ASM. Basically there are 2 files that UnityLoader loads that we check for errors on - the framework url and the code url.

    The code url in 2018 with wasm no longer returns an error from UnityLoader.js when it is corrupted.

    This worked in 2018, with asm. So if the asm code url was corrupted, we would get the following js errors to our logs:
    • Uncaught TypeError: Module.asm is not a function
    • Uncaught SyntaxError: Unexpected token <
    But with wasm, if the wasm code url is corrupted, we don't get any errors in our logs. This is an issue because we will not see the issue if player loads fail in this manner, it is silent log-wise.

    Any ideas why the error is not being triggered anymore?
     
    Last edited: Oct 5, 2018