Crash in GoogleMaps iOS sdk gmscore::renderer::GLEntity::Draw - ios

I am using GoogleMaps to show markers on specific longitude and latitude. But I am getting the following crash on crashlytics.
Crashed: com.apple.main-thread
0 libGLProgrammability.dylib 0x377d0 glvmRasterOpDepthStencilTest
1 libGLProgrammability.dylib 0x86195 glvmInterpretFPTransformFour
2 GLRendererFloat 0x12986 gldLLVMFPTransform2x2
3 GLRendererFloat 0x11af8 gldMergeScanlines2x2
4 GLRendererFloat 0x27feb gldLLVMVecPolyRender
5 GLRendererFloat 0xf540 gldRenderFillPolygonPtr
6 GLEngine 0xded21 gleLLVMVecPrimMultiRender
7 GLEngine 0x1e6f7 gleFlushAtomicFunc
8 GLEngine 0x6b10d glDrawElements_IMM_ES2Exec
9 MyProjectName 0xcd4d7d gmscore::renderer::GLEntity::Draw(gmscore::renderer::EntityRenderer*, gmscore::renderer::RenderBin*, GMSPassID) + 827
10 MyProjectName 0xcd9656 void gmscore::renderer::RenderBin::PerformDraw<std::__1::__tree_const_iterator<gmscore::base::reffed_ptr<gmscore::renderer::BaseEntity>, std::__1::__tree_node<gmscore::base::reffed_ptr<gmscore::renderer::BaseEntity>, void*>*, long> >(std::__1::__tree_const_iterator<gmscore::base::reffed_ptr<gmscore::renderer::BaseEntity>, std::__1::__tree_node<gmscore::base::reffed_ptr<gmscore::renderer::BaseEntity>, void*>*, long>, std::__1::__tree_const_iterator<gmscore::base::reffed_ptr<gmscore::renderer::BaseEntity>, std::__1::__tree_node<gmscore::base::reffed_ptr<gmscore::renderer::BaseEntity>, void*>*, long>, gmscore::renderer::EntityRenderer*, bool) + 134
11 MyProjectName 0xda2a0d gmscore::vector::GMSVectorTileRenderBin::Draw(gmscore::renderer::EntityRenderer*) + 87
12 MyProjectName 0xcd25ae gmscore::renderer::EntityRenderer::Draw(bool) + 980
13 MyProjectName 0xd6c1d5 -[GMSPhoenixRenderer drawForced:] + 62
14 MyProjectName 0xd4e6b0 -[GMSEntityRendererView draw] + 399
15 MyProjectName 0xd9dadf -[GMSVectorMapView draw] + 42
16 MyProjectName 0xd4cc1c -[GMSEntityRendererView displayLinkFired:] + 46
17 MyProjectName 0xd4b796 -[GMSDisplayLink displayLinkFired:] + 394
18 QuartzCore 0xf474 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 932
19 QuartzCore 0x10e9c6 display_timer_callback(__CFMachPort*, void*, long, void*) + 395
20 CoreFoundation 0x4eb42 __CFMachPortPerform + 157
21 CoreFoundation 0x83125 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
22 CoreFoundation 0x824cc __CFRunLoopDoSource1 + 617
23 CoreFoundation 0x7c901 __CFRunLoopRun + 2420
24 CoreFoundation 0x7ba90 CFRunLoopRunSpecific + 562
25 GraphicsServices 0x3c8e GSEventRunModal + 139
26 UIKitCore 0xcda90e -[UIApplication _run] + 928
27 UIKitCore 0xcdf569 UIApplicationMain + 101
28 MyProjectName 0x7cf09f main + 12 (AppDelegate.swift:12)
29 ??? 0x110b23f21 (Missing)
30 ??? 0x20879351e (Missing)
31 ??? 0x20878e000 (Missing)
I have read this thread but found no solution. I thought it might have been fixed in pod version 6.2.1 but I have tried pod 'GoogleMaps', '6.2.1' still no solution. My crash is happening in the following environment:
Xcode 13.3.1
simulator iPhone 13
iOS 15.4
Does anyone know how to solve this issue?

Related

Crashed: com.twitter.crashlytics.ios.exception IOS

I'm getting this issue in Crashlytics and, I really don't know what is causing it. It show me that the error is in my AppDelegate, 15 line, but there is where the class beginning:
class AppDelegate: UIResponder, UIApplicationDelegate {
This is the issue:
Fatal Exception: NSInvalidArgumentException Application tried to
present modally an active controller RN.ViewController: 0x1509e200.
Crashed: com.twitter.crashlytics.ios.exception
SIGABRT ABORT 0x00000000206e6c5c
0 RN CLSProcessRecordAllThreads + 986
1 RN CLSProcessRecordAllThreads + 986
2 RN CLSProcessRecordAllThreads + 722
3 RN CLSHandler + 30
4 RN __CLSExceptionRecord_block_invoke + 66
5 libdispatch.dylib_dispatch_client_callout + 22
6 libdispatch.dylib_dispatch_barrier_sync_f_invoke + 56
7 RN CLSExceptionRecord + 250
8 RN CLSExceptionRecordNSException + 614
9 RN CLSTerminateHandler() + 544
10 libc++abi.dylib std::__terminate(void (*)()) + 78
11
libc++abi.dylib__cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code,
_Unwind_Exception*) + 110
12 libobjc.A.dylib objc_exception_throw + 250
13 UIKit-[UIViewController _presentViewController:withAnimationController:completion:] + 4640
14 UIKit__62-[UIViewController presentViewController:animated:completion:]_block_invoke + 336
15 UIKit-[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 204
16 UIKit-[_UIViewControllerTransitionContext _runAlongsideCompletions] + 128
17 UIKit-[_UIViewControllerTransitionContext completeTransition:] + 108
18 UIKit-[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 540
19 UIKit-[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 204
20 UIKit-[UIViewAnimationState animationDidStop:finished:] + 78
21 QuartzCore CA::Layer::run_animation_callbacks(void*) + 252
22 libdispatch.dylib_dispatch_client_callout + 22
23 libdispatch.dylib_dispatch_main_queue_callback_4CF$VARIANT$mp + 1524
24 CoreFoundation CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 8
25 CoreFoundation __CFRunLoopRun + 1574
26 CoreFoundation CFRunLoopRunSpecific + 520
27 CoreFoundation CFRunLoopRunInMode + 108
28 GraphicsServices GSEventRunModal + 160
29 UIKit UIApplicationMain + 144
30 RN AppDelegate.swift line 15
Thank you for your help.
I had a similar issue with iOS 13. I ended up upgrading the Crashlytics library, since the Crashlytics team fixed a few crashes for iOS 13.
Anyone who has these crashes on iOS 13 devices should upgrade Crashlytics to at least version 3.14.0.

Crash Google Cast - Security SSLRecordServiceWriteQueueInternal

I have crash in Google Cast SDK.
Crashlytics logs:
Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x189bd7014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x189c9f450 pthread_kill + 112
2 libsystem_c.dylib 0x189b4b400 abort + 140
3 libsystem_malloc.dylib 0x189c0d944 szone_size + 658
4 Security 0x18b019cdc SSLRecordServiceWriteQueueInternal + 132
5 Security 0x18b01cbf8 SSLServiceWriteQueue + 20
6 Security 0x18b01cd80 SSLWrite + 212
7 GoogleCast 0x1007c269c __46-[GCKNSSLSocket sslPrivateInitWithBufferSize:]_block_invoke.24 + 88
8 GoogleCast 0x1007ccf70 -[GCKBCircularByteBuffer drainWithBlock:] + 96
9 GoogleCast 0x1007c2f44 -[GCKNSSLSocket performCrypto] + 436
10 GoogleCast 0x1007c2944 -[GCKNSSLSocket sendBytes:length:partialOK:] + 64
11 GoogleCast 0x10070711c -[GCKCastSocket sendMessage:] + 200
12 GoogleCast 0x1006edd84 -[GCKCastDeviceConnector sendMessageWithNamespace:toDestinationID:stringPayload:binaryPayload:] + 516
13 GoogleCast 0x1006eee04 -[GCKCastDeviceConnector sendBinaryMessage:withNamespace:toDestinationID:] + 84
14 GoogleCast 0x1006e7cec -[GCKCastChannel sendBinaryMessage:toDestinationID:error:] + 144
15 GoogleCast 0x100711280 -[GCKDeviceAuthChannel sendChallengeWithPeerSecTrust:error:] + 376
16 GoogleCast 0x1006ef1d4 -[GCKCastDeviceConnector castSocket:didConnectWithPeerSecTrust:] + 532
17 GoogleCast 0x100707dc4 __50-[GCKCastSocket notifyDidConnectWithPeerSecTrust:]_block_invoke + 84
18 libdispatch.dylib 0x189a921fc _dispatch_call_block_and_release + 24
19 libdispatch.dylib 0x189a921bc _dispatch_client_callout + 16
20 libdispatch.dylib 0x189a96d68 _dispatch_main_queue_callback_4CF + 1000
21 CoreFoundation 0x18abb6810 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
22 CoreFoundation 0x18abb43fc __CFRunLoopRun + 1660
23 CoreFoundation 0x18aae22b8 CFRunLoopRunSpecific + 444
24 GraphicsServices 0x18c596198 GSEventRunModal + 180
25 UIKit 0x190b297fc -[UIApplication _run] + 684
26 UIKit 0x190b24534 UIApplicationMain + 208
27 Kanopy PROD 0x100079860 main (AppDelegate.swift:19)
28 libdispatch.dylib 0x189ac55b8 (Missing)
Why does this crash occur? Is this crash in the SDK or is it possibly due to incorrect integration of the Chrome Cast SDK?
Security
SSLRecordServiceWriteQueueInternal
Crashlytics logs (image):
enter image description here
Code in another thread:
enter image description here

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: NSAttributedString allocation bug

I have a view which allocates a UILabel and sets the attributed string using NSAttributedString from HTML string. I get the crash during initialising the NSAttributedString. Following is the stack trace of the error:
Thread : Crashed: com.apple.main-thread
0 ??? 0x15e9d6c0
1 QuartzCore 0x2d967993 CA::Display::DisplayLink::get_link(CA::Display::Display*, __CFRunLoop*, X::List<__CFString const*> const*) + 254
2 QuartzCore 0x2d967723 CA::Display::DisplayLinkItem::update_link(__CFRunLoop*) + 162
3 QuartzCore 0x2d98a823 CA::Display::DisplayLinkItem::dispatch() + 170
4 QuartzCore 0x2d98a643 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 366
5 IOMobileFramebuffer 0x3288dc07 IOMobileFramebufferVsyncNotifyFunc + 90
6 IOKit 0x2b827001 IODispatchCalloutFromCFMessage + 256
7 CoreFoundation 0x2a86324d __CFMachPortPerform + 132
8 CoreFoundation 0x2a8737cb __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
9 CoreFoundation 0x2a873767 __CFRunLoopDoSource1 + 346
10 CoreFoundation 0x2a871d69 __CFRunLoopRun + 1608
11 CoreFoundation 0x2a7be201 CFRunLoopRunSpecific + 476
12 CoreFoundation 0x2a7be013 CFRunLoopRunInMode + 106
13 UIFoundation 0x3629bb7f -[NSHTMLReader _loadUsingWebKit] + 1950
14 UIFoundation 0x3629ce31 -[NSHTMLReader attributedString] + 24
15 UIFoundation 0x36244445 _NSReadAttributedStringFromURLOrData + 5648
16 UIFoundation 0x36242dad -[NSAttributedString(NSAttributedStringUIFoundationAdditions) initWithData:options:documentAttributes:error:] + 116
17 PageViewScrollView 0x0002ff54 #!objc ext.UIKit.ObjectiveC.NSAttributedString.init (ObjectiveC.NSAttributedString.Type)(data : ObjectiveC.NSData, options : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>, documentAttributes : Swift.AutoreleasingUnsafeMutablePointer<Swift.Optional<ObjectiveC.NSDictionary>>, error : Swift.AutoreleasingUnsafeMutablePointer<Swift.Optional<ObjectiveC.NSError>>) -> Swift.Optional<ObjectiveC.NSAttributedString> (HTMLTextView.swift)
18 PageViewScrollView 0x00029da4 ext.UIKit.ObjectiveC.NSAttributedString.init (ObjectiveC.NSAttributedString.Type)(data : ObjectiveC.NSData, options : Swift.Optional<Swift.Dictionary<ObjectiveC.NSObject, Swift.AnyObject>>, documentAttributes : Swift.AutoreleasingUnsafeMutablePointer<Swift.Optional<ObjectiveC.NSDictionary>>, error : Swift.AutoreleasingUnsafeMutablePointer<Swift.Optional<ObjectiveC.NSError>>) -> Swift.Optional<ObjectiveC.NSAttributedString> (HTMLTextView.swift)
19 PageViewScrollView 0x00026fd4 PageViewScrollView.HTMLTextView.init (PageViewScrollView.HTMLTextView.Type)(frame : C.CGRect) -> PageViewScrollView.HTMLTextView (HTMLTextView.swift:33)
20 PageViewScrollView 0x000286ac PageViewScrollView.HTMLTextView.__allocating_init (PageViewScrollView.HTMLTextView.Type)(frame : C.CGRect) -> PageViewScrollView.HTMLTextView (HTMLTextView.swift)
21 PageViewScrollView 0x0003fe4c PageViewScrollView.ViewController.getView (PageViewScrollView.ViewController)(Swift.Int) -> Swift.Optional<ObjectiveC.UIView> (ViewController.swift:149)
22 PageViewScrollView 0x0003c7f8 PageViewScrollView.ViewController.scrollViewDidScroll (PageViewScrollView.ViewController)(ObjectiveC.UIScrollView) -> () (ViewController.swift:86)
23 PageViewScrollView 0x0003f5fc #objc PageViewScrollView.ViewController.scrollViewDidScroll (PageViewScrollView.ViewController)(ObjectiveC.UIScrollView) -> () (ViewController.swift)
24 UIKit 0x2e1dc115 -[UIScrollView(UIScrollViewInternal) _notifyDidScroll] + 64
25 UIKit 0x2df451d5 -[UIScrollView setContentOffset:] + 632
26 UIKit 0x2e0be771 -[UIScrollView _smoothScrollWithUpdateTime:] + 3120
27 QuartzCore 0x2d98a7db CA::Display::DisplayLinkItem::dispatch() + 98
28 QuartzCore 0x2d98a643 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 366
29 IOMobileFramebuffer 0x3288dc07 IOMobileFramebufferVsyncNotifyFunc + 90
30 IOKit 0x2b827001 IODispatchCalloutFromCFMessage + 256
31 CoreFoundation 0x2a86324d __CFMachPortPerform + 132
32 CoreFoundation 0x2a8737cb __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
33 CoreFoundation 0x2a873767 __CFRunLoopDoSource1 + 346
34 CoreFoundation 0x2a871d69 __CFRunLoopRun + 1608
35 CoreFoundation 0x2a7be201 CFRunLoopRunSpecific + 476
36 CoreFoundation 0x2a7be013 CFRunLoopRunInMode + 106
37 GraphicsServices 0x3228f201 GSEventRunModal + 136
38 UIKit 0x2df8aa09 UIApplicationMain + 1440
39 PageViewScrollView 0x000448f4 main (AppDelegate.swift:14)
40 libdyld.dylib 0x397a3aaf start + 2
Here is the link to the source code of app where I've used this function. Basically it's a view pager using UIScrollView where views are added and removed as the user so as to keep minimal number of total view in memory. During initialisation of new views containing UILabel with NSAttributedString the above occurs. While scrolling from one view to other new view are created and older are removed from scrollView
I actually found the bug. The problem was that scrollViewDidScroll callbacks are sent on background thread. And I was performing UI updates on background which was causing the problem. Executing the code on main thread using dispatch_async(dispatch_get_main_queue(), block solved the issue.

How to understand this crash report for iPhone App

This iPhone App will dial and hangup a call automatically. It works on jailbroken devices.
Sometimes it will crash when hanging up a phone call.
What is the problem and how do I fix it?
Exception Type: EXC_GUARD
Exception Subtype: GUARD_TYPE_FD
Exception Message: CLOSE on file descriptor 16 (guarded with 0x08fd4dbfade2dead)
Triggered by Thread: 0
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x38cdf130 __close_nocancel + 12
1 libsystem_c.dylib 0x38c4fcd5 fclose + 69
2 libCGFreetype.A.dylib 0x2e56dde5 FT::file_stream::~file_stream() + 25
3 libCGFreetype.A.dylib 0x2e56ddbb FT::file_stream::~file_stream() + 7
4 libCGFreetype.A.dylib 0x2e5730b5 destroy_face + 117
5 libCGFreetype.A.dylib 0x2e573039 FT_Done_Face + 93
6 libCGFreetype.A.dylib 0x2e5658e3 FT::face_release(FT_FaceRec_*) + 95
7 libCGFreetype.A.dylib 0x2e568f31 FT::font::~font() + 269
8 libCGFreetype.A.dylib 0x2e568e13 FT::font::~font() + 7
9 libCGFreetype.A.dylib 0x2e56fa77 (anonymous namespace)::release_private_data(void*) + 55
10 CoreGraphics 0x2e51301f font_finalize + 27
11 CoreFoundation 0x2e2ffe2d CFRelease + 465
12 libcache.dylib 0x38bc321f _value_entry_remove + 139
13 libcache.dylib 0x38bc25b3 _entry_remove + 195
14 libcache.dylib 0x38bc2761 cache_remove_with_block + 129
15 CoreFoundation 0x2e307fcb __CFNotificationCenterAddObserver_block_invoke + 123
16 CoreFoundation 0x2e391e6f __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 11
17 CoreFoundation 0x2e305aad _CFXNotificationPost + 1717
18 Foundation 0x2ecebec1 -[NSNotificationCenter postNotificationName:object:userInfo:] + 69
19 UIKit 0x30bd7e79 -[UIApplication _handleApplicationSuspend:eventInfo:] + 909
20 UIKit 0x30b590c3 -[UIApplication handleEvent:withNewEvent:] + 771
21 UIKit 0x30b58cf9 -[UIApplication sendEvent:] + 69
22 UIKit 0x30bbe31d _UIApplicationHandleEvent + 661
23 GraphicsServices 0x3303876b _PurpleEventCallback + 607
24 GraphicsServices 0x33038353 PurpleEventCallback + 31
25 CoreFoundation 0x2e39a775 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 33
26 CoreFoundation 0x2e39a70f __CFRunLoopDoSource1 + 343
27 CoreFoundation 0x2e398edb __CFRunLoopRun + 1403
28 CoreFoundation 0x2e30346d CFRunLoopRunSpecific + 521
29 CoreFoundation 0x2e30324f CFRunLoopRunInMode + 103
30 GraphicsServices 0x330372e7 GSEventRunModal + 135
31 UIKit 0x30bb8841 UIApplicationMain + 1133
32 MyApp 0x000f6d0d main (main.m:15)
33 libdyld.dylib 0x38c29ab5 start + 1
It looks like you have a bogus file descriptor that its trying to close. The address ends in "fade2dead", which is likely a special value to indicate freed memory. Since I don't see any of your code in the stack trace, it's likely that something is overwriting memory used by the FreeType library. I'd look for other memory stompers in your code using GuardMalloc or other similar memory tools to track down what it could be, as it's not obvious from the above stack trace.

Resources