Infomaniak / desktop-kDrive

:computer: Desktop Syncing Client for kDrive
GNU General Public License v3.0
27 stars 5 forks source link

App segfaults once in a while #327

Closed Frankkkkk closed 3 weeks ago

Frankkkkk commented 4 weeks ago

Hey,

Description During a large resync, the app segfaults once in a while (well, at least once)

Steps to reproduce Steps to reproduce the behavior:

  1. Sync your data

Expected behavior It should sync

Logs

✔️ 10:18:26 ~$ 
kDrive 
kDrive server starting
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Server stoped with signal 11
log4cplus:ERROR No appenders could be found for logger (Main).
log4cplus:ERROR Please initialize the log4cplus system properly.
Segmentation fault (core dumped)
❌ 10:27:14 ~$ 
tail 20240927_2218_kDrive_client.log.1 -n 50
2024-09-27 22:26:20:294 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2703 15
2024-09-27 22:26:20:296 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2704 19
2024-09-27 22:26:20:346 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2705 16
2024-09-27 22:26:20:369 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2706 16
2024-09-27 22:26:20:428 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2707 16
2024-09-27 22:26:20:430 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2708 19
2024-09-27 22:26:20:495 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2709 16
2024-09-27 22:26:20:554 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2710 16
2024-09-27 22:26:20:612 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2711 16
2024-09-27 22:26:20:671 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2712 16
2024-09-27 22:26:20:729 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2713 16
2024-09-27 22:26:20:787 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2714 16
2024-09-27 22:26:20:844 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2715 16
2024-09-27 22:26:20:900 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2716 16
2024-09-27 22:26:20:957 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2717 16
2024-09-27 22:26:21:059 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2718 16
2024-09-27 22:26:21:059 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2719 19
2024-09-27 22:26:21:137 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2720 19
2024-09-27 22:26:21:291 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2721 19
2024-09-27 22:26:21:291 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2722 15
2024-09-27 22:26:22:173 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2723 16
2024-09-27 22:26:22:241 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2724 15
2024-09-27 22:26:22:409 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2725 16
2024-09-27 22:26:23:242 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2726 15
2024-09-27 22:26:23:879 [D] (264438) commclient.cpp:122 - Snd rqst 67 30
2024-09-27 22:26:23:880 [D] (264438) commclient.cpp:256 - Rpl rcvd 67
2024-09-27 22:26:23:881 [D] (264438) commclient.cpp:122 - Snd rqst 68 30
2024-09-27 22:26:23:882 [D] (264438) commclient.cpp:256 - Rpl rcvd 68
2024-09-27 22:26:23:882 [D] (264438) commclient.cpp:122 - Snd rqst 69 31
2024-09-27 22:26:23:890 [D] (264438) commclient.cpp:256 - Rpl rcvd 69
2024-09-27 22:26:23:891 [D] (264438) commclient.cpp:122 - Snd rqst 70 31
2024-09-27 22:26:23:891 [D] (264438) commclient.cpp:256 - Rpl rcvd 70
2024-09-27 22:26:23:891 [D] (264438) commclient.cpp:122 - Snd rqst 71 31
2024-09-27 22:26:23:891 [D] (264438) commclient.cpp:256 - Rpl rcvd 71
2024-09-27 22:26:23:891 [D] (264438) commclient.cpp:122 - Snd rqst 72 29
2024-09-27 22:26:24:831 [D] (264438) commclient.cpp:256 - Rpl rcvd 72
2024-09-27 22:26:24:932 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2727 15
2024-09-27 22:26:25:263 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2728 19
2024-09-27 22:26:27:242 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2729 15
2024-09-27 22:26:29:502 [D] (264438) commclient.cpp:122 - Snd rqst 73 34
2024-09-27 22:26:29:680 [D] (264438) commclient.cpp:256 - Rpl rcvd 73
2024-09-27 22:26:29:681 [D] (264438) commclient.cpp:122 - Snd rqst 74 45
2024-09-27 22:26:29:681 [D] (264438) commclient.cpp:256 - Rpl rcvd 74
2024-09-27 22:26:29:742 [D] (264438) commclient.cpp:122 - Snd rqst 75 36
2024-09-27 22:26:29:743 [D] (264438) commclient.cpp:256 - Rpl rcvd 75
2024-09-27 22:26:30:726 [D] (264438) appclient.cpp:211 - Sgnl rcvd 2730 19
2024-09-27 22:27:14:434 [W] (264438) commclient.cpp:212 - Error occurred! "The remote host closed the connection"
2024-09-27 22:27:14:434 [D] (264438) commclient.cpp:200 - Client disconnected
2024-09-27 22:27:14:434 [C] (264438) appclient.cpp:493 - "The server got disconnected. As the app is in debug mode, it will not be restarted."
2024-09-27 22:27:14:435 [D] (264457) commclient.cpp:398 - Worker ended
tail 20240927_2218_kDrive.log
2024-09-27 22:26:29:679 [D] (127806310009728) abstractnetworkjob.cpp:413 - Request 2511 finished with status: 200 / OK
2024-09-27 22:26:29:680 [D] (127806310009728) commserver.cpp:247 - Snd rpl 73
2024-09-27 22:26:29:681 [D] (127806310009728) commserver.cpp:194 - Rqst rcvd 74 45
2024-09-27 22:26:29:681 [D] (127806310009728) commserver.cpp:247 - Snd rpl 74
2024-09-27 22:26:29:742 [D] (127806310009728) commserver.cpp:194 - Rqst rcvd 75 36
2024-09-27 22:26:29:743 [D] (127806310009728) commserver.cpp:247 - Snd rpl 75
2024-09-27 22:26:29:745 [D] (127806201661120) abstractnetworkjob.cpp:320 - Sending GET request 2512 : https://api.kdrive.infomaniak.com/2/drive/371969/files/428273/sizes
2024-09-27 22:26:30:724 [D] (127806201661120) abstractnetworkjob.cpp:413 - Request 2512 finished with status: 200 / OK
2024-09-27 22:26:30:725 [D] (127806310009728) commserver.cpp:281 - Snd sgnl 2730 19
2024-09-27 22:26:46:875 [D] (127804848998080) abstractnetworkjob.cpp:413 - Request 2234 finished with status: 200 / OK

Additional context

kDrive -v
kDrive server starting
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
kDrive version 3.6.4 (build 20240814)
Using Qt 6.2.3, built against Qt 6.2.3
Using 'OpenSSL 1.1.1f  31 Mar 2020'

If it can help, it happened twice when I unticked a folder to sync

Thanks and cheers

herve-er commented 3 weeks ago

Hi @Frankkkkk, Thank you for the feedback! We have an internal report regarding this issue and a first fix will be delivered in the upcoming version (kDrive 3.6.6).

Associated Pull Request: #324

Let us know if this segmentation fault happens again once in version 3.6.6.