pendo-io / pendo-mobile-sdk

Pendo captures product usage data, gathers user feedback, and lets you communicate in-app to onboard, educate, and guide users to value
https://www.pendo.io
Other
59 stars 2 forks source link

Crash spike on Crashlytics regarding -[PNDPairingController pairingStoreError:error:] #132

Closed mshresthasentri closed 6 months ago

mshresthasentri commented 7 months ago

Hi team,

We are seeing a lot of crashes related to -[PNDPairingController pairingStoreError:error:] in our Crashlytics. Need help to figure out what seems to be the problem.

We are just using [[PendoManager sharedManager] startSession: ] in our app and nothing else to start session.

MaximShnirman commented 7 months ago

Can you add your crash log here please?

mshresthasentri commented 7 months ago

Fatal Exception: NSInvalidArgumentException 0 CoreFoundation 0xecb28 exceptionPreprocess 1 libobjc.A.dylib 0x2af78 objc_exception_throw 2 CoreFoundation 0x17deec +[NSObject(NSObject) copyDescription] 3 CoreFoundation 0x32300 forwarding_ 4 CoreFoundation 0x173760 _CF_forwarding_prep_0 5 Pendo 0x11b7c8 -[PNDPairingController pairingStoreError:error:] 6 Pendo 0xa983c 26-[PNDPairingStore setupWS]_block_invoke_2.155 7 libdispatch.dylib 0x213c _dispatch_call_block_and_release 8 libdispatch.dylib 0x3dd4 _dispatch_client_callout 9 libdispatch.dylib 0x125a4 _dispatch_main_queue_drain 10 libdispatch.dylib 0x121b8 _dispatch_main_queue_callback_4CF 11 CoreFoundation 0x3751c CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE 12 CoreFoundation 0x34218 __CFRunLoopRun 13 CoreFoundation 0x33968 CFRunLoopRunSpecific 14 GraphicsServices 0x34e0 GSEventRunModal 15 UIKitCore 0x22aedc -[UIApplication _run] 16 UIKitCore 0x22a518 UIApplicationMain 17 0x2479c main + 16 (main.m:16) 18 ??? 0x1c9752d84 (Missing)

MikePendo commented 7 months ago

@mshresthasentri In order for us to help you please edit/provide more data about the issue according to our bug format Platform + Version , SDK version, Framework , Steps to reproduce if possible, Full crash Log i.e the whole threads. If you manage to reproduce you can attach logs

mshresthasentri commented 7 months ago

Hey Mike. The platform is iOS 17.4.1 and Pendo version is 2.22.6. Sadly I do not have any crash log to post here. So far we have not been able to reproduce this but we are seeing the above crash in crashlytics a lot, specially over the weekends

MikePendo commented 7 months ago

I haven't looked at the code properly, BUT this part of the code is called during device pairing (kinda strange to see it in normal user flow). Can you please confirm you see those crashes from your end users i.e not your PM or other person that tries to pair the device. How many effected users you have? Is you app on the appstore so we could try to download it and reproduce? (We be able to look deeply into it on Sunday)

mshresthasentri commented 7 months ago

That make sense because the only users who are affected by this are two of our internal team members who tag pages. But it is no fun when we are seeing 1000 crash reports on Crashlytics for them

MikePendo commented 7 months ago

@mshresthasentri Which framework you are using? Native/flutter/RN Does the PM knows on which page it happens? Can you see on which page it happens in firebase (AFAIK there should be an option) is you app available on App Store so we could try it to capture it on the same page We had previously fixed some issues on pairing but non of them have a similar stack trace. If you can share that additional info it could be nice so we will look at it more deeply on Sunday

mshresthasentri commented 7 months ago

We are using native iOS development i.e. Objective C + Swift. Sadly this crash does not happen in any page. And that is why I believe Firebase does not catch any view controller. Firebase logged the above crash 1600 times for my team and I am sure he did not open the app 1600 times on weekend. Our app is in App Store, it is called Sentrilock. You will not be able to log in the app though. Sorry but that is all the info that I have at this point

TehilaTaub commented 7 months ago

Hi @mshresthasentri , Do you have instaBug also? Could you please add a link to appStore?

mshresthasentri commented 7 months ago

We do not have Instabug. And our app is called SentriKey Real Estate. https://apps.apple.com/us/app/sentrikey-real-estate/id643986446

TehilaTaub commented 7 months ago

@mshresthasentri, we have opened an internal ticket for further investigation.

orendayan commented 7 months ago

@mshresthasentri, we released v3.2 with some fixes in that area. Can you upgrade and see if it still happens?

orendayan commented 6 months ago

I'm closing this issue since it hasn't responded two weeks