I created a Unity project for iOS and augmented reality with ARKit. The app works fine on both my iPad Pro (2nd generation) and my iPhone (7 plus), but i get a crash with the following error as soon as my Depthkit Clip (multi-camera) is instantiated in my scene :
IOGPUMetalCommandBufferStorageAllocResourceAtIndex: failed to allocate pooled resource at dbClass: 5 dyld4 config: DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib (lldb)
Here are plugins and versions i used :
- Unity 2020.3.2f1
- ARKit 4.2.2
- ARFoundation 4.2.2
- ARSubsystems 4.2.2
- XR Plugin Management 4.0.1
- Depthkit Core latest
- Depthkit Studio latest
When i look at my profiler in XCode while running the app, the GPU memory seems occupied, but not maxed out, so it doesn’t seem to be the issue. Does anyone know what could be the issue here?