Open TwilightTechie opened 3 months ago
does this happen on 0.41.2?
you have logging disabled, the logs are empty. see debug:disable_logs
can you get a trace log? https://wiki.hyprland.org/Crashes-and-Bugs/#obtaining-a-trace-log
Hi, I am pretty new here so asking:
So you want me to add HYPRLAND_TRACE=1 AQ_TRACE=1 in ~/.config/hypr/hyprland.conf then wait for 30 sec - 1 min (as my issue is not something to be reproduce and it is happening now also) then share the generated logs.Btw in which location this logs will get generated?
So you want me to add HYPRLAND_TRACE=1 AQ_TRACE=1
No, launch hyprland with HYPRLAND_TRACE=1 AQ_TRACE=1 Hyprland
in a tty
Btw in which location this logs will get generated?
https://wiki.hyprland.org/Crashes-and-Bugs/#getting-the-log
Make sure debug:disable_logs
is false
in your config
Is this you were looking for, I don't see much log so not sure, can you please check.
❯ cat $XDG_RUNTIME_DIR/hypr/$(ls -t $XDG_RUNTIME_DIR/hypr/ | head -n 2 | tail -n 1)/hyprland.log
[LOG] Instance Signature: 9a09eac79b85c846e3a865a9078a3f8ff65a9259_1723750879_1891595009
[LOG] Runtime directory: /run/user/1000/hypr/9a09eac79b85c846e3a865a9078a3f8ff65a9259_1723750879_1891595009
[LOG] Hyprland PID: 913
[LOG] ===== SYSTEM INFO: =====
[LOG] System name: Linux
[LOG] Node name: archlinux
[LOG] Release: 6.10.4-arch2-1
[LOG] Version: #1 SMP PREEMPT_DYNAMIC Sun, 11 Aug 2024 16:19:06 +0000
[LOG] GPU information:
0000:00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] [8086:9a49] (rev 01) (prog-if 00 [VGA controller])
[LOG] os-release:
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo
[LOG] ========================
[INFO] If you are crashing, or encounter any bugs, please consult https://wiki.hyprland.org/Crashes-and-Bugs/
[LOG]
Current splash: We're all living in America, America, America.
[LOG] Old rlimit: soft -> 1024, hard -> 524288
[LOG] New rlimit: soft -> 524288, hard -> 524288
[LOG] Creating the EventLoopManager!
[LOG] Creating the HookSystem!
[LOG] Creating the KeybindManager!
[LOG] Creating the AnimationManager!
[LOG] Created a bezier curve, baked 255 points, mem usage: 4.08kB, time to bake: 16.55µs. Estimated average calc time: 0.04µs.
[LOG] Creating the ConfigManager!
[LOG] Created a bezier curve, baked 255 points, mem usage: 4.08kB, time to bake: 7.63µs. Estimated average calc time: 0.02µs.
[LOG] Using config: /home/hardway/.config/hypr/hyprland.conf
[INFO] !!!!HEY YOU, YES YOU!!!!: further logs to stdout / logfile are disabled by default. BEFORE SENDING THIS LOG, ENABLE THEM. Use debug:disable_logs = false to do so: https://wiki.hyprland.org/Configuring/Variables/#debug
you didnt enable logging
Hi, logs were huge so uploaded in google drive as github only allows till 25 MB. https://drive.google.com/drive/folders/1KMOkLyQnGUeHML-XRJmPKGjVY11P0LCn?usp=sharing
you didnt enable logging
Now it is done, check the google drive link.
hm, can you try on aquamarine-git and hyprland-git?
If that doesn't fix it, try to get some DRM logs. See the sway wiki for instructions.
https://github.com/swaywm/wlroots/wiki/DRM-Debugging
Judging from your logs, keeping Hyprland open for 5s should be enough.
Here is the DRM log dmesg.log
hm, can you try on aquamarine-git and hyprland-git?
I didn't get you here.
There are 2 packages in the AUR aquamarine-git
and hyprland-git
these have the latest available code.
Can you install these packages and try again.
oh I see the bug already, huh, didn't know that could happen.
I've pushed a patch to aquamarine. Pull latest aquamarine-git and try again :)
Awesome, would love you to know how you found the bug and what it was about..... Is it related to DRM?
well we dont know if that was the only problem or whether it's truly fixed, only you can test that, but the drm logs the error quite clearly:
The damage clip box is invalid
I've pushed a patch to aquamarine. Pull latest aquamarine-git and try again :)
Again, I am a noob.... I need steps on how to do so because I have installed it from package manager not through git. So I don't know the build process.
you're on arch, and the package is in the AUR. Use your favorite AUR helper (yay/paru) to install the package aquamarine-git
I dont think it is taking your patch.
` yay -S aquamarine-git AUR Explicit (1): aquamarine-git-0.1.0_r147.g7a84686-1 AUR Dependency (1): hyprutils-git-0.1.1.r3.g0693f939-1 AUR Make Dependency (1): hyprwayland-scanner-git-0.1.0.r1.geb11420c-1 Sync Make Dependency (1): cmake-3.30.2-1 :: PKGBUILD up to date, skipping download: aquamarine-git :: PKGBUILD up to date, skipping download: hyprwayland-scanner-git :: PKGBUILD up to date, skipping download: hyprutils-git 3 aquamarine-git (Build Files Exist) 2 hyprwayland-scanner-git (Build Files Exist) 1 hyprutils-git (Build Files Exist) ==> Packages to cleanBuild? ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4) ==> A :: Deleting (1/3): /home/hardway/.cache/yay/aquamarine-git HEAD is now at 3300d7a aquamarine-git: Update SRCINFO :: Deleting (2/3): /home/hardway/.cache/yay/hyprwayland-scanner-git HEAD is now at 8b43aca changed desc :: Deleting (3/3): /home/hardway/.cache/yay/hyprutils-git HEAD is now at ac76c29 slightly updated provides 3 aquamarine-git (Build Files Exist) 2 hyprwayland-scanner-git (Build Files Exist) 1 hyprutils-git (Build Files Exist) ==> Diffs to show? ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4) ==> A
:: Proceed with install? [Y/n] `
@TwilightTechie just press Y
looking for conflicting packages...
:: aquamarine-git-0.3.1_r178.ge947af7-1 and aquamarine-0.3.1-1 are in conflict. Remove aquamarine? [y/N] Y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing aquamarine breaks dependency 'libaquamarine.so=2-64' required by hyprland
-> error installing: [/home/hardway/.cache/yay/aquamarine-git/aquamarine-git-0.3.1_r178.ge947af7-1-any.pkg.tar.zst /home/hardway/.cache/yay/aquamarine-git/aquamarine-git-debug-0.3.1_r178.ge947af7-1-any.pkg.tar.zst] - exit status 1
Should I press N here :)
yay -S hyprland-git aquamarine-git
replaces both
Thanks, easy way
Again it broke.... First at here:
:: hyprcursor-git-0.1.9.r11.g912d5602-1 and hyprcursor-0.1.9-1 are in conflict. Remove hyprcursor? [y/N] Y
:: aquamarine-git-0.3.1_r178.ge947af7-1 and aquamarine-0.3.1-1 are in conflict. Remove aquamarine? [y/N] Y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing aquamarine breaks dependency 'libaquamarine.so=2-64' required by hyprland
-> Failed to install layer, rolling up to next layer.error:error installing: [/home/hardway/.cache/yay/hyprcursor-git/hyprcursor-git-0.1.9.r11.g912d5602-1-any.pkg.tar.zst /home/hardway/.cache/yay/hyprcursor-git/hyprcursor-git-debug-0.1.9.r11.g912d5602-1-any.pkg.tar.zst /home/hardway/.cache/yay/aquamarine-git/aquamarine-git-0.3.1_r178.ge947af7-1-any.pkg.tar.zst /home/hardway/.cache/yay/aquamarine-git/aquamarine-git-debug-0.3.1_r178.ge947af7-1-any.pkg.tar.zst] - exit status 1
==> Making package: hyprcursor-git 0.1.9.r11.g912d5602-1 (Fri 16 Aug 2024 02:33:15 AM IST)
Then here
==> Making package: hyprland-git 0.42.0.r1.83a334f9-1 (Fri 16 Aug 2024 02:33:22 AM IST)
==> Checking runtime dependencies...
==> Missing dependencies:
-> hyprcursor-git
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
-> error making: hyprland-git-exit status 8
loading packages...
resolving dependencies...
looking for conflicting packages...
:: hyprcursor-git-0.1.9.r11.g912d5602-1 and hyprcursor-0.1.9-1 are in conflict. Remove hyprcursor? [y/N] Y
:: aquamarine-git-0.3.1_r178.ge947af7-1 and aquamarine-0.3.1-1 are in conflict. Remove aquamarine? [y/N] Y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing aquamarine breaks dependency 'libaquamarine.so=2-64' required by hyprland
-> error installing: [/home/hardway/.cache/yay/hyprcursor-git/hyprcursor-git-0.1.9.r11.g912d5602-1-any.pkg.tar.zst /home/hardway/.cache/yay/hyprcursor-git/hyprcursor-git-debug-0.1.9.r11.g912d5602-1-any.pkg.tar.zst /home/hardway/.cache/yay/aquamarine-git/aquamarine-git-0.3.1_r178.ge947af7-1-any.pkg.tar.zst /home/hardway/.cache/yay/aquamarine-git/aquamarine-git-debug-0.3.1_r178.ge947af7-1-any.pkg.tar.zst] - exit status 1
error installing: [/home/hardway/.cache/yay/hyprcursor-git/hyprcursor-git-0.1.9.r11.g912d5602-1-any.pkg.tar.zst /home/hardway/.cache/yay/hyprcursor-git/hyprcursor-git-debug-0.1.9.r11.g912d5602-1-any.pkg.tar.zst /home/hardway/.cache/yay/aquamarine-git/aquamarine-git-0.3.1_r178.ge947af7-1-any.pkg.tar.zst /home/hardway/.cache/yay/aquamarine-git/aquamarine-git-debug-0.3.1_r178.ge947af7-1-any.pkg.tar.zst] - exit status 1
remove hyprland and aquamarine first
yay -R hyprland aquamarine
then install git
Using hyprland-git and aquamarine-git seems like doesn't fix this issue. Also I notice that using the -git version Hyprland eat more vram than before.
$ hyprctl version
Hyprland, built from branch main at commit 12d9901472c6f9128fa8b16c25b3a879d1859e60 (protocols: refactor protocol logging to a macro (7324)).
Date: Fri Aug 16 00:16:18 2024
Tag: v0.42.0-26-g12d99014, commits: 5095
flags: (if any)
$ yay -Qm hyprland aquamarine
hyprland-git 0.42.0.r26.12d99014-1
aquamarine-git 0.3.1_r178.ge947af7-1
maybe your issue is different. Can you post a trace log?
Yes after multiple tests, I think this is an different issue, I will open a new issue instead.
Currently using hyprland-git and aquamarine-git and CPU usage is around 9%. Is that normal @vaxerski ?
I checked the DRM logs and it seems to have no error now... dmesg2.log
same here. logs show
[ERR] [EGL] Command eglCreateSyncKHR errored out with EGL_BAD_ATTRIBUTE (0x12292): _eglCreateSync
[ERR] eglCreateSyncKHR failed
[ERR] [EGL] Command eglCreateSyncKHR errored out with EGL_BAD_ATTRIBUTE (0x12292): _eglCreateSync
[ERR] eglCreateSyncKHR failed
[ERR] [EGL] Command eglCreateSyncKHR errored out with EGL_BAD_ATTRIBUTE (0x12292): _eglCreateSync
[ERR] eglCreateSyncKHR failed
[ERR] [EGL] Command eglCreateSyncKHR errored out with EGL_BAD_ATTRIBUTE (0x12292): _eglCreateSync
[ERR] eglCreateSyncKHR failed
[ERR] [EGL] Command eglCreateSyncKHR errored out with EGL_BAD_ATTRIBUTE (0x12292): _eglCreateSync
[ERR] eglCreateSyncKHR failed
[ERR] [EGL] Command eglCreateSyncKHR errored out with EGL_BAD_ATTRIBUTE (0x12292): _eglCreateSync
[ERR] eglCreateSyncKHR failed
[ERR] [EGL] Command eglCreateSyncKHR errored out with EGL_BAD_ATTRIBUTE (0x12292): _eglCreateSync
[ERR] eglCreateSyncKHR failed
[ERR] [EGL] Command eglCreateSyncKHR errored out with EGL_BAD_ATTRIBUTE (0x12292): _eglCreateSync
[ERR] eglCreateSyncKHR failed
[ERR] [EGL] Command eglCreateSyncKHR errored out with EGL_BAD_ATTRIBUTE (0x12292): _eglCreateSync
[ERR] eglCreateSyncKHR failed
[ERR] [EGL] Command eglCreateSyncKHR errored out with EGL_BAD_ATTRIBUTE (0x12292): _eglCreateSync
[ERR] eglCreateSyncKHR failed
revert to 0.41.2-3, then peace fell upon the earth again.
sudo -E pacman -U https://archive.archlinux.org/packages/h/hyprland/hyprland-0.41.2-3-x86_64.pkg.tar.zst
great, instead of helping fix the bug, stay on legacy forever. Great attitude.
@TwilightTechie sounds normal if you have something constantly changing on-screen, border animations tend to do that. Is it 9% also on an empty workspace?
I would say a normal workload like having multiple terminals, firefox, connected to external monitors.
what about the second part of my question?
Hi @vaxerski, I'm wandering on the bug list and occasionally take notice of cpu usage(p.s. I do not meet this severe bug). My cpu is 12th Gen Intel(R) Core(TM) i5-12500H and It seems the 0.42 version slightly increase the cpu usage than 0.41.x(I'm not very sure, but it should be). I compared the blank workspace and normal working load. If both of two monitor is on blank workspace, my cpu usage is about 1%(use waybar's cpu module); when one monitor open a blank terminal(zsh in terminator), it increased 1% to 2%; when keep the blank terminal on and let other monitor open firefox(on this git page and typing the comment), the cpu usage up to 3%(I am a layman of graphic, but it is counter-intuitive that a blank terminal and a firefox web page use same cpu resource for rendering ).
if you can reliably differentiate between the two, please bisect :)
Hi
I have a intel i7 4770 and using it to run my session also i have a nvidia RTX 3060 which i use to offload rendering ( in games for example ) .
I had the same bug as above ( high cpu usage and everything was flickering on movement, my terminal was unusuable had to wait 3-4 seconds to read anything ). I reverted back to 0.41 for now, also the -git packages didnt helped ( although the CPU load went a little bit down from avg 90% to avg 60% )
I have a question: is it normal to have 20%~25% CPU usage for moving cursor around?
it is about 30% cpu only single process with version 0.41.2-3. I only watched 15% cpu previously.
with 0.42, it is about 50%cpu eight processes (my cpu has 8 hardware threads), and cause that desktop almost can not response, even dmenu with short keycut.
I have a question: is it normal to have 20%~25% CPU usage for moving cursor around?
with software cursors it sounds plausible. With hardware cursors, it's suspiciously high
with software cursors it sounds plausible. With hardware cursors, it's suspiciously high
I've tried the below options:
cursor {
no_hardware_cursors = false
allow_dumb_copy = true
}
But the CPU usage is still keep around 20%-25%. Do I mistaken on something?
should work. Dunno then
from 016da234 ( Core: Move to aquamarine ), it starts to show big delay.
it seems latest branch have not used any gpu. for cpu only, I think 50% cpu load is rational.
@vaxerski same/similar issue here - laggy, high cpu usage, running on latest git for both hyprland and aquamarine, trace log here: hyprland.log
in hyprland 0.43.0-1, it's only 10%cpu, 1%gpu, 173MB host memory, 305MB gpu memory. for me, it's normal and same performance like before.
The dual monitors CPU is still high.
@Robitx disable explicit sync
@Robitx disable explicit sync
Thanks.
while profiling on nvidia moving the cursor it spends like 70% inside the driver doing shed_yield, i remember back in the day there was some workarounds or trickery one could try. setting __GL_YIELD=USLEEP , and yeah cpu usage goes way down. but as this ancient https://forums.developer.nvidia.com/t/gl-yield-and-performance-issues/27736 post mentions it might kill fps, over here i dropped from 70% cpu usage just moving cursor down to 10% or so instead.
Regression?
No
System Info and Version
My hyprland config: https://pastebin.com/6Th64wuT
Description
CPU is constantly consuming more than 70% of CPU sometimes even 80%.
Here is my spec:
I am using this config:
https://github.com/prasanthrangan/hyprdots
CPU detail spec: ❯ inxi -C
Detail GPU Spec:
I did some analysis based on htop, perf tool and generated a flame graph.
perf command used:
Here is the gecko report and flamegraph for analysis.
How to reproduce
Nothing as such, it is on simple workload
Crash reports, logs, images, videos
hyprland.log hyprland.log