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

How do I DISABLE_EXCEPTION_CATCHING = 1 for webgl?

Discussion in 'WebGL' started by CodeStarrk, Jul 14, 2021.

  1. CodeStarrk

    CodeStarrk

    Joined:
    Jan 5, 2017
    Posts:
    37
  2. MarcelPursche

    MarcelPursche

    Unity Technologies

    Joined:
    Mar 3, 2021
    Posts:
    44
  3. CodeStarrk

    CodeStarrk

    Joined:
    Jan 5, 2017
    Posts:
    37
    Interesting thanks, any indication on which version this will be fixed?
     
    OceanX000 likes this.
  4. mickfcna

    mickfcna

    Joined:
    May 13, 2019
    Posts:
    46
    Hello @MarcelPursche ,

    It says this issue is fixed but I still have this error on Unity 2021.3.5. Can you confirm the team is working on it ?
    Thanks for the reply
     
  5. alphabeta314

    alphabeta314

    Joined:
    Jul 23, 2015
    Posts:
    47
    Still happens in 2022.2.19
     
  6. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,019
    Also happens in 2023.1.0b17 (beta).

    Reproducing error message primarily for search engines:
    Code (CSharp):
    1. Internal build system error. BuildProgram exited with code 1.
    2. System.ArgumentException: An element with the same key but a different value already exists.
    3.   Key: 'DISABLE_EXCEPTION_CATCHING'
    4.    at System.Collections.Immutable.ImmutableDictionary`2.HashBucket.Add
    5.       (TKey key, TValue value, IEqualityComparer`1 keyOnlyComparer, IEqualityComparer`1
    6.       valueComparer, KeyCollisionBehavior behavior, OperationResult& result)
    7. [...]
     
  7. unityruba

    unityruba

    Unity Technologies

    Joined:
    Nov 6, 2020
    Posts:
    233
    Happy news: We fixed this bug recently!

    The fix landed in:
    2023.2.0a16
    2023.1.0b18
    2022.2.21f1
     
    CodeSmile likes this.
  8. Marks4

    Marks4

    Joined:
    Feb 25, 2018
    Posts:
    491
    Will this be fixed on 2021? Unity 2021 LTS still has this problem...
     
  9. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    944
    Thanks for the highlight @Marks4. We have a backports machinery that usually should take this all the way to all previous supported versions, but peeking into it, looks like it there is no record of it. Added a backport ticket for 2021.3 LTS now.
     
    Marks4 likes this.