You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nheko uses 100% of CPU (one thread maxed out so it's just one core not all of them thankfully)
To Reproduce
Open Nheko
Use PC and Nheko as per usual
After unknown amount of time the CPU usage ramps up
What happened?
I've been trying to track down the issue of Nheko suddenly hyperfocusing on something and using up all of CPU resources it can with a single thread. I weren't able to point to any specific action that triggers the issue. While the bug is reproducible quite consistently after around 30 minutes to two hours from starting Nheko, I can't reproduce it on demand as I don't know what exact action is triggering the behavior. From my observations however it seems like it's either not in buggy state or in buggy state with 100% usage and there is no in-between state.
When in bugged state Nheko is still usable so the bug is seemingly not blocking anything, graphical part of the interface works, images load, videos load. Haven't noticed any functionality being unusable.
Here is what I believe is relevant to the issue:
When stracing nheko during bugged state, one thing in particular immediately catches my eye - a never ending stream of epool_wait calls. The same does not happen when nheko is not in a bugged state. I've attached screenshots from htop showing them as well as list of opened files with corresponding file descriptor.
Here is what I believe is not relevant to the issue but I decide to include it in report anyways just in case I'm wrong:
Exiting Nheko results in this being logged, this is always printed, no matter if Nheko ever enters bugged state or not:
[2024-08-05 18:21:15.104] [net] [error] sync error: (connection: Operation was aborted by an application callback, parser: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal [while parsing error]: )
Last line in log file when nheko is running is seemingly cut in the middle as if the stream ended when program was writing to it (for example [2024-08-05 23:43:43.314] [crypto] and nothing after that) after Nheko is closed, that line is completed along with addition of other logs.
--debug did not yield any useful information that would help in pinning this issue to its root cause.
Operating system is EndeavourOS (basically Arch Linux) and Nheko is installed from official repository.
Expected behavior
Nheko using regular amount of resources as needed for tasks its performing.
Screenshots
Version
0.12.0
Operating system
Linux
Installation method
Some repository (AUR, homebrew, distribution repository, PPA, etc)
Qt version
No response
C++ compiler
No response
Desktop Environment
KDE Plasma
Did you use profiles?
Profiles used?
Relevant log output
(logs ommited for privacy reasons, on request I'm willing to process them to redact private information)
Backtrace
No response
The text was updated successfully, but these errors were encountered:
For a test, I've renamed .cache/nheko directory to test whether cache files could be corrupted or otherwise involved in this issue. I'll update this comment once I come to a conclusion on this.
EDIT: The issue still occurs after basically regenerating .cache/nheko folder.
Hey, thank you for quick response! I indeed had 8.9.0 version of curl installed. I've now updated it to 8.9.1 that was released in official repos fairly recently and will close the issue at the end of the day if I don't encounter the issue again. Again, thank you for letting me know!
Describe the bug
Nheko uses 100% of CPU (one thread maxed out so it's just one core not all of them thankfully)
To Reproduce
What happened?
I've been trying to track down the issue of Nheko suddenly hyperfocusing on something and using up all of CPU resources it can with a single thread. I weren't able to point to any specific action that triggers the issue. While the bug is reproducible quite consistently after around 30 minutes to two hours from starting Nheko, I can't reproduce it on demand as I don't know what exact action is triggering the behavior. From my observations however it seems like it's either not in buggy state or in buggy state with 100% usage and there is no in-between state.
When in bugged state Nheko is still usable so the bug is seemingly not blocking anything, graphical part of the interface works, images load, videos load. Haven't noticed any functionality being unusable.
Here is what I believe is relevant to the issue:
Here is what I believe is not relevant to the issue but I decide to include it in report anyways just in case I'm wrong:
[2024-08-05 18:21:15.104] [net] [error] sync error: (connection: Operation was aborted by an application callback, parser: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal [while parsing error]: )
[2024-08-05 23:43:43.314] [crypto]
and nothing after that) after Nheko is closed, that line is completed along with addition of other logs.--debug
did not yield any useful information that would help in pinning this issue to its root cause.Operating system is EndeavourOS (basically Arch Linux) and Nheko is installed from official repository.
Expected behavior
Nheko using regular amount of resources as needed for tasks its performing.
Screenshots
Version
0.12.0
Operating system
Linux
Installation method
Some repository (AUR, homebrew, distribution repository, PPA, etc)
Qt version
No response
C++ compiler
No response
Desktop Environment
KDE Plasma
Did you use profiles?
Relevant log output
(logs ommited for privacy reasons, on request I'm willing to process them to redact private information)
Backtrace
No response
The text was updated successfully, but these errors were encountered: