[Bug]: Client hangs when syncing large folder
- Dominant language
- C++
- Stars
- 3.9k
- Forks
- 1k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 127
Description
### ⚠️ Before submitting, please verify the following: ⚠️
- [X] This is a **bug**, not a question or a configuration issue.
- [X] This issue is **not** already reported on Github (I've searched it).
- [X] Nextcloud Server and Desktop Client are **up to date**. See [Server Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) and [Desktop Releases](https://nextcloud.com/install/#install-clients) for supported versions.
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/)
### Bug description
Trying to sync very large folder hangs the client rendering it completely unresponsive. Sync never ends.
...
### Steps to reproduce
1. Create sync connection with very large folder
2. Wait some minutes then the client completely hangs
...
### Expected behavior
Sync should end as always did.
...
### Which files are affected by this bug
*
### Operating system
Linux
### Which version of the operating system you are running.
Linux Mint 21.3 Cinnamon
### Package
Distro package manager
### Nextcloud Server version
29.0.1
### Nextcloud Desktop Client version
3.13.0
### Is this bug present after an update or on a fresh install?
Fresh desktop client install
### Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
### Are you using an external user-backend?
- [X] Default internal user-backend
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
### Nextcloud Server logs
```shell
2024-06-04T15:00:24.808544252Z 172.27.0.3 - martinb 04/Jun/2024:15:00:24 +0000 "PROPFIND /remote.php" 207
2024-06-04T15:00:24.810104300Z 172.27.0.3 - martinb 04/Jun/2024:15:00:24 +0000 "PROPFIND /remote.php" 207
2024-06-04T15:00:24.824831865Z 172.27.0.3 - martinb 04/Jun/2024:15:00:24 +0000 "PROPFIND /remote.php" 207
2024-06-04T15:00:24.847812666Z 172.27.0.3 - martinb 04/Jun/2024:15:00:24 +0000 "PROPFIND /remote.php" 207
2024-06-04T15:00:24.851268949Z 172.27.0.3 - martinb 04/Jun/2024:15:00:24 +0000 "PROPFIND /remote.php" 207
2024-06-04T15:00:24.887534163Z 172.27.0.3 - martinb 04/Jun/2024:15:00:24 +0000 "PROPFIND /remote.php" 207
```
### Additional info
As mentioned in https://github.com/nextcloud/desktop/issues/6349, changing the bandwidth limit to 512 KB/s didn't solve the issue, and as mentioned in https://github.com/nextcloud/desktop/issues/5779 I can't tell if some of my local files have this issue, but the sync succeeded last week ¿¿??, and experiencing the same reported here https://github.com/nextcloud/desktop/issues/6791.
The only major change I've made is migrated my server hardware to a new box, but as I use docker for my NC setup, I think everything may be the same.,
Just to mention that I've uninstalled clean all my NC client packages, also deleted the NC client folders in my home directory and also went to every folder formerly synced and deleted all sync dot files and such, then reinstalled NC client with apt from scratch.
**Large folder details**

**Sync config of the client**

[debug_archive.zip](https://github.com/user-attachments/files/15566504/debug_archive.zip)
Contributor guide
Research direction
Start by reviewing debug_archive.zip and reproducing the hang with the large-folder sync configuration described in the issue on Linux Mint. Trace where the desktop client becomes unresponsive during synchronization and compare its behavior with the server PROPFIND log entries; done means the large-folder sync completes without leaving the client unresponsive.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, linux
- Domain
- desktop, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100