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

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!

1 Like

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.

I’m running into a similar problem myself.
I am using Unity version 2020.3.30f1

[ 0 ] ReleaseFromGfxVersionList ( GfxVersionList.cpp:38 )
[ 1 ] ~GfxVersionList ( GfxVersionList.h:96 )
[ 2 ] ~BufferMetal ( MetalScratchBuffer.h:28 )
[ 3 ] HandleTaskStream ( MemoryMacros.h:198 )
[ 4 ] ThreadEntry ( GfxTaskExecutorMetal.mm:168 )
[ 5 ] RunThreadWrapper ( Thread.cpp:81 )
[ 6 ] _pthread_start
[ 7 ] thread_start

I also encountered the same problem

Thread 23 name:  Metal Submission Thread
Thread 23 Crashed:
0   UnityFramework                    0x0000000104ec85ac GfxVersionList::Impl::ReleaseFromGfxVersionList() + 21579180 (GfxVersionList.cpp:40)
1   UnityFramework                    0x0000000104ec85b8 GfxVersionList::Impl::ReleaseFromGfxVersionList() + 21579192 (GfxVersionList.cpp:41)
2   UnityFramework                    0x000000010530ab54 GfxVersionList::~GfxVersionList() + 26045268 (GfxVersionList.h:96)
3   UnityFramework                    0x00000001052f51b4 BufferMetal::~BufferMetal() + 25956788 (BuffersMetal.mm:35)
4   UnityFramework                    0x00000001053113c8 GfxTaskExecutorMetal::HandleTaskStream() + 26072008 (GfxTaskExecutorMetal.mm:149)
5   UnityFramework                    0x0000000105311aa8 GfxTaskExecutorMetal::ThreadEntry(void*) + 26073768 (GfxTaskExecutorMetal.mm:168)
6   UnityFramework                    0x0000000104e8d750 Thread::RunThreadWrapper(void*) + 21337936 (Thread.cpp:81)
7   libsystem_pthread.dylib           0x00000001b132d2c0 _pthread_body + 128
8   libsystem_pthread.dylib           0x00000001b132d220 _pthread_start + 44
9   libsystem_pthread.dylib           0x00000001b1330cdc thread_start + 4
1 Like

I also

Crashed: Metal Submission Thread
0  UnityFramework                 0x14568b0 ReleaseFromGfxVersionList + 39 (GfxVersionList.cpp:39)
1  UnityFramework                 0x15ba700 ~GfxVersionList + 96 (GfxVersionList.h:96)
2  UnityFramework                 0x15a37b8 ~BufferMetal + 28 (MetalScratchBuffer.h:28)
3  UnityFramework                 0x15c15f4 HandleTaskStream + 203 (MemoryMacros.h:203)
4  UnityFramework                 0x15c1b24 ThreadEntry + 182 (GfxTaskExecutorMetal.mm:182)
5  UnityFramework                 0x10df1c4 RunThreadWrapper + 82 (Thread.cpp:82)
6  libsystem_pthread.dylib        0x16b8 _pthread_start + 148
7  libsystem_pthread.dylib        0xb88 thread_start + 8

i am using unity 2021.3.27f1 and on the same crash

1 Like

upgraded to unity 2022.3.15f1 and nothing changed

1 Like

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!!!

1 Like