Crash in SceneKit on iOS - ios

I have a crash on SceneKit reported by multiple users on Crashlytics. It happens on a lot of devices (iPhone SE, iPhone 12, iPhone 11 Pro Max...) on iOS 14. They seem to appear quite randomly.
The callstack only contains SceneKit calls.
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0068006b006a0099
Crashed: com.apple.main-thread
0 SceneKit 0x1dd1873a4 C3DAnimationManagerRemoveAnimationsForObject + 48
1 SceneKit 0x1dd33604c C3DEntityRemoveAllAnimations + 44
2 SceneKit 0x1dd335fe4 C3DEntityCFFinalize + 24
3 SceneKit 0x1dd180488 _C3DMeshSourceCFFinalize + 112
4 CoreFoundation 0x1a8952aac _CFRelease + 248
5 CoreFoundation 0x1a88afd88 -[__NSArrayM dealloc] + 192
6 SceneKit 0x1dd23df08 _C3DMeshCFFinalize + 84
7 CoreFoundation 0x1a8952aac _CFRelease + 248
8 SceneKit 0x1dd1c2a00 _C3DRendererElementFinalize + 96
9 SceneKit 0x1dd3c2c70 __C3DRendererElementStoreDeallocateSpan + 164
10 SceneKit 0x1dd3c2d88 C3DRendererElementStoreDeallocateSpanForNode + 64
11 SceneKit 0x1dd2439dc C3DSceneNodeWillBeRemovedOrHidden + 48
12 SceneKit 0x1dd239584 _C3DNodeWillRemoveFromScene + 36
13 SceneKit 0x1dd168440 C3DRemoveSceneRef + 160
14 SceneKit 0x1dd2394c8 _C3DNodeEnumerateSubEntities + 408
15 SceneKit 0x1dd16849c C3DRemoveSceneRef + 252
16 SceneKit 0x1dd2394c8 _C3DNodeEnumerateSubEntities + 408
17 SceneKit 0x1dd16849c C3DRemoveSceneRef + 252
18 SceneKit 0x1dd2394e0 _C3DNodeEnumerateSubEntities + 432
19 SceneKit 0x1dd16849c C3DRemoveSceneRef + 252
20 SceneKit 0x1dd2394e0 _C3DNodeEnumerateSubEntities + 432
21 SceneKit 0x1dd16849c C3DRemoveSceneRef + 252
22 SceneKit 0x1dd2449d4 _C3DSceneCFFinalize + 188
23 CoreFoundation 0x1a8952aac _CFRelease + 248
24 SceneKit 0x1dd374958 C3DTransactionFlush + 2112
25 CoreFoundation 0x1a894fc74 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
26 CoreFoundation 0x1a8949d98 __CFRunLoopDoObservers + 572
27 CoreFoundation 0x1a894a344 __CFRunLoopRun + 1052
28 CoreFoundation 0x1a89499f4 CFRunLoopRunSpecific + 600
29 GraphicsServices 0x1c001a734 GSEventRunModal + 164
30 UIKitCore 0x1ab3c775c -[UIApplication _run] + 1072
31 UIKitCore 0x1ab3ccfcc UIApplicationMain + 168
32 TagHeuerGolf 0x100084cac main + 27 (main.swift:27)
33 libdyld.dylib 0x1a8605cf8 start + 4
Does someone have the same crashes? If so, did you find a solution to fix it?

Related

Weird crash on iOS using Firebase Crashlytics

Firebase Crashlytics shows a weird crash on iOS app, I can't understand what causing it:
Crashed: com.apple.main-thread
0 LogoQuizAC 0x10047f6a0 _hidden#18_ + 135 (__hidden#957_:135)
1 LogoQuizAC 0x1004771f4 _hidden#17_ + 96 (__hidden#454_:96)
2 LogoQuizAC 0x100477328 _hidden#20_ + 4304712488 (__hidden#456_:4304712488)
3 Foundation 0x19b094b20 __NSFireTimer + 68
4 CoreFoundation 0x199c79fa0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
5 CoreFoundation 0x199c79ba0 __CFRunLoopDoTimer + 1064
6 CoreFoundation 0x199c78ffc __CFRunLoopDoTimers + 328
7 CoreFoundation 0x199c72ee4 __CFRunLoopRun + 1936
8 CoreFoundation 0x199c7221c CFRunLoopRunSpecific + 600
9 GraphicsServices 0x1b183e784 GSEventRunModal + 164
10 UIKitCore 0x19c6b2ee8 -[UIApplication _run] + 1072
11 UIKitCore 0x19c6b875c UIApplicationMain + 168
12 LogoQuizAC 0x1002b503c main + 20 (RLockedCell.swift:20)
13 libdyld.dylib 0x1999326b0 start + 4
How can I figure it out? any strategy of solving this issue?

get a probeGC crash in Fabric Crashlytics

This crash is happening only on iOS 13.3.1 & 13.4.0
This crash is happening randomly and is a real deterrent to my customers.
I have update fabric library to lastest version (1.10.2).
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x1947be090 objc_msgSend + 16
1 Foundation 0x194e564f0 probeGC + 120
2 Foundation 0x194d6cd64 -[NSConcreteMapTable rehashAround:] + 204
3 Foundation 0x194d6cc68 -[NSConcreteMapTable removeObjectForKey:] + 248
4 UIKitCore 0x198fbd484 _UIAnalyticsGatherMultitouchAnalytics + 632
5 UIKitCore 0x198b38a10 -[UIApplication sendEvent:] + 204
6 UIKitCore 0x198bb0c20 __dispatchPreprocessedEventFromEventQueue + 5880
7 UIKitCore 0x198bb317c __handleEventQueueInternal + 4924
8 UIKitCore 0x198babff0 __handleHIDEventFetcherDrain + 108
9 CoreFoundation 0x194a18a00 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
10 CoreFoundation 0x194a18958 __CFRunLoopDoSource0 + 80
11 CoreFoundation 0x194a180f0 __CFRunLoopDoSources0 + 180
12 CoreFoundation 0x194a1323c __CFRunLoopRun + 1080
13 CoreFoundation 0x194a12adc CFRunLoopRunSpecific + 464
14 GraphicsServices 0x19e9b3328 GSEventRunModal + 104
15 UIKitCore 0x198b2063c UIApplicationMain + 1936
16 xxxxxxxxxxxxxxx 0x1029863dc main + 17 (main.m:17)
17 libdyld.dylib 0x19489c360 start + 4
probably you can get some information here:
https://forums.developer.apple.com/thread/130095

Swift - Game crashes after launchScreen and cannot transition to GameScene NSException Error

I was trying to redo my LaunchScreen.storyboard so I deleted it and created a new LaunchScreen via File(in the toolbar) > New > New File > Launch Screen and then I started getting this problem. I've already checked my IBOutlet connections. I deleted the new LaunchScreen.storyboard in hopes of solving it but it still can't transition to my GameScene. I use SpriteKit and UICollectionView for my game.
Debug Navigator Screenshot
AppDelegate SIGABRT Screenshot
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) e Thread.callStackSymbols.forEach{print($0)}
0 ??? 0x00000001062343cc 0x0 + 4397941708
1 Billionaire City 0x00000001006e23b8 main + 0
2 libsystem_c.dylib 0x00000001c28f7ea8 abort + 140
3 libc++abi.dylib 0x00000001c1fc4788 __cxa_bad_cast + 0
4 libc++abi.dylib 0x00000001c1fc4934 <redacted> + 0
5 libobjc.A.dylib 0x00000001c1fdbe00 <redacted> + 124
6 libc++abi.dylib 0x00000001c1fd0838 <redacted> + 16
7 libc++abi.dylib 0x00000001c1fd01a8 __cxa_get_exception_ptr + 0
8 libc++abi.dylib 0x00000001c1fd0168 <redacted> + 0
9 libobjc.A.dylib 0x00000001c1fdbb3c <redacted> + 0
10 CoreFoundation 0x00000001c2d1d278 <redacted> + 0
11 CoreFoundation 0x00000001c2e05d60 <redacted> + 1408
12 CoreFoundation 0x00000001c2e079fc _CF_forwarding_prep_0 + 92
13 CoreText 0x00000001c6a178d0 <redacted> + 92
14 UIFoundation 0x00000001cd3edf78 <redacted> + 120
15 CoreText 0x00000001c6a1707c <redacted> + 84
16 CoreText 0x00000001c6a169d0 <redacted> + 92
17 CoreText 0x00000001c6a16834 <redacted> + 104
18 CoreText 0x00000001c69c660c <redacted> + 216
19 CoreText 0x00000001c69c651c <redacted> + 160
20 CoreText 0x00000001c69c1da4 CTTypesetterCreateWithAttributedString + 60
21 SpriteKit 0x00000001d98f1c04 _ZN12SKCLabelNode11rebuildTextEv + 1064
22 libdispatch.dylib 0x00000001019f8c74 _dispatch_client_callout + 16
23 libdispatch.dylib 0x0000000101a07480 _dispatch_lane_barrier_sync_invoke_and_complete + 124
24 SpriteKit 0x00000001d98f1230 _ZN12SKCLabelNode21addRenderableChildrenEP13SKCRenderInfoPNSt3__16vectorIP7SKCNodeNS2_9allocatorIS5_EEEE + 92
25 SpriteKit 0x00000001d99aed90 _ZN11SKCRenderer18doBuildRenderGroupEP7SKCNode14SKCRenderState13simd_float4x4 + 372
26 SpriteKit 0x00000001d99aefb8 _ZN11SKCRenderer18doBuildRenderGroupEP7SKCNode14SKCRenderState13simd_float4x4 + 924
27 SpriteKit 0x00000001d99aefb8 _ZN11SKCRenderer18doBuildRenderGroupEP7SKCNode14SKCRenderState13simd_float4x4 + 924
28 SpriteKit 0x00000001d99ae2fc _ZN11SKCRenderer16buildRenderGroupERKNSt3__110shared_ptrI18SKCRenderSortGroupEE + 940
29 SpriteKit 0x00000001d99ab608 _ZN11SKCRenderer15buildRenderPassERKNSt3__110shared_ptrI13SKCRenderPassEE + 96
30 SpriteKit 0x00000001d99aaea0 _ZN11SKCRenderer6renderEP7SKCNodeDv4_fRKNSt3__110shared_ptrI15jet_framebufferEEDv4_j13simd_float4x4bP12NSDictionaryP8SKCStatsSE_d + 1628
31 SpriteKit 0x00000001d9928c80 <redacted> + 664
32 SpriteKit 0x00000001d9928958 <redacted> + 252
33 SpriteKit 0x00000001d992cbec <redacted> + 184
34 UIKitCore 0x00000001ef7cbe54 <redacted> + 1292
35 QuartzCore 0x00000001c728e1f0 <redacted> + 184
36 QuartzCore 0x00000001c7293198 <redacted> + 332
37 QuartzCore 0x00000001c71f60a8 <redacted> + 348
38 QuartzCore 0x00000001c7224108 <redacted> + 640
39 UIKitCore 0x00000001ef35c534 <redacted> + 124
40 CoreFoundation 0x00000001c2d9210c <redacted> + 20
41 CoreFoundation 0x00000001c2d91a10 <redacted> + 272
42 CoreFoundation 0x00000001c2d8ca74 <redacted> + 1024
43 CoreFoundation 0x00000001c2d8c354 CFRunLoopRunSpecific + 436
44 GraphicsServices 0x00000001c4f8c79c GSEventRunModal + 104
45 UIKitCore 0x00000001ef343b68 UIApplicationMain + 212
46 Billionaire City 0x00000001006e2404 main + 76
47 libdyld.dylib 0x00000001c28528e0 <redacted> + 4
(lldb)
It is preferable for an application to run with a LaunchScreen.
In order to fix your problem, try adding a new LaunchScreen, then head to Project Settings - General and from the Launch Screen File drop down menu select your new LaunchScreen.
You can also run it without a LaunchScreen. Delete the LaunchScreen from project in Xcode and Finder, then head to Project Settings - General and from the Launch Screen File drop down menu select scene-name (Main).

MTLTextureDescriptorInternal validateWithDevice crash

My scenekit app got rejected from review, because of a crash. In the symbolicated crash logfile, I can see that it happens at MTLTextureDescriptorInternal validateWithDevice. The same version works in testflight on my devices.
Most of the SCNNodes just contain colors or images. I don't use shaders. There is one SKVideoNode with a mp4 file and one 3D-Object (SCNNode(MDLObject:obj) with .obj).
How can I fix this?
Or can it have something to do with the app size or IPV6, because the app is larger than 100MB and I only tested on WLAN?
Thanks!
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
...
Thread 0 name: Dispatch queue: com.apple.scenekit.renderingQueue.superoom.SuperoomV0x12736dda0
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000018173411c __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000181800ef8 pthread_kill + 112
2 libsystem_c.dylib 0x00000001816a5dac abort + 140
3 libsystem_c.dylib 0x000000018167ae54 __assert_rtn + 284
4 Metal 0x0000000183cd133c MTLReportFailure + 480
5 Metal 0x0000000183cb6350 -[MTLTextureDescriptorInternal validateWithDevice:] + 584
6 AGXMetalG4G 0x0000000105167060 0x105148000 + 127072
7 SceneKit 0x00000001905c35f0 -[SCNMetalResourceManager _newTextureWithDescriptor:] + 52
8 SceneKit 0x00000001905c39f4 -[SCNMetalResourceManager _fillTexture:slice:image:textureImageType:needsMipMap:] + 668
9 SceneKit 0x00000001905c4120 -[SCNMetalResourceManager renderResourceForImage:sampler:] + 340
10 SceneKit 0x0000000190601d70 __41+[SCNRenderContextMetal registerBindings]_block_invoke_17 + 172
11 SceneKit 0x000000019060065c -[SCNRenderContextMetal _execute:] + 2928
12 SceneKit 0x0000000190600dc0 -[SCNRenderContextMetal drawRenderElement:withPass:] + 416
13 SceneKit 0x0000000190608658 C3DEnginePipelineRenderSubTree + 1140
14 SceneKit 0x00000001905d719c C3DEngineContextRenderNodeTree + 440
15 SceneKit 0x00000001906d7d88 _drawScene + 184
16 SceneKit 0x00000001906d5f5c __C3DEngineContextRenderPassInstance + 372
17 SceneKit 0x00000001906d7040 C3DEngineContextRenderMainTechnique + 1352
18 SceneKit 0x0000000190676d48 -[SCNRenderer _renderScene:sceneTime:] + 364
19 SceneKit 0x0000000190676e98 -[SCNRenderer _drawSceneWithNewRenderer:] + 264
20 SceneKit 0x0000000190677398 -[SCNRenderer _drawScene:] + 84
21 SceneKit 0x000000019067769c -[SCNRenderer _draw] + 636
22 SceneKit 0x00000001906d0a8c -[SCNView _drawAtTime:] + 464
23 libdispatch.dylib 0x00000001815e547c _dispatch_client_callout + 16
24 libdispatch.dylib 0x00000001815f0728 _dispatch_barrier_sync_f_invoke + 100
25 SceneKit 0x00000001906d2508 -[SCNView displayLayer:] + 96
26 QuartzCore 0x0000000184697508 CA::Layer::display() + 140
27 QuartzCore 0x00000001846797b0 CA::Layer::display_if_needed(CA::Transaction*) + 228
28 QuartzCore 0x000000018467949c CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 44
29 QuartzCore 0x0000000184678ac0 CA::Context::commit_transaction(CA::Transaction*) + 252
30 QuartzCore 0x0000000184678820 CA::Transaction::commit() + 500
31 UIKit 0x0000000186ce25f8 _afterCACommitHandler + 180
32 CoreFoundation 0x0000000181b50728 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
33 CoreFoundation 0x0000000181b4e4cc __CFRunLoopDoObservers + 372
34 CoreFoundation 0x0000000181b4e8fc __CFRunLoopRun + 928
35 CoreFoundation 0x0000000181a78c50 CFRunLoopRunSpecific + 384
36 GraphicsServices 0x0000000183360088 GSEventRunModal + 180
37 UIKit 0x0000000186d5a088 UIApplicationMain + 204
38 superoom 0x0000000100013674 main (AppDelegate.swift:14)
39 libdyld.dylib 0x00000001816168b8 start + 4

SpriteKit crashing on update [SKScene _update:] how can i fix this?

After release ios 8.3 i began getting a crash reports from users, i can't figure out on which version of ios it is occurred, only i have is this crash report...
I think this is Sprite Kit bug and i also think that this occurs when app is going to background.
Stack Trace
1 SpriteKit 0x3104c3f3 _ZN9SKCSprite6updateEd + 351
2 SpriteKit 0x3104c3f3 _ZN9SKCSprite6updateEd + 348
3 SpriteKit 0x3104c3f3 _ZN9SKCSprite6updateEd + 348
4 SpriteKit 0x3104c3f3 _ZN9SKCSprite6updateEd + 348
5 SpriteKit 0x31014caf -[SKScene _update:] + 172
6 SpriteKit 0x31029599 -[SKView(Private) _update:] + 322
7 SpriteKit 0x31026c2b -[SKView renderCallback:] + 816
8 SpriteKit 0x31024663 __29-[SKView setUpRenderCallback]_block_invoke + 128
9 SpriteKit 0x31046ddb -[SKDisplayLink _callbackForNextFrame:] + 252
10 QuartzCore 0x30e069cf _ZN2CA7Display15DisplayLinkItem8dispatchEv + 96
11 QuartzCore 0x30e06779 _ZN2CA7Display11DisplayLink14dispatch_itemsEyyy + 342
12 IOMobileFramebuffer 0x33a3376d IOMobileFramebufferVsyncNotifyFunc + 102
13 IOKit 0x2f69ea75 IODispatchCalloutFromCFMessage + 246
14 CoreFoundation 0x2e97ce21 __CFMachPortPerform + 134
15 CoreFoundation 0x2e9879df CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 32
16 CoreFoundation 0x2e98797b __CFRunLoopDoSource1 + 344
17 CoreFoundation 0x2e98614f __CFRunLoopRun + 1396
18 CoreFoundation 0x2e8f0c27 CFRunLoopRunSpecific + 520
19 CoreFoundation 0x2e8f0a0b CFRunLoopRunInMode + 104
20 GraphicsServices 0x33617283 GSEventRunModal + 136
21 UIKit 0x31194049 UIApplicationMain + 1134
22 Dotox 0x000f5047 main (main.m:16)
23 libdyld.dylib 0x39305ab7 start + 0

Resources