Post

Replies

Boosts

Views

Activity

Reply to A crash triggered by backgroud thread which is hard to catch, seems UI main thread updating issue.
@Rumio, I haven't received the same crash as this again, the root cause is still not clear to me. An extra thing I did after the last crash was to add DispatchQueue.main.async {} to all potential codes which update UI outside of the main thread, so the root fault will still be latent until I get another same crash...or what was happening in 'auto layout' regarding this crash can be figured out...
Topic: UI Frameworks SubTopic: UIKit Tags:
Jan ’23
Reply to A crash triggered by backgroud thread which is hard to catch, seems UI main thread updating issue.
Thank you @eskimo! Unfortunately, I could not reproduce it by triggering a sysdiagnose log, could you give me a hint on how to involve a sysdiagnose log? Yesterday I got another crash report due to probably the same reason but with a little difference in the backtrace, the report is attached. Is my understanding correct that I should generally use DispatchQueue.main.async {} for all the possible background threads/tasks which update UI? 2022-12-3.crash
Topic: UI Frameworks SubTopic: UIKit Tags:
Dec ’22
Reply to A crash caused by background thread.
Thanks, @eskimo for the good hint. I found it was because I tried to access items in coredata after actually deleting them. I would like to move the photos that had been downloaded before to the top of the list. I implemented this with deleting the downloaded photos and re-downloading, then boom... Now I only change the date property for the photo then sort by date, seems ok now.
Dec ’22
Reply to A crash triggered by backgroud thread which is hard to catch, seems UI main thread updating issue.
@Rumio, I haven't received the same crash as this again, the root cause is still not clear to me. An extra thing I did after the last crash was to add DispatchQueue.main.async {} to all potential codes which update UI outside of the main thread, so the root fault will still be latent until I get another same crash...or what was happening in 'auto layout' regarding this crash can be figured out...
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to A crash triggered by backgroud thread which is hard to catch, seems UI main thread updating issue.
Thank you @eskimo! Unfortunately, I could not reproduce it by triggering a sysdiagnose log, could you give me a hint on how to involve a sysdiagnose log? Yesterday I got another crash report due to probably the same reason but with a little difference in the backtrace, the report is attached. Is my understanding correct that I should generally use DispatchQueue.main.async {} for all the possible background threads/tasks which update UI? 2022-12-3.crash
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to A crash caused by background thread.
Thanks, @eskimo for the good hint. I found it was because I tried to access items in coredata after actually deleting them. I would like to move the photos that had been downloaded before to the top of the list. I implemented this with deleting the downloaded photos and re-downloading, then boom... Now I only change the date property for the photo then sort by date, seems ok now.
Replies
Boosts
Views
Activity
Dec ’22
Reply to A crash triggered by backgroud thread which is hard to catch, seems UI main thread updating issue.
could anyone explain how to find the cause from my own code from this? as I could not find connections. Or I missed some configurations for the crash report... thanks.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’22
Reply to A crash caused by background thread.
Here is the crash report, thank you @eskimo 2022-11-11, 08-14.crash
Replies
Boosts
Views
Activity
Nov ’22