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

Bug Enable multi-threaded compilation option with Unity2022.3.0, run crash when changing scenes

Discussion in 'WebGL' started by OceanX000, Jun 5, 2023.

  1. OceanX000

    OceanX000

    Joined:
    Feb 24, 2021
    Posts:
    120
    Last edited: Jun 6, 2023
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,048
    If this happens with the simplemost example (eg a scene that just loads itself or another scene every second or so) and the crash only happens with threadsSupport enabled then you should report this as a bug using the Bug Reporter menu item.

    Your example project wouldn't load correctly for me the first few tries so for all we know, it could be an issue with the project itself.
     
  3. OceanX000

    OceanX000

    Joined:
    Feb 24, 2021
    Posts:
    120
    Please open the browser console to see if there is an error log. This is just a very simple official Unity demo (https://github.com/Unity-Technologies/Benchmark), and it does not switch scenes every second.

    It will not crash without multi-threading mode.
     
    Last edited: Jun 6, 2023
  4. nfynt-zap

    nfynt-zap

    Joined:
    Jun 3, 2021
    Posts:
    20
    It's a known bug when building with multi-thread support for WebGL. I've already submitted a bug report with minimum reproducible project here.
     
    OceanX000 likes this.
  5. unityruba

    unityruba

    Unity Technologies

    Joined:
    Nov 6, 2020
    Posts:
    233
    There's a fix in sight! We landed it in the latest version, and the backports are in the works :)
     
    OceanX000 likes this.
  6. OceanX000

    OceanX000

    Joined:
    Feb 24, 2021
    Posts:
    120
    @unityruba The crash still exists in the 2022.3.2 version
     
  7. unityruba

    unityruba

    Unity Technologies

    Joined:
    Nov 6, 2020
    Posts:
    233
    The fix hasn't landed yet in the backports, which is why you're still seeing the issue in 2022.3.2. I'll follow up.
     
  8. OceanX000

    OceanX000

    Joined:
    Feb 24, 2021
    Posts:
    120
    Thanks for the reply. Our project needs to use the LTS engine version, so currently it is mainly 2022.3.x
     
  9. puos

    puos

    Joined:
    Dec 4, 2014
    Posts:
    1
    Is multi-threading possible in webgl by using Jobsystem and BurstCompile?