-
-
Notifications
You must be signed in to change notification settings - Fork 88
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 on start after update to 1.48.3 #6221
Comments
Does it also crash if you are offline? |
No! Good idea, this way I can make backup and safe the current messages. |
Do you have multiple accounts? It is probably crashing while accessing one of the accounts over the network or trying to process one of the recently received messages. You can try to figure out which account it is and remove some of the recently received messages from the server. |
No. I have only one account configured. But keep in mind: the configuration is 5 years old. |
I suspect you have recently received some message that makes the core crash, and this may not be related to 1.48.3 upgrade. So removing some recent messages from the server over IMAP or web interface could help, then Delta Chat will not download them anymore and stop crashing. Would be nice to figure out what exact message it is, but at least this should make Delta Chat usable again for you. If you move the last week of messages out of the server and start uploading them one by one with Thunderbird, you can find which message is the problem. |
I run my own IMAP-server (dovecot):
|
If you can export a backup, can you also import it into another version, like older F-Droid or the latest nightly (https://download.delta.chat/android/nightly/2024-11-16/) and see if it crashes? |
Maybe the crash is related to the recently introduced IMAP COMPRESS support. You can try to set minimal capabilities (excluding
|
Minimal capabilities with |
Updating to https://download.delta.chat/android/nightly/2024-11-17/841c1d7f-foss-debug-1.48.3.apk DeltaChat still crashes. Downgrading to FDroid Versions 1.46.14 or 1.46.13 also crashes with the same stack trace. |
Deinstalling the app, reinstalling it and load the backup crashes too. Tested with FDroid Version 1.48.3 and nichtly version 2024-11-17. Are any values in the sqlite database in the backup of your interest? |
I can try to build an .apk with debug symbols that produces proper stack traces with function names. Then you can load the backup there and capture the stack trace like in the first post but with actual function names instead of the addresses. |
If you can build the core with Rust locally, a simpler way would be to download the source from https://github.com/deltachat/deltachat-core-rust/ and run I am still trying to build .apk with non-stripped symbols. |
I managed to build unstripped .apk with these modifications:
And these modifications to the core:
Will upload it soon. |
Here is the testing .apk with debug symbols: Built from deltachat-android commit 00498b02b3a852e550b2966d502c8420ec431c02 (current sha256sum = 036dc2055d516902e920927873c56dec63f10c61ded3498d72a06f2322bf34e3 |
To get useful log, install .apk above, import backup, let it crash. The way you collected backtrace before should also work. |
@flymarq From the log it seems to be some message:
If you have access to the Dovecot server, you can run Would be great if you can send me a copy of the message to link2xt@testrun.org so I can reproduce the crash. |
@flymarq Looking at the log again, seems the problem is while trying to load your secret key. Have you recently imported a new key into Delta Chat manually? The issue looks similar to rpgp/rpgp#259 |
No, I did not add a new key into DeltaChat.
But: I tried with network permission disabled to export the key(s) to the storage and DeltaChat crashes ... no keys are saved to the storage. |
rPGP was upgraded from 0.11 to 0.13 in v1.141.2 In Delta Chat Android v1.46.7 core was at version 1.140.2, using rPGP 0.11. Could you try to downgrade to v1.46.8? |
This means new rPGP somehow fails to parse your secret key stored in the database. Downgrading to the version of Delta Chat with old rPGP should help. |
I have deleted the message with the log file above because it contains Message-IDs etc. |
I test the older version later ... From my knowledge I still use the first key from 2018, which:
|
The key should still be supported, it's definitely a bug in Delta Chat that it crashes on old key generated by Delta Chat. The key is likely a 2048-bit RSA. Delta Chat later switched to generating Curve25519 keys, but using RSA is still supported and support for it is not going to be removed. |
Version 1.46.7 fresh install restoring from backup works without crash. |
Even if you receive more messages or try to export the key? |
No, exporting keys only works with version 1.46.7. |
Then you can downgrade to 1.46.7 for now, otherwise it will crash as soon as you receive a new message and it tries to load the key. rPGP devs are working on eliminating the code that resulted in this crash and core will update as soon as new version of the library is tagged, will take around a week likely. |
Thank you so far for your time and efforts to find a workaround. |
@flymarq This is likely fixed in core 1.151.5 which contains rPGP 0.14.2 with bugfixes. It is included in the release candidate https://download.delta.chat/android/beta/deltachat-foss-debug-1.50.1.apk, would be great if you can try to import backup there and report if it works. |
Tested and it works without crash after importing the backup. |
Great, then we can close the issue. |
I use DeltaChat for more than 5 years and got this error after updating to version 1.48.3 from FDroid:
The text was updated successfully, but these errors were encountered: