Search Unity

WebGL builds are unable to run

Discussion in 'Linux' started by Skade88, Mar 26, 2022.

  1. Skade88

    Skade88

    Joined:
    Jan 2, 2017
    Posts:
    21
    Hello!

    When I build my game using the Unity 2022.10b13 on Ubuntu the compiled game crashes when loading in Chrome.

    "An error occurred running the Unity content on this page.See your browser JavaScript console for more info. The error was: RuntimeError: memory access out of bounds at http://localhost45759/Build/WebGL.wasm.br:wasm-function[1447]:0x8cd7c ..."

    WebGL builds used to work for me. Is this a known bug or am I doing something quite wrong to get it to act this way?

    Best,
    David Brooks
     
  2. AleksanderDevs

    AleksanderDevs

    Joined:
    May 17, 2022
    Posts:
    1
    Yep. I tried use unity with webgl on fedora 35, same problem and it does not work at all
     
  3. AlfieBooth

    AlfieBooth

    Joined:
    Dec 2, 2013
    Posts:
    31
    Are you using a scriptable render pipeline? Webgl and the URP on Linux is a black hole for your time. If you can switch to the standard render pipeline things get MUCH easier.
    Performance is also much better.