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

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

Related

Crash in SceneKit on 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?

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?

probeGC crash in Fabric Crashlytics

This crash is happening only on iOS 13.3.1 on iPad 6 & iPad Pro (12.9 inch, 3rd Gen)
This crash is happening randomly and is a real deterrent to my customers.
0 libobjc.A.dylib 0x1b80c4090 objc_msgSend + 16
1 Foundation 0x1b875c4f0 probeGC + 120
2 Foundation 0x1b8672d64 -[NSConcreteMapTable rehashAround:] + 204
3 Foundation 0x1b8672c68 -[NSConcreteMapTable removeObjectForKey:] + 248
4 UIKitCore 0x1bc8c3484 _UIAnalyticsGatherMultitouchAnalytics + 632
5 UIKitCore 0x1bc43ea10 -[UIApplication sendEvent:] + 204
6 Instabug 0x103980274 __IBGSwizzle_sendEvent + 240
7 UIKitCore 0x1bc4b6c20 __dispatchPreprocessedEventFromEventQueue + 5880
8 UIKitCore 0x1bc4b917c __handleEventQueueInternal + 4924
9 UIKitCore 0x1bc4b1ff0 __handleHIDEventFetcherDrain + 108
10 CoreFoundation 0x1b831ea00 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
11 CoreFoundation 0x1b831e958 __CFRunLoopDoSource0 + 80
12 CoreFoundation 0x1b831e0f0 __CFRunLoopDoSources0 + 180
13 CoreFoundation 0x1b831923c __CFRunLoopRun + 1080
14 CoreFoundation 0x1b8318adc CFRunLoopRunSpecific + 464
15 GraphicsServices 0x1c22b9328 GSEventRunModal + 104
16 UIKitCore 0x1bc42663c UIApplicationMain + 1936
17 DocOn 0x100df8e10 main + 15 (main.m:15)
18 libdyld.dylib 0x1b81a2360 start + 4

OpenGLES -[EAGLContext presentRenderbuffer:] crash in iOS9 (SpriteKit)

I am having a lot of Sprite Kit crashes in iOS 9. The below are logs I am getting. I don't think this has anything to do with my code and seems more like a SpriteKit bug in iOS 9. Anyone else faced the same issue and resolved yet?
Thread : Crashed: com.apple.main-thread
0 libmetal_timestamp.dylib 0x2ca73322 (Missing)
1 libmetal_timestamp.dylib 0x2ca73e13 (Missing)
2 RawCamera 0x226b068d (Missing)
3 OpenAL 0x2685a17f (Missing)
4 OpenAL 0x2685a0b3 (Missing)
5 OpenGLES 0x26865079 -[EAGLContext presentRenderbuffer:] + 60
6 Jet 0x2dc85eb7 jet_context_OpenGL::present(std::__1::shared_ptr<jet_texture> const&, double) + 290
7 SpriteKit 0x280ec63d SKCRenderer::render(SKCNode*, float vector[4], std::__1::shared_ptr<jet_framebuffer> const&, unsigned int vector[4], matrix_float4x4, bool, NSDictionary*, SKCStats*, SKCStats*) + 1644
8 SpriteKit 0x28089a7f __51-[SKView _vsyncRenderForTime:preRender:postRender:]_block_invoke + 998
9 SpriteKit 0x28089d59 __51-[SKView _vsyncRenderForTime:preRender:postRender:]_block_invoke196 + 300
10 SpriteKit 0x280895e1 -[SKView _vsyncRenderForTime:preRender:postRender:] + 440
11 SpriteKit 0x2808b15b __29-[SKView setUpRenderCallback]_block_invoke + 118
12 SpriteKit 0x280bc1fb -[SKDisplayLink _callbackForNextFrame:] + 58
13 QuartzCore 0x27afe85f CA::Display::DisplayLinkItem::dispatch() + 106
14 QuartzCore 0x27afe6af CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 594
15 IOMobileFramebuffer 0x2db8b58b IOMobileFramebufferVsyncNotifyFunc + 86
16 IOKit 0x25179345 IODispatchCalloutFromCFMessage + 256
17 CoreFoundation 0x2406ab59 __CFMachPortPerform + 132
18 CoreFoundation 0x2407cf7b __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
19 CoreFoundation 0x2407c68f __CFRunLoopDoSource1 + 342
20 CoreFoundation 0x2407aaa1 __CFRunLoopRun + 1704
21 CoreFoundation 0x23fcd0d9 CFRunLoopRunSpecific + 516
22 CoreFoundation 0x23fccecd CFRunLoopRunInMode + 108
23 GraphicsServices 0x2d342af9 GSEventRunModal + 160
24 UIKit 0x282562dd UIApplicationMain + 144
25 jumpytiles 0x9358c main (AppDelegate.swift:17)
26 libdyld.dylib 0x35ec8873 start + 2

iOS Crash with name SIGSEGV, reason main

I'm using Crittercism (SDK 4.1.2) crash reporting service to catch reports on my iOS app. i've been getting this crash many times and i've no idea why it's happening.
Name: SIGSEGV - Reason: Main
Crashed Thread
0 libobjc.A.dylib 0x397c4b26 objc_msgSend + 6
1 UIKit 0x31965a2d -[UIScrollView(UIScrollViewInternal) _scrollViewAnimationEnded:finished:] + 177
2 UIKit 0x31a0e4b3 -[UIAnimator stopAnimation:] + 471
3 UIKit 0x31a0de9d -[UIAnimator(Static) _advanceAnimationsOfType:withTimestamp:] + 285
4 UIKit 0x31a0dd7d -[UIAnimator(Static) _LCDHeartbeatCallback:] + 53
5 QuartzCore 0x315419cf _ZN2CA7Display15DisplayLinkItem8dispatchEv + 99
6 QuartzCore 0x31541779 _ZN2CA7Display11DisplayLink14dispatch_itemsEyyy + 345
7 IOMobileFramebuffer 0x3411b76d IOMobileFramebufferVsyncNotifyFunc + 105
8 IOKit 0x2fdd9a75 IODispatchCalloutFromCFMessage + 249
9 CoreFoundation 0x2f0b7e21 __CFMachPortPerform + 137
10 CoreFoundation 0x2f0c29df __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 35
11 CoreFoundation 0x2f0c297b __CFRunLoopDoSource1 + 347
12 CoreFoundation 0x2f0c114f __CFRunLoopRun + 1399
13 CoreFoundation 0x2f02bc27 CFRunLoopRunSpecific + 523
14 CoreFoundation 0x2f02ba0b CFRunLoopRunInMode + 107
15 GraphicsServices 0x33cff283 GSEventRunModal + 139
16 UIKit 0x318cf049 UIApplicationMain + 1137
17 AppName 0x000b1fef main + 67
Not sure if this is the case for you, but I've had a similar crash caused by a button in an UIView trying to invoke a callback method on a already released object. The UI was displayed, and then the object was released.

Resources