Search Unity

Question iOS crash at "ReleaseFromGfxVersionList (GfxVersionList.cpp:38)"

Discussion in 'iOS and tvOS' started by HailongG, May 31, 2022.

  1. HailongG

    HailongG

    Joined:
    Mar 10, 2020
    Posts:
    1
    Hi, our project uses Unity 2020.3.17f1c1 and has encountered a random crash on iOS. I googled these keywords "GfxVersionList" "~BufferMetal" but didn't find any similar posts.

    Here's the stack trace:
    The resolved stack trace:
    Thanks for any help!
     
    Last edited: Jun 1, 2022
    Hightlander likes this.
  2. Hightlander

    Hightlander

    Joined:
    May 30, 2013
    Posts:
    30
    So, I had the same problem on my project. Although this is exactly the error text sent to the crash analytics - the problem was a memory leak in the native libraries.
    In my case, the problem was in haptic plugins (problem not solved yet), in some situations haptic could run very often and at a certain point used memory (not noticeable in the profiler) began to grow and, if spam haptic was not stopped, led to the crash.
     
    Last edited: Jan 17, 2023
  3. hzn403

    hzn403

    Joined:
    Apr 23, 2013
    Posts:
    8
    I'm running into a similar problem myself.
    I am using Unity version 2020.3.30f1
    Code (CSharp):
    1. [ 0 ] ReleaseFromGfxVersionList ( GfxVersionList.cpp:38 )
    2. [ 1 ] ~GfxVersionList ( GfxVersionList.h:96 )
    3. [ 2 ] ~BufferMetal ( MetalScratchBuffer.h:28 )
    4. [ 3 ] HandleTaskStream ( MemoryMacros.h:198 )
    5. [ 4 ] ThreadEntry ( GfxTaskExecutorMetal.mm:168 )
    6. [ 5 ] RunThreadWrapper ( Thread.cpp:81 )
    7. [ 6 ] _pthread_start
    8. [ 7 ] thread_start
     
  4. lbk928321

    lbk928321

    Joined:
    Sep 27, 2021
    Posts:
    1
    I also encountered the same problem
    Code (CSharp):
    1. Thread 23 name:  Metal Submission Thread
    2. Thread 23 Crashed:
    3. 0   UnityFramework                    0x0000000104ec85ac GfxVersionList::Impl::ReleaseFromGfxVersionList() + 21579180 (GfxVersionList.cpp:40)
    4. 1   UnityFramework                    0x0000000104ec85b8 GfxVersionList::Impl::ReleaseFromGfxVersionList() + 21579192 (GfxVersionList.cpp:41)
    5. 2   UnityFramework                    0x000000010530ab54 GfxVersionList::~GfxVersionList() + 26045268 (GfxVersionList.h:96)
    6. 3   UnityFramework                    0x00000001052f51b4 BufferMetal::~BufferMetal() + 25956788 (BuffersMetal.mm:35)
    7. 4   UnityFramework                    0x00000001053113c8 GfxTaskExecutorMetal::HandleTaskStream() + 26072008 (GfxTaskExecutorMetal.mm:149)
    8. 5   UnityFramework                    0x0000000105311aa8 GfxTaskExecutorMetal::ThreadEntry(void*) + 26073768 (GfxTaskExecutorMetal.mm:168)
    9. 6   UnityFramework                    0x0000000104e8d750 Thread::RunThreadWrapper(void*) + 21337936 (Thread.cpp:81)
    10. 7   libsystem_pthread.dylib           0x00000001b132d2c0 _pthread_body + 128
    11. 8   libsystem_pthread.dylib           0x00000001b132d220 _pthread_start + 44
    12. 9   libsystem_pthread.dylib           0x00000001b1330cdc thread_start + 4
     
    Sucklord5000 likes this.
  5. Sucklord5000

    Sucklord5000

    Joined:
    Jan 18, 2021
    Posts:
    16
    I also
    Code (CSharp):
    1. Crashed: Metal Submission Thread
    2. 0  UnityFramework                 0x14568b0 ReleaseFromGfxVersionList + 39 (GfxVersionList.cpp:39)
    3. 1  UnityFramework                 0x15ba700 ~GfxVersionList + 96 (GfxVersionList.h:96)
    4. 2  UnityFramework                 0x15a37b8 ~BufferMetal + 28 (MetalScratchBuffer.h:28)
    5. 3  UnityFramework                 0x15c15f4 HandleTaskStream + 203 (MemoryMacros.h:203)
    6. 4  UnityFramework                 0x15c1b24 ThreadEntry + 182 (GfxTaskExecutorMetal.mm:182)
    7. 5  UnityFramework                 0x10df1c4 RunThreadWrapper + 82 (Thread.cpp:82)
    8. 6  libsystem_pthread.dylib        0x16b8 _pthread_start + 148
    9. 7  libsystem_pthread.dylib        0xb88 thread_start + 8
     
  6. tritruonglihuhugames

    tritruonglihuhugames

    Joined:
    Mar 25, 2021
    Posts:
    7
    i am using unity 2021.3.27f1 and on the same crash
     
    Sucklord5000 likes this.
  7. tritruonglihuhugames

    tritruonglihuhugames

    Joined:
    Mar 25, 2021
    Posts:
    7
    upgraded to unity 2022.3.15f1 and nothing changed
     
    Sucklord5000 likes this.
  8. tritruonglihuhugames

    tritruonglihuhugames

    Joined:
    Mar 25, 2021
    Posts:
    7
    I tried so many ways and now i fixed this crash:

    My solution:
    Project Settings --> Player --> iOS platform (iOS Only) --> Other Settings
    - Untick on Metal API Validation
    - Tick on Multithread Rendering
    - Untick on Graphics Jobs (Experimental)

    My crash-free rate inscreased from 98.8% to 99.6%.
    I hope my solution will be helped. Good luck!!!!
     

    Attached Files:

    Sucklord5000 likes this.