ibm-mobile-push / ios

BY DOWNLOADING, INSTALLING, COPYING, ACCESSING, CLICKING ON AN “ACCEPT” BUTTON, OR OTHERWISE USING THE PROGRAM, LICENSEE AGREES TO THE TERMS OF THE LICENSE AGREEMENT.
https://github.com/ibm-mobile-push/ios/tree/master/license
7 stars 3 forks source link

App is crashing #19

Open sakshigidwani93 opened 4 years ago

sakshigidwani93 commented 4 years ago

I am getting the following crash : -

Fatal Exception: NSInternalInconsistencyException Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread. -[MCESdk presentNotificationImplemenation:] keyboard_arrow_down

sakshigidwani93 commented 4 years ago

@jbuchman and @buchmanj can you please help on this.

buchmanj commented 4 years ago

Can you provide more details how this crash occurred? Is this a custom app or one of the sample apps? If a custom app, how is the sdk integrated? Do you have a full crashlog? Can you provide an example project that demonstrates the issue?

sakshigidwani93 commented 4 years ago

We have integrated the library using pod. The version of IBMMobilePush is 3.6.0.12. Swift 5 version is used. We also tried installing AcousticMobilePush SDK through cocoapod but it is giving error while importing so I am unable to access its methods.

We found the following issue on firebase crashlytics

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x1afe3898c __exceptionPreprocess
1  libobjc.A.dylib                0x1afb610a4 objc_exception_throw
2  Foundation                     0x1b030ed64 -[NSISEngine tryToOptimizeReturningMutuallyExclusiveConstraints]
3  Foundation                     0x1b01102dc -[NSISEngine withBehaviors:performModifications:]
4  UIKitCore                      0x1b41febd0 -[UIView(UIConstraintBasedLayout) _calculatedSystemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority:hasIntentionallyCollapsedHeight:]
5  UIKitCore                      0x1b41fff84 -[UIView(AdditionalLayoutSupport) _systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority:hasIntentionallyCollapsedHeight:]
6  UIKitCore                      0x1b34c8504 -[_UIAlertControllerView _minimumSizeForAllActions]
7  UIKitCore                      0x1b34c3d70 -[_UIAlertControllerView _itemSizeForHorizontalLayout:visualStyleRequiresActionRepresentationToFitItemSize:]
8  UIKitCore                      0x1b34c3fdc -[_UIAlertControllerView _canLayOutActionsHorizontally]
9  UIKitCore                      0x1b34c42fc -[_UIAlertControllerView _actionLayoutDirectionChanged]
10 UIKitCore                      0x1b34c8d84 -[_UIAlertControllerView _updateStyleForIdiomChange:]
11 UIKitCore                      0x1b34c8bd0 -[_UIAlertControllerView _setVisualStyle:]
12 UIKitCore                      0x1b34aa998 -[UIAlertController loadView]
13 UIKitCore                      0x1b3839890 -[UIViewController loadViewIfRequired]
14 UIKitCore                      0x1b3839f94 -[UIViewController view]
15 UIKitCore                      0x1b384f6c4 -[UIViewController _setPresentationController:]
16 UIKitCore                      0x1b38484d4 -[UIViewController _presentViewController:modalSourceViewController:presentationController:animationController:interactionController:completion:]
17 UIKitCore                      0x1b3849e54 -[UIViewController _presentViewController:withAnimationController:completion:]
18 UIKitCore                      0x1b384c3c0 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke
19 UIKitCore                      0x1b384c8bc -[UIViewController _performCoordinatedPresentOrDismiss:animated:]
20 UIKitCore                      0x1b384c310 -[UIViewController _presentViewController:animated:completion:]
21 UIKitCore                      0x1b384c578 -[UIViewController presentViewController:animated:completion:]
22 App                        0x101783458 -[MCESdk presentNotificationImplemenation:] + 521 (MCESdk.m:521)
23 App                       0x10173b8d0 __26+[MCEApiUtil pushEnabled:]_block_invoke + 195 (MCEApiUtil.m:195)
24 libdispatch.dylib              0x1afb05610 _dispatch_call_block_and_release
25 libdispatch.dylib              0x1afb06184 _dispatch_client_callout
26 libdispatch.dylib              0x1afae373c _dispatch_lane_serial_drain$VARIANT$armv81
27 libdispatch.dylib              0x1afae4188 _dispatch_lane_invoke$VARIANT$armv81
28 libdispatch.dylib              0x1afaed43c _dispatch_workloop_worker_thread
29 libsystem_pthread.dylib        0x1afb55fa4 _pthread_wqthread
30 libsystem_pthread.dylib        0x1afb58ae0 start_wqthread
jbuchman commented 4 years ago

This repo contains cocoa pod integration up to version 3.7.1.4.1, have you tried using that version? Have you tried integrating using the AcousticMobilePush.xcframework instead of cocoa pods? Have you tried integrating use the IBMMobilePush.framework instead of cocoa pods? Is this crash happening on first startup? On a fresh install? After some specific method call?