-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
iOS app sometimes crashes in background #1057
Comments
@dignifiedquire did I recall correctly this bug happens if the app is in background? |
Reminder to myself: check if it's possible to upload symbols with each iOS app release so that crash logs in the core are easier to read |
yes this happens usually when the app is in the background |
DcContext.getChatMessages(chatId:) calls dc_get_chat_msgs |
Since it's a SIGKILL, it's not even a panic/unwrap, which normally results in SIGABRT. Here is a similar issue I found: |
It may be that you simply use too much undeclared time in your background processing. If you wrap your background processing with UIApplictaion.beginBackgroundTask/EndBackgroundTask you get more time allocated before iOS starts KILLing you. |
|
The crash happens in the core as we can see in the crash log.
Nevertheless ChatViewController.startTimer() should be stopped when the app is in background / the display is turned off because the closure in startTimer() is responsible for updating the UI. That's not needed at all in this situation.
The text was updated successfully, but these errors were encountered: