deltachat / deltachat-desktop

Email-based instant messaging for Desktop.
GNU General Public License v3.0
915 stars 166 forks source link

Ubuntu 19.04: Deltachat freezes on message send #806

Closed g6094199 closed 5 years ago

g6094199 commented 5 years ago

image

Simon-Laux commented 5 years ago

I have it freezing sometimes when many new messages are fetched and always when messages are fetched and I try to switch account #702. Those freezing issues could be related. But my cpu load didn't rise. (At the moment I use the experimental rust core and i didn't test if those issues are still there yet)

Is it recovering after the freeze? Is the message sent eventually?

ralphtheninja commented 5 years ago

@nicodh Is this what you're experiencing on one of your macs?

Jikstra commented 5 years ago

I have a ubuntu 19.04 vm in brombi, i'm going to start that one up and try to reproduce it. I guess this could be related to rpgp. What i can try to do is, creating a 19.04 .deb release which uses netpgp.

g6094199 commented 5 years ago

What i can try to do is, creating a 19.04 .deb release which uses netpgp.

would be nice for testing

Jikstra commented 5 years ago

I just created a .deb using netpgp, haven't tested it in a vm yet. Will do so later. @g6094199 in case you already want to test, check out: https://github.com/deltachat/deltachat-desktop/releases/download/v0.103.0/DeltaChat-ubuntu-19_04-rpgp-0.103.0.deb

EDIT: Ay actually i built the delta-settings branch, so it's not really v0.103.0 but newer. But shouldn't be a problem.

g6094199 commented 5 years ago

Hola!

I installed your "nightly" build. On my 2nd ubuntu system, where is use generally the flatpak version for testing purposes. So install the .deb an i had to do the config process. Adding the mail account was ok, but when i try to use the autocrypt key transfer DS freezes after adding the transfer code and hitting ok. The transfer takes forever. CPU load rises to 100%.

image

"2019-05-27T09:58:04.300Z" "main/index" "INFO" [] "cwd /home/xxx/.config/DeltaChat" "2019-05-27T09:58:04.308Z" "main/deltachat/login" "INFO" [] "Using deltachat instance /home/xxx/.config/DeltaChat/6f647973736575735f68656c645f6465725f616e74696b65407765622e6465" "2019-05-27T09:58:04.368Z" "main/menu" "INFO" [] "rebuilding menu with locale de" "2019-05-27T09:58:04.426Z" "main/deltachat/login" "INFO" [] "Ready" "2019-05-27T09:58:04.431Z" "main/deltachat/login" "INFO" [] "dc_get_info" {"deltachat_core_version":"v0.43.0","sqlite_version":"3.27.2","sqlite_thread_safe":"1","libetpan_version":"1.8","openssl_version":"1.1.1b","rpgp_enabled":"1","compile_date":"May 22 2019, 23:51:10","arch":"64","number_of_chats":"3","number_of_chat_messages":"14","messages_in_contact_requests":"0","number_of_contacts":"2","database_dir":"/home/masterb/.config/DeltaChat/6f647973736575735f68656c645f6465725f616e74696b65407765622e6465/db.sqlite","database_version":"55","blobdir":"/home/xxx/.config/DeltaChat/6f647973736575735f68656c645f6465725f616e74696b65407765622e6465/db.sqlite-blobs","display_name":"0","is_configured":"1","entered_account_settings":"xxx@web.de 0:***:0:0 0:0:0:0 0","used_account_settings":"xxx@web.de xxx:***:imap.web.de:993 xxx:***:smtp.web.de:587 AUTH_NORMAL IMAP_SSL SMTP_STARTTLS","inbox_watch":"1","sentbox_watch":"1","mvbox_watch":"1","mvbox_move":"1","folders_configured":"3","configured_sentbox_folder":"Gesendet","configured_mvbox_folder":"DeltaChat","mdns_enabled":"0","e2ee_enabled":"1","private_key_count":"1","public_key_count":"3","fingerprint":"0BFA3E444E2993410AD6FFDFC2D0AB7470035656"} "2019-05-27T09:58:06.397Z" "main/state" "INFO" [] "Saving state to /home/xxx/.config/DeltaChat/config.json" "2019-05-27T09:58:07.538Z" "main/state" "INFO" [] "Saving state to /home/xxx/.config/DeltaChat/config.json"

I also cant just import a backup file since DS crashes instantly. See :-)

Jikstra commented 5 years ago

@g6094199 i just tested the nightly build and it's broken, it shouldn't even start. I'm currently uploading a new one which I tested in a vm. The version you're using is somehow weird because it says "rgpg_enabled=1" which should be disabled.

EDIT: New nightly build: https://github.com/deltachat/deltachat-desktop/releases/download/v0.103.0/DeltaChat-ubuntu-19_04-netpgp-0.103.0-2.deb

@g6094199 can you test again?

g6094199 commented 5 years ago

ok.

autocrypt transfer worked this time. with the new build. i also can send messages now as expected. it seems to work now.

Jikstra commented 5 years ago

Okay this seems to be a rpgp issue then. @dignifiedquire can you help out?

dignifiedquire commented 5 years ago

not sure, there is not much to go on here, without any logs

Jikstra commented 5 years ago

@g6094199 can you run the deltachat-desktop rpgp version from the terminal and make it crash? LD_PRELOAD="/opt/DeltaChat/libdeltachat/lib/x86_64-linux-gnu/libdeltachat.so" /opt/DeltaChat/deltachat-desktop-electron --debug --log-debug --log-to-console should give as much log output as possible.

g6094199 commented 5 years ago

Your netgpg version is very chatty:

deltachat-desktop LD_PRELOAD="/opt/DeltaChat/libdeltachat/lib/x86_64-linux-gnu/libdeltachat.so" /opt/DeltaChat/deltachat-desktop-electron --debug --log-debug --log-to-console Logfile: /home/x/.config/DeltaChat/logs/2019-05-27T16:43:48.792Z.log { message: 'Wählen Sie einen Chat aus oder erstellen Sie einen neuen Chat.' } main/index INFO [] cwd /home/x/.config/DeltaChat main/deltachat/login INFO [] Using deltachat instance /home/x/.config/DeltaChat/6f647973736575735f68656c645f6465725f616e74696b65407765622e6465 main/ipc DEBUG [] RENDER main/menu INFO [] rebuilding menu with locale de main/mainWindow INFO [] toggleDevTools main/deltachat/login INFO [] Ready main/deltachat/login INFO [] dc_get_info { deltachat_core_version: 'v0.43.0', sqlite_version: '3.27.2', sqlite_thread_safe: '1', libetpan_version: '1.8', openssl_version: '1.1.1b', rpgp_enabled: '0', compile_date: 'May 27 2019, 12:40:10', arch: '64', number_of_chats: '3', number_of_chat_messages: '48', messages_in_contact_requests: '0', number_of_contacts: '2', database_dir: '/home/x/.config/DeltaChat/6f647973736575735f68656c645f6465725f616e74696b65407765622e6465/db.sqlite', database_version: '55', blobdir: '/home/x/.config/DeltaChat/6f647973736575735f68656c645f6465725f616e74696b65407765622e6465/db.sqlite-blobs', display_name: '0', is_configured: '1', entered_account_settings: 'x@web.de 0:***:0:0 0:0:0:0 0', used_account_settings: 'x@web.de x:***:imap.web.de:993 x:***:smtp.web.de:587 AUTH_NORMAL IMAP_SSL SMTP_STARTTLS', inbox_watch: '1', sentbox_watch: '1', mvbox_watch: '1', mvbox_move: '1', folders_configured: '3', configured_sentbox_folder: 'Gesendet', configured_mvbox_folder: 'DeltaChat', mdns_enabled: '0', e2ee_enabled: '1', private_key_count: '2', public_key_count: '3', fingerprint: 'AA9F9C0C81ABEA969E4C975F0E1758BFF19775DD' } main/ipc DEBUG [] RENDER main/deltachat DEBUG [] ALL event 100 [ 0, 'Opened "/home/x/.config/DeltaChat/6f647973736575735f68656c645f6465725f616e74696b65407765622e6465/db.sqlite".' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'SMTP-jobs started...' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'SMTP-jobs ended.' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'SMTP-idle started...' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'INBOX-jobs started...' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'INBOX-jobs ended.' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'IMAP-server imap.web.de:993 SSL-connected.' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'IMAP-server imap.web.de:993 SSL-connected.' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'IMAP-server imap.web.de:993 SSL-connected.' ] main/deltachat DEBUG [] ALL event 102 [ 0, 'IMAP-login as x ok.' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'IMAP-capabilities: IMAP4rev1 CHILDREN ENABLE ID IDLE LIST-EXTENDED LIST-STATUS LITERAL- MOVE NAMESPACE QUOTA SASL-IR SORT SPECIAL-USE THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'SENTBOX-fetch started...' ] main/deltachat DEBUG [] ALL event 102 [ 0, 'IMAP-login as xx ok.' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'IMAP-capabilities: IMAP4rev1 CHILDREN ENABLE ID IDLE LIST-EXTENDED LIST-STATUS LITERAL- MOVE NAMESPACE QUOTA SASL-IR SORT SPECIAL-USE THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'MVBOX-fetch started...' ] main/deltachat DEBUG [] ALL event 102 [ 0, 'IMAP-login as xx ok.' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'IMAP-capabilities: IMAP4rev1 CHILDREN ENABLE ID IDLE LIST-EXTENDED LIST-STATUS LITERAL- MOVE NAMESPACE QUOTA SASL-IR SORT SPECIAL-USE THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'INBOX-fetch started...' ] main/deltachat DEBUG [] ALL event 100 [ 0, '0 mails read from "Gesendet".' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'SENTBOX-fetch done in 135 ms.' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'SENTBOX-IDLE started...' ] main/deltachat DEBUG [] ALL event 100 [ 0, '0 mails read from "INBOX".' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'INBOX-fetch done in 118 ms.' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'INBOX-IDLE started...' ] main/deltachat DEBUG [] ALL event 100 [ 0, '0 mails read from "DeltaChat".' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'MVBOX-fetch done in 159 ms.' ] main/deltachat DEBUG [] ALL event 100 [ 0, 'MVBOX-IDLE started...' ] { message: 'Wählen Sie einen Chat aus oder erstellen Sie einen neuen Chat.' } init: 1702.290ms main/state INFO [] Saving state to /home/xxx/.config/DeltaChat/config.json main/ipc DEBUG [] RENDER main/state INFO [] Saving state to /home/xx/.config/DeltaChat/config.json main/state INFO [] Saving state to /home/x/.config/DeltaChat/config.json Quitting now. Bye.

But the rgpg is NOT: deltachat-desktop LD_PRELOAD="/opt/DeltaChat/libdeltachat/lib/x86_64-linux-gnu/libdeltachat.so" /opt/DeltaChat/deltachat-desktop-electron --debug --log-debug --log-to-console Logfile: /home/xx/.config/DeltaChat/logs/2019-05-27T16:57:28.817Z.log { message: 'Wählen Sie einen Chat aus oder erstellen Sie einen neuen Chat.' } { message: 'Wählen Sie einen Chat aus oder erstellen Sie einen neuen Chat.' } init: 1342.668ms /usr/local/bin/deltachat-desktop: Zeile 8: 7211 Getötet LD_PRELOAD="/opt/DeltaChat/libdeltachat/lib/x86_64-linux-gnu/libdeltachat.so" /opt/DeltaChat/deltachat-desktop-electron

Whats wrong?

Jikstra commented 5 years ago

Is it possible that deltachat already fetched all messages? Deltachat is quite chatty if it's fetching new messages, but if you start it again and it already fetched everything it should be fine. The most output i see on the netpgp is about fetching messages.

g6094199 commented 5 years ago

maybe it already fetched all messages, but when i send a test message not additional loging happens. it just freezes.

image

after killing and restarting DS the messages is shown as sent AND is still in the typing field, too

ralphtheninja commented 5 years ago

We know what this is about now and it has been fixed in https://github.com/rpgp/rpgp/commit/b9ecee8aff4f835fc0ce50e2f3fd43e28cdefce9

@Jikstra Maybe we should just make a new release of desktop based on rpgp@0.2.1?

Jikstra commented 5 years ago

Making new releases is currently blocked by https://github.com/rpgp/rpgp/issues/39 All ci scripts seem to be broken currently.

dignifiedquire commented 5 years ago

https://github.com/rpgp/rpgp/pull/40

dignifiedquire commented 5 years ago

This PR should fix the issues On 30. May 2019, 19:55 +0200, Jikstra notifications@github.com, wrote:

Making new releases is currently blocked by rpgp/rpgp#39 All ci scripts seem to be broken currently. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Jikstra commented 5 years ago

@dignifiedquire shall i hardcode a specific git tag for rpgp or just use the latest master?

dignifiedquire commented 5 years ago

@Jikstra just use the commit of current master for now

Jikstra commented 5 years ago

@g6094199 i just uploaded a .deb for deltachat 0.104.0 for ubuntu 19.04 using a new rpgp version, can you try out that version?

https://github.com/deltachat/deltachat-desktop/releases/download/v0.104.0/DeltaChat-ubuntu-18_04-rpgp-0.104.0.deb

EDIT: Oups, it's 19.04 not 18.04. Yours is the next in build pipeline :)

g6094199 commented 5 years ago

hola!

there was no 19.04 version. but anyway i uses the 18.10 verseion which seem to work quiet nicely on my first tests. i will have an eye on it but it seems to be fixed.

THX!

Jikstra commented 5 years ago

@g6094199 thanks for testing! There now should be a 19.04 release, but in general they should be quite interoperable.