desktop icon indicating copy to clipboard operation
desktop copied to clipboard

High CPU usage after wake from sleep with no connection

Open mrmotallebi opened this issue 7 years ago • 4 comments

Expected behaviour

~0% CPU

Actual behaviour

100% CPU on one core (thread)

Steps to reproduce

  1. Let NC sync completely
  2. Let PC go to sleep while connected to internet
  3. Disconnect internet connection before waking up

Client configuration

Client version: 2.5.1final (build 20181204)

Operating system: Win 7 (64-bit)

OS language: EN

Qt version used by client package (Linux only, see also Settings dialog):

Client package (From Nextcloud or distro) (Linux only):

Installation path of client: C:\Program Files\

Logs

Nothing unusual in logs. Nothing logged before and after sleep.

#=#=#=#=# Propagation starts 2019-02-06T12:26:46Z (last step: 789 msec, total: 789 msec)
#=#=#=# Syncrun finished 2019-02-06T12:26:46Z (last step: 22 msec, total: 812 msec)
#=#=#=# Syncrun started 2019-02-06T14:57:35Z
#=#=#=# Syncrun finished 2019-02-06T14:57:36Z (last step: 720 msec, total: 720 msec)
#=#=#=# Syncrun started 2019-02-06T14:57:50Z
#=#=#=# Syncrun finished 2019-02-06T14:57:51Z (last step: 724 msec, total: 724 msec)
#=#=#=# Syncrun started 2019-02-06T14:58:55Z
#=#=#=# Syncrun finished 2019-02-06T14:58:56Z (last step: 695 msec, total: 695 msec

mrmotallebi avatar Feb 06 '19 15:02 mrmotallebi

Did you wait for some time to see whether it goes back to regular CPU usage?

There are also others having cpu issues: https://github.com/nextcloud/desktop/issues/942

faulix avatar Feb 10 '19 18:02 faulix

The problem didn't solve with time (gave it more than 10 mins) , but after reconnecting to the network, the CPU usage dropped again (to ~0%).

Meanwhile, before reconnecting to the network it shows an error icon in the taskbar with the last three errors in the activity tab being: "Host unreachable" or "Host not found".

Looks like there's an uncontrolled while loop in the code trying to check if the server's online.

mrmotallebi avatar Feb 15 '19 10:02 mrmotallebi

duplicate? https://github.com/nextcloud/desktop/issues/942

toweih avatar Apr 19 '19 15:04 toweih

Closing since it's for older versions.

mrmotallebi avatar Feb 03 '21 16:02 mrmotallebi