-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on watchOS #22
Comments
Hey @fnazarios, sorry this is happening. Can you provide a little more context?
|
Hey @daniel-statsig.
FYI I just opened a PR updating to 1.49.0 |
Hi @fnazarios, looks like due to a refactor, we removed a try/catch block surrounding the initialization on 1.47.0. I assume this error was happening before 1.47.0, but wasn't triggering a crash. I'll try to add a try/catch block back in to prevent crashes. But keep in mind if the same error happens, those sessions will likely not have access to Statsig's features. To help fix the underlying issue, I have a couple questions:
|
Another question: |
All the information we have is this log from the Xcode Organizer. Crash analysis for the watchOS app is a nightmare.
Statsig.start(
sdkKey: kStatsigClientKey,
user: StatsigUser(userID: userId),
options: StatsigOptions(
initTimeout: 120,
environment: environment(kStatsigEnvironment)
)
) { errorMessage in
if let errorMessage {
printLog(message: "🎛️ Statsig initialization: \(errorMessage)")
return
}
printLog(message: "🎛️ Statsig initialization completed")
}
|
My suggestion is to roll back to 1.46.0 for now. This should hopefully mitigate the crashes your users are seeing. As for the underlying error, I'm unsure how the thread goes from Does the CodableStorage class have a deinit function? I wonder if the Memory Debugging Tools would surface anything on your app. I couldn't reproducing the crash on a sample app yet, but here's how I enabled some of their Memory Management tools: I edited the run scheme... ...and enabled all Memory Management checkboxes on the Diagnostics tab Let us know if you learn more about the crash, or if 1.46.0 mitigates it. |
FYI. The |
About downgrading to 1.46.0. I initially updated to 1.47.0 due to a build failure on 1.46.0 regarding |
Thanks for letting me know!
Yeah, most likely. For the crash, we'll try to reproduce it with a physical Apple Watch to see if we can get more information. Keep us updated if you learn more about it. As for the mitigation, Swift's do/try/catch doesn't handle runtime exceptions unfortunately. So if we want a "catch-all" mitigation, we need an Objective-C layer. This was the purpose of Thanks again for reporting this and helping debug this crash. Apologies for not having more information about it. |
We've seen a trend of a crash happening on the watchOS. All information we have is the screenshot bellow from Xcode's Organizer as annoyingly the watchOS does not have the same Crash Report as iOS.
The text was updated successfully, but these errors were encountered: