-
Notifications
You must be signed in to change notification settings - Fork 7
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
#1630 Fix 8BADF00D crash #1638
#1630 Fix 8BADF00D crash #1638
Conversation
@sosnovsky, @tomholub
|
@ioanmo226 I checked crash report from #1630 and it seems crash happened because of another responder of
I checked code - app observes Can you please check it? |
I checked deeply and here's my thought. I might be wrong. Please correct me if I'm wrong.
|
User can't reach I also found this line in crash report:
It's documentation says: /// Given an NSURL created by resolving a bookmark data created with security scope, make the resource referenced by the url accessible to the process. When access to this resource is no longer needed the client must call stopAccessingSecurityScopedResource. Each call to startAccessingSecurityScopedResource must be balanced with a call to stopAccessingSecurityScopedResource (Note: this is not reference counted).
@available(macOS 10.7, iOS 8.0, *)
public func startAccessingSecurityScopedResource() -> Bool Which looks similar to crash log from my previous post
So probably crash happens when user chose some file to import keys from it and then closed app. |
Yeah. That's why I thought ComposeViewController willResignActiveNotification didn't trigger app crash.
0x8badf00d crash doesn't happen immediately after user interaction. But crash happens after some ui thread(main thread) block time which watchdog checks. https://suelan.github.io/2021/03/05/20210305-crash-ate-bad-food/#:~:text=Thread%3A%20%200-,WatchDog,-As%20we%20know |
Maybe |
Hmm... IMHO even if |
Yeah, I understand that normally it should work without any crashes, but possibly it was some rare condition when user chose some large file which was parsed longer than usual, then quickly closed the app and it lead to reported crash. My point here is that implemented fix probably won't change anything, as crash report doesn't include anything related to cancelling Maybe you can try to reproduce this crash in |
Thanks for your explanation. |
@tomholub it seems we found where this crash happened, but weren't able to reproduce it. Probably it happened because of some very rare conditions. Let's monitor it further to get some additional data or maybe it won't happen anymore. |
ok. Thanks |
Often, one can guess-implement a fix - I figured from your conversation that wasn't possible this time. Other times one can guess-implement a way to make the problem more obvious next time. Do you think we can do anything to surface the real problem easier next time it happens? |
@tomholub I think it won't be possible to make it easier to catch next time, as this crash probably happens when app is in background and for some reason ui operation takes too much time. |
ok. thanks - closing |
This PR fixed 8BADF00D crash
close #1630 // if this PR closes an issue
Tests (delete all except exactly one):
To be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):