nextcloud / desktop

💻 Desktop sync client for Nextcloud
https://nextcloud.com/install/#install-clients
GNU General Public License v2.0
3.03k stars 797 forks source link

Crash when Sync is put on hold and folder sync connections are removed #5895

Open smdawson opened 1 year ago

smdawson commented 1 year ago

⚠️ Before submitting, please verify the following: ⚠️

Bug description

The share dialog is looking incomplete. ... Nextcloud Desktop Client crashes when Sync is put on hold and folder sync connections are removed.

Steps to reproduce

  1. Select Pause Sync for All
  2. Select Settings
  3. From sync connection options select Remove folder sync connection ...

Expected behavior

After folder connection is removed client should continue to run. ...

Which files are affected by this bug

Unknown

Operating system

Linux

Which version of the operating system you are running.

Distro - Archlinux, DE - KDE Plasma

Package

Distro package manager

Nextcloud Server version

25.0.8

Nextcloud Desktop Client version

3.9.0

Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 3.4.2 to 3.4.4)

Are you using the Nextcloud Server Encryption module?

Encryption is not Enabled

Are you using an external user-backend?

Nextcloud Server logs

[1]    3520 segmentation fault (core dumped)  nextcloud --logwindow

Additional info

2023-07-17 11:45:06:440 [ debug nextcloud.gui.socketapi /usr/src/debug/nextcloud-client/nextcloud-client/src/gui/socketapi/socketapi.cpp:369 ]  [ OCC::SocketApi::slotReadSocket ]: Received SocketAPI message <-- "RETRIEVE_FILE_STATUS:/tmp/Nextcloud-logdir/20230717_1143_nextcloud.log.0" from QLocalSocket(0x561e8eddbb40)
2023-07-17 11:45:06:440 [ debug nextcloud.gui.socketapi /usr/src/debug/nextcloud-client/nextcloud-client/src/gui/socketapi/socketapi.cpp:212 ]  [ OCC::SocketListener::sendMessage ]:   Sending SocketAPI message --> "STATUS:NOP:/tmp/Nextcloud-logdir/20230717_1143_nextcloud.log.0" to QLocalSocket(0x561e8eddbb40)
2023-07-17 11:45:06:754 [ info nextcloud.gui.folder.manager /usr/src/debug/nextcloud-client/nextcloud-client/src/gui/folderman.cpp:1295 ]:  Removing  "6"
2023-07-17 11:45:06:754 [ info nextcloud.sync.database /usr/src/debug/nextcloud-client/nextcloud-client/src/common/syncjournaldb.cpp:662 ]: Closing DB "/home/user/Documents/Nextcloud/.sync_36638bba715c.db"
2023-07-17 11:45:06:755 [ debug nextcloud.sync.database /usr/src/debug/nextcloud-client/nextcloud-client/src/common/syncjournaldb.cpp:255 ] [ OCC::SyncJournalDb::commitTransaction ]:  No database Transaction to commit
2023-07-17 11:45:06:759 [ info nextcloud.gui.folder /usr/src/debug/nextcloud-client/nextcloud-client/src/gui/folder.cpp:847 ]:  wipe: Removed csync StateDB  "/home/user/Documents/Nextcloud/.sync_36638bba715c.db"
amalgame21 commented 3 days ago

Same issue here. I have 10 folder in sync. Every time I press Remove Folder Sync Connection on a synced folder, it crashes. I have to relaunch nextcloud desktop after crash 10 times to remove all 10 synced folders. This is so stupid.

This issue was reported more than a year now. This bug still exist now in late October 2024, unbelievable. Is Nextcloud desktop unmaintained?