We have a test in openQA which starts out by trying to set the wallpaper to solid black (for more screenshot matching consistency). It goes to the wallpaper settings, changes from "Image" to "Plain Color", then clicks on the little color square that should launch the color picker. Since Fedora-Rawhide-20240307.n.0 , doing this seems to consistently cause plasmashell to crash. I have backtraced the crash, and it's a bunch of LLVM stuff I can't make head or tail of. Attaching the backtrace.
Created attachment 2020992 [details] backtrace of the crash
Caused by mesa-24.0.2 Since it works in mesa-24.0.0 it should be easy to git blame.
Unfortunately it's not a change in mesa, but rather mesa-24.0.2 was the first built against LLVM18. Mesa @ git main compiled against LLVM18 is also broken
I believe this patch to mesa should fix the issue: diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c index cd2108f3a08..1345d85b224 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_init.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c @@ -609,7 +609,11 @@ gallivm_compile_module(struct gallivm_state *gallivm) LLVMRunPasses(gallivm->module, passes, LLVMGetExecutionEngineTargetMachine(gallivm->engine), opts); if (!(gallivm_perf & GALLIVM_PERF_NO_OPT)) +#if LLVM_VERSION_MAJOR >= 18 + strcpy(passes, "sroa,early-cse,simplifycfg,reassociate,mem2reg,instsimplify,instcombine<no-verify-fixpoint>"); +#else strcpy(passes, "sroa,early-cse,simplifycfg,reassociate,mem2reg,instsimplify,instcombine"); +#endif else strcpy(passes, "mem2reg");
I went ahead and submitted a mesa PR with that change here: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28101 I hope someone else can verify that this indeed resolves the problem, as I'm not familiar with how to test mesa changes.
Yes, that fixes the issue; thank you.
Thanks for confirming! I've opened a PR with this patch against dist-git here: https://src.fedoraproject.org/rpms/mesa/pull-request/46
FEDORA-2024-f0e8a6a5d8 (mesa-24.0.3-1.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2024-f0e8a6a5d8
FEDORA-2024-f0e8a6a5d8 (mesa-24.0.3-1.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report.