Search Unity

Unsupported internal call for IL2CPP:AppDomain::InternalIsFinalizingForUnload

Discussion in 'Windows' started by BDS73, Nov 16, 2017.

  1. BDS73

    BDS73

    Joined:
    Nov 13, 2017
    Posts:
    3
    Hi,

    I'm getting the following exception on WSA_10_0/il2cpp:

    Code (csharp):
    1. System.NotSupportedException: C:\Projects\...\Il2CppOutputProject\IL2CPP\libil2cpp\icalls\mscorlib\System\AppDomain.cpp(189) : Unsupported internal call for IL2CPP:AppDomain::InternalIsFinalizingForUnload - "This icall is not supported by il2cpp."
    2.   at System.AppDomain.InternalIsFinalizingForUnload (System.Int32 domain_id) [0x00000] in <00000000000000000000000000000000>:0
    3.   at System.AppDomain.IsFinalizingForUnload () [0x00000] in <00000000000000000000000000000000>:0
    4.   at System.Threading.ThreadPoolWorkQueueThreadLocals.Finalize () [0x00000] in <00000000000000000000000000000000>:0
    C# fragment throwing the exception:

    Code (csharp):
    1. AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
    What is wrong? Can I to get unhandled exceptions from il2cpp another way?
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,674
    Is that really what is throwing the exception? The callstack suggests otherwise... are you calling AppDomain.Unload from anywhere?
     
  3. BDS73

    BDS73

    Joined:
    Nov 13, 2017
    Posts:
    3
    AppDomain and AppDomain.CurrentDomain only used to subscribe and unsubscribe UnhandledException. Also removing this fragments exclude exceptions
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,674
    Can we have a bug report on this?
     
  5. BDS73

    BDS73

    Joined:
    Nov 13, 2017
    Posts:
    3
    Oh! My search discovered "Null reference exception" at OnUnhandledException. But synthetic test doesn't contains similar behavior. Howbeit problem was solved by another way

    Thank you for your attention