-
-
Notifications
You must be signed in to change notification settings - Fork 94
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 when trying to perform account backup (running out of memory during SQLite VACUUM) #5801
Comments
hi @gerryfrancis, is this still happening to you in 1.44.0 stable release? I just tried it and could create a backup without any issues in 1.44 |
Hi @adbenitez , I can reproduce the bug with a two days old nightly build, core version 1.137.0, as well: |
thanks! @gerryfrancis,
cc @link2xt |
I believe this could be a similar case like #5349 , but for Android. @adbenitez No, there is enough disk space left to create a backup. |
ftr, the log says |
bad_alloc means some C++ code failed to allocate memory. |
@link2xt This error occurs with my Fairphone FP2, it features 2 GB RAM only, and the database size has been >2 GB. So, if there was a low memory issue during vacuuming, I would have expected a message like "your device has run out of memory" rather than an app crash. On the other hand, we could implement the same fix or workaround we already did in iOS for Android, too (see my comment above), and I would test again afterwards. (I still own my Fairphone.) :) |
SQLite is written in C rather than C++, so it is not even an SQLite crash, but some C++ component in Android application failing. But memory is exhausted by SQLite I guess. |
Android version:
Android 11.
Device:
Fairphone FP2 (Lineage OS 18.1 build RQ3A.211001.001 1618d67eec from 2024-02-12).
Delta Chat version:
1.43.0 (nightly built 2024-02-14).
Expected behavior:
A backup of an account can be performed.
Actual behavior:
A backup of an account cannot be performed. The app crashes and is relaunched at 1% progress. (The content of the log which I created after three failed attempts - see below - indicates that there might be a memory allocation issue.)
Steps to reproduce the problem:
The steps to create a backup from an account are obvious, and it was possible to perform the operation successfully after ~100 attempts. I have attach a log file - see below - that includes three failed tries after a reboot of the device.
Screenshots:
N/A.
Logs:
deltachat-log-20240220-093456_2.txt
The text was updated successfully, but these errors were encountered: