-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
mesa: 21.0.3 -> 21.1.1 #119558
mesa: 21.0.3 -> 21.1.1 #119558
Conversation
Tried to launch Sway with this (to see if there are similar issues as for #120325) and it failed:
Something's really broken :o |
|
Yeah, I wish... :) Unfortunately the |
I did briefly re-test it with RC3 and the driver name does indeed change every time, e.g.:
So yeah, unfortunately something's seriously broken (on a VT/tty the output is even more scary). Likely a memory corruption bug that ends up as random garbage as the driver name. |
@GrahamcOfBorg test sway |
21.1.1 should be available in two weeks, but so far the issues don't make it sound like this will make it to NixOS 21.05. |
From my perspective it doesn't seem like a good idea for NixOS 21.05. Interestingly the VM test for Sway (https://github.com/NixOS/nixpkgs/pull/119558/checks?check_run_id=2519144774) did succeed and reports:
So I gave it another go on my system and If someone in this thread could test this update as well that would be helpful (doesn't have to be Sway - it'd be useful to see if other Wayland/X11 software is affected by this as well). I'm using something like Edit:
I haven't really payed attention to the DRI part before but now I'm actually a bit confused why DRI is even used here. I thought the Direct Rendering Infrastructure (DRI) would only be relevant for X11 and that Wayland would use EGL directly: But I guess EGL and DRI are just not that clearly separated for function names, messages, etc. (possibly due to function overlap but I'm not a graphics expert by any means so this is beyond me anyway). |
Huh, "interesting", it seems like I guess the problems come from
|
Note: The update to Mesa 21.0.2 was reverted (25ae1fd) because it caused major issues with Sway (segfault on startup [0]). This is still the case and might affect all packages that directly depend on "mesa" (for libgbm or libglapi) but it only causes issues when the package depends on a "mesa" version that differs from "mesa.drivers" used for "/run/opengl-driver/". I've noticed this while testing Mesa updates with the NixOS option "hardware.opengl.package" (as usual) instead of rebuilding my whole system (which would work). Unfortunately this can/will likely also cause issues when mixing different channels, using Flakes/Overlays, etc. The cause of this should be similar to [1] ("mesa" updates now cause the same issues that "glibc" updates already do, maybe triggered by certain Mesa changes) and some additional discussions is in [2],[3]. Note: Don't backport this to NixOS 21.05, at least not without careful consideration. [0]: NixOS#118753 (comment) [1]: NixOS#95808 [2]: NixOS#120325 [3]: NixOS#119558
@vcunat are 1001-2500 rebuilds on Darwin and Linux still fine for @ofborg test sway |
I think the rebuild amount is OK-ish to push directly to master, though it's a bit more than I originally thought (maybe some of the later changes). And we're in period where I expect to have higher Hydra load continuously... perhaps staging-next as a compromise? |
@vcunat sounds good, that's also what I thought, thanks for the reply! If I have time for it I'll try to investigate if we can avoid some of the rebuilds (AFAIK the build capacity on Darwin is more limited and it's also strange that there are more rebuilds on Darwin than on Linux - not sure if the Mesa dependencies are even needed on Darwin). $ ./maintainers/scripts/rebuild-amount.sh HEAD~
Estimating rebuild amount by counting changed Hydra jobs.
1471 x86_64-darwin
966 x86_64-linux |
Note: This update likely causes some issues when running an application that has a direct dependency on Mesa (e.g. Sway and XWayland) and was compiled against a different Nixpkgs revision. See 7106fca for more details regarding that issue.
darwin is because |
I don't dare trying to improve that. And |
This still can't be merged as-is (to staging-next) due to containing extra commits from staging. |
Oh boy, I really messed that one up... :o First I forgot to specify Anyway, sorry about that, it's fixed now. |
Note: The update to Mesa 21.0.2 was reverted (25ae1fd) because it caused major issues with Sway (segfault on startup [0]). This is still the case and might affect all packages that directly depend on "mesa" (for libgbm or libglapi) but it only causes issues when the package depends on a "mesa" version that differs from "mesa.drivers" used for "/run/opengl-driver/". I've noticed this while testing Mesa updates with the NixOS option "hardware.opengl.package" (as usual) instead of rebuilding my whole system (which would work). Unfortunately this can/will likely also cause issues when mixing different channels, using Flakes/Overlays, etc. The cause of this should be similar to [1] ("mesa" updates now cause the same issues that "glibc" updates already do, maybe triggered by certain Mesa changes) and some additional discussions is in [2],[3]. Note: Don't backport this to NixOS 21.05, at least not without careful consideration. [0]: NixOS#118753 (comment) [1]: NixOS#95808 [2]: NixOS#120325 [3]: NixOS#119558
Note: The update to Mesa 21.0.2 was reverted (25ae1fd) because it caused major issues with Sway (segfault on startup [0]). This is still the case and might affect all packages that directly depend on "mesa" (for libgbm or libglapi) but it only causes issues when the package depends on a "mesa" version that differs from "mesa.drivers" used for "/run/opengl-driver/". I've noticed this while testing Mesa updates with the NixOS option "hardware.opengl.package" (as usual) instead of rebuilding my whole system (which would work). Unfortunately this can/will likely also cause issues when mixing different channels, using Flakes/Overlays, etc. The cause of this should be similar to [1] ("mesa" updates now cause the same issues that "glibc" updates already do, maybe triggered by certain Mesa changes) and some additional discussions is in [2],[3]. Note: Don't backport this to NixOS 21.05, at least not without careful consideration. [0]: #118753 (comment) [1]: #95808 [2]: #120325 [3]: #119558
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)