-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Segfault after creating the gbm allocator #88
Comments
I just tested on latest release, and it also occurs there 👍 |
das da wong repo |
Mb |
I got bisect to work. The first bad commit is hyprwm/Hyprland@5b13751 |
It would appear that the first bad Aquamarine commit is b9ab839. Im not sure how much sense this makes. |
Nevermind, something else is the issue |
Wouldve been very weird if 3 lines of added code where the issue |
After manually modifying the flake.lock I have the numb feeling that the culprit is wayland-scanner |
i have this issue too system information: https://0x0.st/XERx.txt |
Can you reproduce that the first bad commit I bisected crashes, and the one before works just fine? |
@a-usr I assume that you tested each Aquamarine version by substituting URL in Hyprland's Flake and building Hyprland from source. If so, on which version of Hyprland did you do all the testing? 0.43.0? |
Assuming that we actually have the same issue, the commit prior to the first bad one I mentioned in my message |
sure! i can't actually do that right now because i have school for the next 8 hours but i'll start bisecting afterwards |
Hmm, for me, also hyprwm/Hyprland@4af9410 crashes. I attached the crash report, but it looks similar. |
I have done a Git bisection between v0.41.2 (good) and v0.42.0 (bad), and the first bad commit was hyprwm/Hyprland@016da23. I attach the stdout+stderr of Hyprland and the crash report. |
Thats a completely different error, It says it couldnt create the backend. Thats a fatal error, thus the crash. |
ah! horrid! when using an older commit, i now get the same error that @jakubkaczor is getting |
I think I might be having the same or a related issue, or I at least can't find anything similar on the issue trackers so far. While on NixOS starting Hyprland gets me a SEGV on both 0.43 and 0.44, with the last things in the log being Crash Report: |
updating my mesa fixed this issue for me!!! |
updating to what version? |
Sure, I suspected they may be different. I am convinced there are multiple “zeros” with different causes on the bisected interval. My previous, closed issue1 was reported with the v0.44.0 crash report. I didn't manage to make a bisection back then, but since I finally did, I report all the results here.
Your good (4af9410d) and bad (5b137514) indeed give different results than my bad (016da23). I have already given the report for your good. Furthermore, I attach the crash report for your bad one below. Footnotes
|
Alright, I personally fixed the issue by migrating from stable nixpkgs to unstable. I am pretty confident that the issue is a version missmatch between hyprland's mesa, and the system mesa. @jakubkaczor I suspect your mesa installation isnt managed through nix? could you try upgrading you mesa version using pacman and check wether hyprland versions past the first bad commit still crash with mesa mentioned in the stacktrace? |
We have found the solution. This concerns people using Nix or Home Manager on distributions other than NixOS. On such setup, there are additional steps one has to make in order to run an OpenGL program1. In my opinion, the simplest way to do it is to use nixGL by invoking What happened in my case was that I used nixGL using the version of nixpkgs I use by default in my Home Manager Flake, that is, nixpkgs 24.05. I combined it with Hyprland versions using nixpkgs-unstable, what resulted in crashes. The Arch Linux version of Mesa doesn't appear to be meaningful. I tested after upgrading to 1:24.2.4-1 and after downgrading to 1:24.0.7-33. Thank you, @a-usr. “I suspect your mesa installation isnt managed through nix?” hinted me to the cause. Footnotes
|
Alright, @Bestest-Coder did you fix everything on your end too? Otherwise I'll close this issue, as this isnt even an actual issue with hyprland or aquamarine, but a simple version conflict |
I have my NixOS system set up through a flake, and change Hyprland versions by simply setting |
Even on Nix, “OpenGL must break purity due to the need for hardware-specific linkage”1. I am not sure why this isn't dealt with similarly to system architecture2. Perhaps due to the variability and the size of the set of drivers. Imagine building a package for each graphics card series using different drivers. With things as they are, such pure solution appears impractical. Footnotes
|
No. Im not sure about the details, but what I can tell you confidently is that the mesa version used by the hyprland derivation and the mesa version used by your system are conflicting with each other. Maybe its some ABI thing, maybe some functions got replaced, but either way they dont work with each other. The only way to solve that is to either change hyprland's mesa version, or your system's. I tried the former already, and that didnt work for some reason (hyprland wouldnt build). So I did the latter and now it works (kind of).
You mean you get different commits? thats odd. But hey, as long as it works! |
Alright turns out I had something weird going on with my greetd that caused it to always use the older version of Hyprland I had installed, so it still doesn't work on anything newer than 41.2. After fixing that, and settings
If this is completely unrelated to the segfault you can close this and I'll create a new issue |
Just curious, can you send the full crash report?
|
Sure, I haven't gotten the chance to look into the new errors coming up and tinker with my config. |
Thats rather odd. Did you override the nixpkgs input for hyprland? It seems it cant load / access the opengl lib... |
Alright turns out I was setting |
I recommend you try changing your entire system to use unstable if possible, that might fix your issues |
Already reported ? *
Regression?
Yes
System Info and Version
System/Version info
Description
On startup, Upstream (58669fef) hyprland pretty much immediately crashes with sigabrt. Looking at the crash report this happens just after hyprland reports having sucessfully created the gbm allocator (I kinda doubt it was actually sucessful but whatever) (see attached report). This is also reproducible with a empty config:
I tried to bisect, but hyprland just refused to build on a local clone. Entering the nix shell with or without nixpkgs overriden to the system version yielded the following:
(@fufexan This is probably your area, help would be appreciated)
How to reproduce
Crash reports, logs, images, videos
funky_report.txt
The text was updated successfully, but these errors were encountered: