Search Unity

Build with debug config: Threads are not enabled for this platform

Discussion in 'Web' started by douglassophies, Apr 20, 2019.

  1. douglassophies

    douglassophies

    Joined:
    Jun 17, 2012
    Posts:
    141
    If i set "C++ compiler configuration" in other settings to 'release', i can get a working WebGL game. If i use the Debug mode, and run the game i get a popup as attached. Is this a bug or am i missing something?
     

    Attached Files:

    MUGIK, deus0 and suiboli like this.
  2. douglassophies

    douglassophies

    Joined:
    Jun 17, 2012
    Posts:
    141
    Update: New computer, new project, same issue. Does this mean its a Unity bug?
     
  3. Fritsl

    Fritsl

    Joined:
    Mar 10, 2013
    Posts:
    211
    Same problem!
     
  4. LightYarn

    LightYarn

    Joined:
    Nov 18, 2012
    Posts:
    77
    Yep, experienced the same problem yesterday. It seems to be a bug
     
  5. Chrisdbhr

    Chrisdbhr

    Joined:
    May 21, 2016
    Posts:
    19
    Same problem here too. Unity 2019.1.14f1. Building with C++ Compiler Configuration "Release" works.

    Looks like there is already a bug report opened with this issue.
     
  6. aurelien-morel-ubiant

    aurelien-morel-ubiant

    Joined:
    Sep 27, 2017
    Posts:
    275
    Same issue here. Maybe it could be nice to solve this now (after almost a year...) @Schubkraft any news on this issue ?
     
  7. deus0

    deus0

    Joined:
    May 12, 2015
    Posts:
    256
    thanks my dudes (2020.1.0f1 still an issue)
     
  8. diegotomascarreras

    diegotomascarreras

    Joined:
    Nov 4, 2020
    Posts:
    1
    How do you fix the issue?
     
    mowax74 likes this.
  9. MUGIK

    MUGIK

    Joined:
    Jul 2, 2015
    Posts:
    481
    it's funny cuz I was thinking that Debug configuration will speed up my build and I will spend less time on testing WebGL build. But... Now I spent 2 hours in total trying to understand what's wrong with my project :)

    Changing back to Release fixed my issue.
     
  10. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    953
    This is a bug that is not an issue strictly with WebGL, but one of IL2CPP. There has been a bug report, and the issue is on their radar, although I am not completely sure what the latest status is. Pinged some people internally to see if there has been progress yet.

    In the meanwhile, for debugging scenarios, recommend building with C++ compiler configuration set to Release, but with project build configuration set to Development.
     
  11. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    953
    It looks like the issue has been fixed, and the fix should be present in the following versions:
    - 2021.1.0a2 and newer
    - 2021.2.0a5 and newer
    - 2019.4.15f1 and newer
    - 2020.1.14f1 and newer
    - 2020.2.0b12 and newer
     
    deus0, OceanX000 and MUGIK like this.