We’ve got an update in review with Apple which has been rejected because of an uncaught exception on launch in the UnityGfxDeviceWorker thread. This is the exception:
*** Terminating app due to uncaught exception ‘NSGenericException’, reason: ‘*** Collection <NSConcreteMapTable: 0x13dd8b3c0> was mutated while being enumerated.’
The symbolicated callstack looks like this:
-[NSException name] (in CoreFoundation) + 0
-[NSConcreteMapTable countByEnumeratingWithState:objects:count:] (in Foundation) + 76
-[DisplayManager enumerateDisplaysWithBlock:] (in resynth) + 288
UnityStartFrameRendering (in resynth) + 52
GfxDeviceMetal::BeginFrame() (in resynth) (GfxDeviceMetal.mm:1606)
GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&) (in resynth) (GfxDeviceWorker.cpp:1053)
GfxDeviceWorkerAutoreleasePoolProxy (in resynth) (GfxDeviceMetal.mm:1826)
GfxDeviceWorker::Run() (in resynth) (GfxDeviceWorker.cpp:328)
GfxDeviceWorker::RunGfxDeviceWorker(void*) (in resynth) (GfxDeviceWorker.cpp:316)
Thread::RunThreadWrapper(void*) (in resynth) (Thread.cpp:44)
We’re using Unity 5.4.3f1. The device the tester was using was running iOS 10.3.1 and it was an iPhone 6s Plus (hardware model iPhone8,2).
I haven’t been able to find anything in the issue tracker about this. Is this a known crash? Has it been fixed in another Unity version? I haven’t seen it happen before anywhere else on other iOS versions (I myself am on 10.3.2 at the moment and don’t have a 10.3.1 device to test with).
We have the same issue after we submit a test ipa to Testflight. We can run app on our device successfully, but Testflight Reviewer feedback this error. Our Unity version is 5.5.2f1.
Also experiencing this issue in 2017.3f1 and is crashing on iPad Air 2. I was wondering if you managed to find a solution.
I did not recieve this error before and I do not know what caused it. I saw some similar posts about metal and multithreaded rendering so I am going to try to submit it for review with multithreaded rendering turned off.
I ended up updating to 5.4.3p4. I forget whether that was for something else or for this bug specifically. I haven’t seen the bug since then, though. But you’re on a different version entirely so it sounds like the bug is still there…