-
Notifications
You must be signed in to change notification settings - Fork 327
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 at launch Xcode 16 iOS 18 - EXC_BAD_ACCESS 0x100b63934 (0x100b638e0 + 84) specialized withCheckedContinuation<A>(isolation:function:_:) #4177
Comments
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out! |
Hello @joaopdcgarcia, Is the issue only reproducing for you in TestFlight? do you have any more complete stacktrace? With just the one you posted we cannot be sure the crash happens within this SDK's code. I've not been able to reproduce the issue you describe using Xcode 16.1 beta 2, a simulator running iOS 18.1, a device running iOS 18 beta 6, and version 4.32.2 of the SDK, while compiling in release mode. |
One of our QA tester was the only one to reproduce this on TF (he has a lot of transactions not sure if that matters), consistently. If I comment out RevenueCat, it crashes again and that call seems to be done inside RC. I've updated with the full stacktrace We've built with xcode 16 beta 5. |
running xcode 16.1, swift package 5.2.3, issue occuring for me as well. This is line in debugger where dies after: DEBUG: ℹ️ Warming up intro eligibility cache for 2 products. Where error throws: static func call<Value, Error: Swift.Error>(
|
Thank you for the additional information @timothygremp @rosday @joaopdcgarcia I have been able to reproduce the issue, but only in a very limited scenario. The following snippet is enough to force the crash:
I can reproduce on Xcode 16 beta 5 and Xcode 16.1 beta 1, but ONLY when running the app as "Designed for iPhone/iPad" on macOS Sonoma, and ONLY in debug mode (crash goes away in release mode). I cannot reproduce by running on iOS 17 or 18 neither device nor simulator, and cannot reproduce either when running on macOS Sequoia beta. I have not been able to test the scenario where it crashes when installed via TestFlight, but I'm confident it's triggered by the same bug. Has any of you been able to reproduce the issue locally in a scenario that does not involve running as "Designed for iPhone/iPad"? |
@MarkVillacampa, I’ve been facing a similar issue and can reproduce it on my iPhone running iOS 18 beta 4. The crash only occurs in Xcode 16.0 Beta 5. |
It is fixed in Xcode 16 Beta 6! |
It still crashes for me |
@rudrankriyam Unfortunately, I can still reproduce in Xcode 16 beta 6 by running the app in a Sonoma host as "Designed for iPhone/iPad". Can you confirm if it crashes for you in that scenario? @SAllen0400 @kristofferbv you're both right, it also crashes in |
Hey @MarkVillacampa and @rosday, I updated my phone to iOS 18 Beta 7 too, and it is not crashing on it. Unfortunately, as you mentioned, it is crashing on other OSes, or previous betas. :/ |
@rudrankriyam thanks for the clarification! I have not been able to reproduce the crash on device by running from Xcode (I have not been able to test via TestFlight tho). If you're able to repro on device, could you describe the combination of Xcode and iOS versions? |
@MarkVillacampa I was using Xcode 16 Beta 5 + iOS 18 Beta 6 where the crash was happening. I realised it when it started crashing on TestFlight where Xcode Cloud was using Beta 5. After updating to iOS 18 Beta 7 and Xcode 16 Beta 5, I am not seeing any |
Xcode 16 RC just came out and I am still able to reproduce the crash when running as "Designed for iPhone/iPad" on Sonoma. I would like to know if anybody is still able to reproduce the issue when running the app in a different scenario (e.g. via TestFlight when running on iOS 17 or iOS 18 RC). |
One of my TestFlight beta testers is getting a similar crash when running on macOS Sequoia public beta macOS 15.0 (24A5298h). Was using RevenueCat 4.43.2. I've just updated to the main branch to see if that helps.
He can no longer launch the app since it's calling into RevenueCat upon launch. I know this is an iOS 18 thread, but thought I'd mention that it's also happening on macOS. |
Ran into this issue when we started testing iOS 18. Same as described under same conditions: Running on device, works under simulator, we can still reproduce running Xcode 16 RC and iOS 18 beta on devices. I couldn't reproduce when building on Xcode 15 and running on iOS 18. A couple more notes in case it helps and our workaround:
Hope this helps. |
From iOS 18 Beta 7, the issue is fixed from Apple side so hopefully the public release of iOS 18 will not have this issue. I still see crashes on TestFlight but from users who are using iOS 18 Beta 6 or below. |
Is there going to be an update from RevenueCat on this? I pushed a new release out using the Xcode 16 RC without knowing this issue and have since experienced lots of crashes. For an indie developer, I don’t have QA’s etc and so I am disappointed that this issue wasn’t communicated to me and my fellow developers. A big problem like this makes me lose complete trust in RevenueCat. |
I'm seeing this crash in Xcode 16 GM when targeting macOS 14.6.1 on a "built for iPad" app. |
I'm also experiencing this in production on iOS 18 compiled with Xcode 16 RC, this needs to be fixed ASAP. I see users on both iOS 18 and 18.1 affected. |
Hey all, sorry we didn't have eyes on this until right now. We've got an incident going internally and should have some updates shortly. |
We're seeing this particular exception pop-up in the traces of a few other SDKs. It seems to be triggered by multiple SDKs. airbnb/lottie-ios#2472 We're trying to understand more and see if we can mitigate it with an SDK release. It's related to async / await, and reverting to using only the completion block methods might mitigate the issue. |
Hey folks, we're still digging into this. We haven't been able to reproduce it locally, however. In the past, we've only been able to produce in a very specific situation, which is running a combination of Xcode 16 beta, macOS apps designed for iPad, and debug builds. I realize that might not be the situation that's causing it for you. As far as we can tell, the issue is caused by an underlying bug in Swift, triggered when calling So there is a chance that you might avoid this crash by either:
However, since we haven't been able to reproduce yet, we can't assert that either of those is guaranteed to work. @cnordvik or any of the folks in this thread, if you are seeing this in your crashlytics, would you be open to adding me to your account, or otherwise having a call with me to show me the details, so we can dig in deeper and figure this one out? |
Hey folks, we believe that #4286 might fix this. Could you give it a shot and let us know if it fixes the issue for you? All you’d need to do is to update your SDK version to use the |
I filed FB14768097 with Apple on August 12, 2024. It was this exact same bug when compiling with Xcode 16b5 and running on first iOS 18.1 Beta. They never responded to me but it was fixed on the next iOS 18.1 beta, so I just assumed the patch would be applied on the iOS 18.0 train as well to make sure it's ready for launch. Looks like Apple actually forgot to apply the patch to 18.0 train and left it in prod. Good news is that iOS 18.1 will be released in ~1.5 weeks and should fix it, but bad news is it's gonna make people not able to use Xcode 16 until then. |
Looks like temporarily moving to |
Could this be connected with swiftlang/swift#75771 (comment) ?
|
For more data points, my app had instant, repeating (5+ per user),
|
@fire-at-will 5.2.0 (not the newest), and note that I am not even sure its RevenueCat - I think this is just an overall iOS/Xcode 16 "crisis" where any use of this could be broken? I have a lot of my own code + other third-party SDK's. I am purely commenting to warn others that I am not sure if Xcode 16 is safe for anything. |
I just had a report from a user with this same issue on my Catalyst update shipped with Xcode 16 RC, using RC v4.30.5. |
Another datapoint, we also ran into this this week. I updated our CI from Xcode 15.4 to 16.0 and the Test Flight build crashed on launch for someone internally who was testing the build. The person testing was on an 18.1 beta. Downgrading Xcode appears to have resolved the issue. |
+1 We're seeing the same issue on all of our calls to withCheckedContinuation calls, including this one from RevenueCat. Stack trace:
This is built on Xcode 16 and issue only happening on iOS18.
|
is it fixed? I'm still getting the crash |
We have this crash in our app if we compile with xcode 16 as well. Works fine if xcode 15 is used to cut the archive. This is our number 1 crash at the moment (for the build that used xcode 16 before we switched back to xcode 15). |
Hey folks, sorry that we haven't updated this thread. Have you found instances of this happening on stable builds of iOS 18? So far we've only had reports of the crash happening in beta builds. If you have seen the instances, could you update to the latest stable version of our SDK? The fix should be deployed and the problem should go away. If it hasn't, please let us know so we can dig deeper. |
There's a more thorough explanation about the underlying mechanism here, which also points to the original issue only happening in earlier iOS 18 betas. I'll tentatively mark this issue as closed, but feel free to reopen if you experience crashes after upgrading the SDK and / or when running the latest stable builds of iOS |
I've just seen this crash popup again for a user running iOS 18.0 (could be beta, not sure) built in Xcode 16 with RevenueCat 4.43.3.
Will this fix be backported to RevenueCat 4? cc @codykerns @aboedo |
Our app doesn't use this SDK, but we're facing issues on iOS 18.0.0, especially when using Xcode downloaded from the App Store.
|
Describe the bug
Crashes at launch with a not so useful stacktrace.
RevenueCat 4.43.2 Xcode 16 beta 5 + iOS 18 crash
usesStoreKit2IfAvailable(true)
)100%
No logs, just this stacktrace.
Launch the app.
Add any other context about the problem here.
We want to keep supporting iOS 12. Is the v.4.x of RevenueCat going to be deprecated?
The text was updated successfully, but these errors were encountered: