Search Unity

Unsupported internal call for IL2CPP:Mutex::CreateMutex_internal - "Named mutexes are not supported

Discussion in 'iOS and tvOS' started by bjornrun, Feb 21, 2016.

  1. bjornrun

    bjornrun

    Joined:
    Oct 29, 2013
    Posts:
    87
    I got the following error when compiling for iOS:

    NotSupportedException: /Users/builduser/buildslave/unity/build/Tools/il2cpp/il2cpp/libil2cpp/icalls/mscorlib/System.Threading/Mutex.cpp(26) : Unsupported internal call for IL2CPP:Mutex::CreateMutex_internal - "Named mutexes are not supported"

    at System.Threading.Mutex.CreateMutex_internal (Boolean initiallyOwned, System.String name, Boolean& created) [0x00000] in <filename unknown>:0

    at System.Threading.Mutex..ctor (Boolean initiallyOwned, System.String name) [0x00000] in <filename unknown>:0

    How to solve it?
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    3,971
    @bjornrun

    Unfortunately we don't have support for named mutexes in IL2CPP, as POSIX platforms like iOS don't provide the underlying support. We probably implement some higher level support for this, but I doubt it will be good to performance.

    There should be alternatives to using named mutexes though. Do you get a full managed call stack for this exception? That should point to the code which is using a named mutex. Maybe we can determine a viable work around.
     
    bjornrun likes this.
  3. ghiboz

    ghiboz

    Joined:
    Sep 7, 2012
    Posts:
    440
    hi!
    I got this error, I removed named mutex to avoid the issue, but now I got this:

    Code (CSharp):
    1. TagException: Unable to map shared memory segment. GetLastError = 127
    I'm creating a win desktop game