customerio / customerio-ios

Official Customer.io SDK for iOS. Track customers and send messages to your iOS app.
https://customer.io/docs/sdk/ios/
MIT License
27 stars 16 forks source link

DataPipelines crash #698

Closed alpha-moisol closed 5 months ago

alpha-moisol commented 5 months ago

SDK version: 3.0.1

Environment: Production

Describe the bug Got some crashes in production

Additional context

Crashed: com.apple.root.background-qos
0  [Reducted]                     0x6be390 closure #1 in DataPipelineMigrationAssistant.handleQueueBacklog(siteId:) + 62 (DataPipelineMigrationAssistant.swift:62)
1  [Reducted]                     0x68a618 thunk for @escaping @callee_guaranteed () -> () + 4317652504
2  libdispatch.dylib              0x24b4 _dispatch_call_block_and_release + 32
3  libdispatch.dylib              0x3fdc _dispatch_client_callout + 20
4  libdispatch.dylib              0x15b8c _dispatch_root_queue_drain + 684
5  libdispatch.dylib              0x16284 _dispatch_worker_thread2 + 164
6  libsystem_pthread.dylib        0xdbc _pthread_wqthread + 228
7  libsystem_pthread.dylib        0xb98 start_wqthread + 8
levibostian commented 5 months ago

Thanks for sending this to us, Andrii. Sorry that you experienced this.

Unfortunately, the stacktrace isn't enough information for us to reproduce the issue and get it resolved. To help us reproduce this issue, could you answer these questions to provide us with more context?

Any other context that would help us reproduce this issue would be greatly appreciated.

It's understandable that some of these answers have sensitive information inside of it. Feel free to send those answers to win@customer.io and in the email, link to this github issue. The team will route the message appropriately when they receive it.

alpha-moisol commented 5 months ago

@levibostian We were not able to reproduce the crash, it happens only for 2 user so far, but 13 times already. Seems to crash at the start of the app (didFinishLaunchingWithOptions just get called, there is initialization of CustomerIO). We just migrated from 2.x.x to 3.0.1.

levibostian commented 5 months ago

The stacktrace you sent in the description, is that the complete stacktrace you received? Could you send the complete stacktrace if there is more?

Any additional context you could share, even if you believe it might not be helpful, would be great. Unfortunately, with the information provided thus far, I am not able to reproduce it.

alpha-moisol commented 5 months ago

The stacktrace you sent in the description, is that the complete stacktrace you received? Could you send the complete stacktrace if there is more?

Any additional context you could share, even if you believe it might not be helpful, would be great. Unfortunately, with the information provided thus far, I am not able to reproduce it.

This is only stack trace we received from Firebase Crashlytics.

alpha-moisol commented 5 months ago

It seems there is some optional unwrap

levibostian commented 5 months ago

It seems there is some optional unwrap

Would you be able to provide some information for this?

alpha-moisol commented 5 months ago

@levibostian CleanShot 2024-04-12 at 20 21 34@2x This line specifically.

levibostian commented 5 months ago

Thank you for providing that information. Very helpful.

Our team is looking into this and trying to reproduce it internally.

While we do this, could you provide the steps that you took to trigger this line of code? This could help expedite the process with reproducing it and fixing the issue.

Sorry again that you experienced this. Thank you for answering my questions to get this resolved.

alpha-moisol commented 5 months ago

Thank you for providing that information. Very helpful.

Our team is looking into this and trying to reproduce it internally.

While we do this, could you provide the steps that you took to trigger this line of code? This could help expedite the process with reproducing it and fixing the issue.

Sorry again that you experienced this. Thank you for answering my questions to get this resolved.

Unfortunately, could not reproduce it locally ourselves, this is stack trace from our user on production

alpha-moisol commented 5 months ago

The issue is spreading, but we noticed that crashes mostly occur on iOS 17.2.1. We need it to be fixed ASAP, or we will be forced to downgrade to previous major version

alpha-moisol commented 5 months ago

Seems like attributesJsonString is nil, so it should be check on this line before force unwrapping it

levibostian commented 5 months ago

While I am not able to provide a date on when to expect a fix to become available, I will mention our team is actively working on this issue and plan to ship it as soon as we can.

Thanks again for working with us to get this issue resolved. I will update this issue with the status as it changes.

levibostian commented 5 months ago

Version 3.1.2 of the Customer.io iOS SDK has been deployed and ready to install. This release includes a bug fix to resolve this crash.

Thank you again for reporting this to us and working with us to get it resolved. Sorry that you experienced this crash. We hope 3.1.2 is successful for you. If not, please reach out again.