Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

100% CPU use on one core, curl version 8.10.1 #1837

Open
1 task
n-l-s opened this issue Nov 2, 2024 · 3 comments
Open
1 task

100% CPU use on one core, curl version 8.10.1 #1837

n-l-s opened this issue Nov 2, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@n-l-s
Copy link

n-l-s commented Nov 2, 2024

Describe the bug

#1789

Hello, I have been looking for a solution to a problem I have seen described here several times already. The issue for those users in the past seemed to be the curl version. I am on CachyOS with Hyprland and KDE Plasma installed. I am also getting the 100% CPU use on one core.

To be more specific Nheko at first loads as normal, but the moment i type in any text, the CPU usage on one core maxes out and stays maxed out.

I am getting a similar strace to other users who were having this problem. The flatpak does not have this issue, but I would prefer to run the native application.

To Reproduce

  1. Open nheko
  2. observe CPU use and notice it does not max out any cores.
  3. type any text in any chat field
  4. CPU use on one core 100%

What happened?

When I open Nheko on CachyOS in Hyprland or KDE Plasma I get 100% CPU usage on one core.

Expected behavior

Nheko runs normally without maxing out a core most of the time

Screenshots

image Strace

image curl version

Version

nheko 0.12.0-7.1

Operating system

Linux

Installation method

Some repository (AUR, homebrew, distribution repository, PPA, etc)

Qt version

No response

C++ compiler

No response

Desktop Environment

Hyprland or KDE plasma

Did you use profiles?

  • Profiles used?

Relevant log output

No response

Backtrace

No response

@n-l-s n-l-s added the bug Something isn't working label Nov 2, 2024
@deepbluev7
Copy link
Member

Does your server use http3? In that case the next release fixes that. You can manually disable http3 in your server, use the git version or try to trick Nheko by removing the alt svc cache from the cache directory before starting Nheko.

@n-l-s
Copy link
Author

n-l-s commented Nov 10, 2024

I can't say for sure if the server is using HTTP3 or not, however the git version installed from AUR and deleting the alt svc cache did not help. I also tried on Nobara 40 and get the same 100% cpu use on one core bug on this PC.

I am looking into how to disable http3 on the server, but it doesn't even appear to be enabled.

@deepbluev7
Copy link
Member

Might be a different issue then and unrelated to curl, can you get a flame graph from a debug build easily?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants