-
Notifications
You must be signed in to change notification settings - Fork 265
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 in AnyPublisher.receive<A> #418
Comments
Are you using |
Hi @rlepinski, thanks for taking a look. Yes, we are using that block, from a function within the app:
I have multiple reports, and here is the top portion snippet out of one of the reports:
As for the metrics, Firebase reports that during last 30 days in this issue is in the list of top 5 issues, which is high enough on the list to warrant attention. I see that this crash has happened about 100 times on the audience of about 2m users and about 50m sessions. |
Absolutely, it just helps us determine if we have any hope of reproducing or the type of issue. That is pretty low crash rate so probably don't have any chance or reproducing. Usually with these type of issues with low crash rates its some sort of memory retention issue when the app is tearing down.
I wonder if its a retention to what I assume might be your app delegate in your block:
Could you try rewriting that to:
How about we try both and see if the crash goes away? |
Sorry... I snipped too much, I guess, but this is within a context of static function declared on a struct:
So it was a good call, but
Sure, let's try that. Thank you. |
If everything is static/class then I don't see how we have a memory retention issue. Ill do the block rewrite in the next patch and we can see if that changes anything |
Made the above change in 18.12.2 |
Thanks! Will see how it goes. |
Updated to 18.2.2, and, unfortunately, I am not seeing any reduction in |
@vgritsenko Could you give me an updated stack trace? We probably want to file a bug with Apple on this. |
Preliminary Info
What Airship dependencies are you using?
Airship version 18.7.2 with Core and Automation.
What are the versions of any relevant development tools you are using?
Xcode 15, CocaPods 1.15.2 with two plugins.
Report
What unexpected behavior are you seeing?
Seeing crashes originating from
airshipWatchActivities(activityBlock:)
function ofLiveActivity.swift
file, on iPhone and iPad devices, running various iOS 17 and iOS 18 OS versions.What is the expected behavior?
There should be no crashes.
What are the steps to reproduce the unexpected behavior?
Unknown.
Do you have logging for the issue?
Stack trace of the crashed thread:
The text was updated successfully, but these errors were encountered: