-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Three finger touchpad swipe crashes Hyprland #9262
Comments
how is hyprlandCrashReport42114.txt dated but the syslog.log is I think you should check if this still happens on the newest version of Hyprland. |
I'm not sure bu I think this is the release date/time, not the file. On the filesystem they were two files, 3 minutes apart. I was surprised to find another one but since they were a few minutes apart I included them both.
Am I wrong that 0.46.2 is the current release? I tried running the main branch but it apparently has more bugs and I don't want to run it for the time being. EDIT: Oh, I'm wrong! I'll repackage it and try to compile ti. Thanks for pointing it out. |
It happens on 0.47.1 as well. I updated system information and log files. |
Can you get a debug stacktrace? I got some on my Nix machine but they don't include complete debugging info from hyprutils and aquamarine. |
isn't this just that
should be before Hyprland/src/render/decorations/CHyprDropShadowDecoration.cpp Lines 147 to 148 in ddf180f
so it get all the way to Hyprland/src/render/OpenGL.cpp Line 2252 in ddf180f
if the monitor scale is 0.33 or less and the shadow size is 1 then it rounds 0? but then again i dont know why would this not happen more often |
I've tried moving the scaling before the check, but the crash still occurs. |
Does that mean I have to recompile with debug symbols? I'm not compilers experts, I don't understand compiler flags et.c. Also in using Gentoo's portage which takes care of all the compiling. I need specific instructions how to enable debug symbols for every specific project that needs to be recompiled. At least what flags I have to pass to the compiler/ build system. I'll ask the gentoo experts to then help me put them in the appropriate places so that portage compiles the packages with debug symbols. Best Regards, |
You clone the repo with |
I'll try but this is not how things work in Gentoo and I don't want to contaminate my system with manual installations. Also AFAIR it's not Gnu make but meson. |
You don't need to install the binary, just run it from the build directory. Also you can use either meson or cmake (with make). |
I can't run it from the build directly. It needs to use hyprutils and aquamarine also compiled with debug symbols as per fufexan's request. I'll see what I can do to package them that way so I don't need to tinker with things I don't understand. But that will happen next week. |
gdb.txt attached. Please tell me if I've done a good job. p.s. it's worth mentioning in the instructions the the config file changes from hyrpland.conf to hyprlandd.conf. It took me a while to realize it didn't overwrite my custom config, after I almost got a heart attack :) |
I think so, yes. Thanks. @vaxerski mind looking at this? |
what fucking rev is that? line numbers dont match git |
looks like 0.47.2, I don't see how this is possible. The assert complains that box's w / h was < 0, but in the func that is obviously invoked before, we return if w / h is not > 1. In the stacktace, there is no data about the box. Can you do |
I think it was 0.47.1 before I realized there was 0.47.2. Then I went and found other libraries were updated too. For one it was hyprutils which was 0.4.0 at the time I took that trace. Aquamarine was 0.7.1 at that time. Please understand I have other things to do as well and this has been too much for me already. EDIT: just tested on 0.47.2 which I'm using right now and broke the same way. It's worth mentioning it crashed sddm as well, which is setup to use Hyprland as the composer. |
Honestly, I don't know what you're talking about. I guess those are commands you want me to run in the gdb shell. Do I still need the packages compiled with debug symbols and reproduce the issue or I can use the coredump already available? Is it still available if I didn't remove it explicitly? I'm already on 0.47.2 and if I have to recompile again, I'd rather try to do it on the main branch but that'll take time. |
yes, debug and these are gdb commands. Git is preferable |
Issue updated with relevant system information, gdb.txt and hyprlandCrashReport17272.txt. |
wtf how did nan get there lmao thats the source |
patch.txt try this |
System/Version info
|
can you run hyprland with asan, this doesnt look right to me |
I could but I don't know what asan is. Could you point me to it give me instructions? |
then
if anything goes wrong, hyprland should immediately close and you'll get a file called |
asan.log.16913.log I'm not sure why 2 files, they are two minutes apart, 16913 being the later one. |
hm, neither is related to this issue tho did hyprland close when you did the gesture? |
Yes. I'll redo the procedure tomorrow morning when I'm fresh, just to be sure I made everything right. |
For some reason no asan.log files are generated and I struggle to remember what I did last night to get two of them. I also tried with https://wiki.hyprland.org/Crashes-and-Bugs/#building-the-wayland-stack-with-asan and neither method yielded results. I searched my whole home directory with find and it didn't find any of those files. I remember seeing the logs telling me to set debug:disable_logs to false, I did it both in hyprland and hyprlandd.conf. I'll try again later and see if I can figure out what I did wrong. But I also think the issue has changed a bit. When I produced the fist stacktraces I remember it was enough to just swipe on an empty desktop and now that has gone, both with and without the patch applied. I need to open a window and try to swipe over it. |
you dont need to enable hyprland logging for those. However, as long as hyprland crashes, it should provide a log. Check the cwd, or possibly ~. Make sure you're launching the correct binary also keep in mind that without the |
I can't make it write a log file for the sake of my life. This is how I did it last night. This is from my .bash_history: I remember being unable to obtain asan.log with the commands you gave me and then I decided to consult the wiki, so I used I'm trying to to the same but it doesn't work. |
the number at the end should be the pid of hyprland from that session. If you can't get it to write a log file, you can try redirecting all stdout and stderr to a file, and not setting the I might try it myself tomorrow on a laptop if you can't get it. |
Well, I can't because after Hyprland crashes there's nothing interesting on the console. In fact I see that warning about logs being disabled by default that I can catch a glimpse of before Hyprland starts. The problem here is I don't have enough knowledge to diagnose what I'm doing wrong and I'm shooting in the dark. |
After I gave up on this issue, I reverted back to 0.47.2. Today I spontaneously decided to swipe on an empty workspace and nothing happened. Then I swiped on a window and it worked. I recompiled from main with debug symbols what not and it again didn't crash. Then I removed the patch and recompiled again and again nothing happened. Reverted back to 0.47.2 without the patch and it still works. Gentoo is a rolling distribution and updates happen all the time, but reflecting on the updates, I don't see anything substantial from the hyprland ecosystem I updated. The only suspicious update is libinput. I'm closing this issue and apologize for the time it might have wasted. The only thing I noticed on the main branch is it doesn't display anything on my integrated display anymore, although the mouse seem to go there but only on the external monitor. But that's another issue. Should I report it or it's already known? |
Already reported ? *
Regression?
I don't know, I started using Hyprland only recently
System Info and Hyprland Version
System/Version info
Description
crashes Hyprland when you try to actually swipe.
How to reproduce
Set the above configuration and try to swipe.
Attach not paste
Checklist of files to include below
hyprctl systeminfo -c
(always include)Additional info & File uploads
gdb.txt
hyprlandCrashReport17272.txt
The text was updated successfully, but these errors were encountered: