nextcloud / nextcloud/desktop

Excessive CPU usage in case of firewall blocking

Open
#10,080 3 comments 0 reactions 1 assignee Claimed by @i2h3 View on GitHub
1. to develop bug os: :apple: macOS
Dominant language
C++
Stars
3.9k
Forks
1k
Avg merge
1d 17h
Merged PRs (30d)
123

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 have searched for 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

On macOS, when I'm commuting and limiting my outbound connections to selected apps through a network filter to save data traffic, the NextCloud Client seems to enter in a high CPU usage loop if it is not allowed to have outbound traffic, thus consuming the battery for nothing.
It seems the client sees an active internet connexion and try to contact the servers repetitively. As the network filter is blocking the connections, the client can't do its requests.
This bug was present in the client as far as I can remember (using it since ~5 years).

### Steps to reproduce

1. Install a network filter like TripMode or LittleSnitch

2. Prohibit connections for Nextcloud client
Image

3. Monitor the cpu usage
Image

### Expected behavior

When connections are not allowed specifically for the client, it should be less aggressive with its requests.

### Which files are affected by this bug

/Applications/Nextcloud.app/Contents/MacOS/Nextcloud

### Operating system

macOS

### Which version of the operating system you are running.

Sonoma 14.8.5 (23J423)

### Installation method

Official Installer for macOS 13 and later

### Nextcloud Server version

30.0.6

### Nextcloud Desktop Client version

33.0.4

### Did this occur after an update or on a clean installation?

Clean desktop client installation

### Are you using the Nextcloud Server Encryption module?

Yes

### Are you using an external user-backend?

- [x] Default internal user-backend
- [ ] LDAP or Active Directory
- [ ] SSO - SAML
- [ ] Other

### Nextcloud Server logs

```shell

```

### Additional info

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.