-
-
Notifications
You must be signed in to change notification settings - Fork 100
Backup process fails when device goes to sleep mode at 1% progress and awakes five seconds later #2813
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
Comments
Seems like the problem is that during the backup, ForegroundDetector does We should somehow prevent starting IO during IMEX operations (and probably also during configure). This could somehow be integrated into |
Context.start_io() should refuse to create a Scheduler if there is an ongoing process. Ideally It is also important for #4007 that we cannot start the scheduler while serving a backup. |
The issue no longer occurs in the latest nightly build from today, thank you! Shall we close here? |
I am pretty sure it is not fixed, as in |
Likely fixed by #4138, but need to double-check |
@link2xt I cannot reproduce the issue anymore, can you confirm? Many thanks! |
I'd close it, we can always reopen or open a new issue if someone reports similar problems. |
@link2xt Thanks! :) |
Android version:
Android 11.
Device:
Fairphone FP2 (Lineage OS 18.1 build RQ3A.210705.001 from 2021-10-29).
Delta Chat version:
1.23.0 (latest nightly build).
Expected behavior:
The backup process continues when the device awakes from sleep mode.
Actual behavior:
The backup process is aborted after the device awakes from sleep mode, namely at 1% of the progress, and the message
cannot export backup, IO already running
appears.Steps to reproduce the problem:
-- Start a backup ("Settings" -> "Chats and Media" -> "Back Up Chats to External Storage" -> "Start Backup").
-- Immediately after the backup process has started, put the device in sleep mode by using the power switch.
-- Wait five seconds.
-- Awake the device from sleep mode by using the power switch and go back to Delta Chat, then wait 30 seconds. (Result: The backup process is aborted.)
Screenshots:

Logs:
deltachat-log-20211103-115749.txt
The text was updated successfully, but these errors were encountered: