Wesnoth crashes on plasma desktop (Fedora 40)

On Plasma desktop – but not Gnome – the game Battle of Wesnoth (wesnoth) crashes every time you build the first unit in a local game, sometimes even sooner.

I tried to follow this guide to get some debug info but nothing showed up.

To reproduce:

  • sudo dnf install wesnoth
  • start wesnoth
  • Go to Multiplayer → Local Game → Create Game → I’m ready
  • Press ctrl+r to recruit, select any unit and confirm. Here wesnoth exits.

I’m on an M1 Air with the latest updates applied.

$ neofetch
             .',;::::;,'.                albsod@sai 
         .';:cccccccccccc:;,.            ---------- 
      .;cccccccccccccccccccccc;.         OS: Fedora Linux Asahi Remix 40 (Forty) aarch64 
    .:cccccccccccccccccccccccccc:.       Host: Apple MacBook Air (M1, 2020) 
  .;ccccccccccccc;.:dddl:.;ccccccc;.     Kernel: 6.8.9-402.asahi.fc40.aarch64+16k 
 .:ccccccccccccc;OWMKOOXMWd;ccccccc:.    Uptime: 53 mins 
.:ccccccccccccc;KMMc;cc;xMMc:ccccccc:.   Packages: 2861 (rpm) 
,cccccccccccccc;MMM.;cc;;WW::cccccccc,   Shell: bash 5.2.26 
:cccccccccccccc;MMM.;cccccccccccccccc:   Resolution: 2560x1600 
:ccccccc;oxOOOo;MMM0OOk.;cccccccccccc:   DE: Plasma 6.0.4 
cccccc:0MMKxdd:;MMMkddc.;cccccccccccc;   WM: kwin 
ccccc:XM0';cccc;MMM.;cccccccccccccccc'   WM Theme: Breeze 
ccccc;MMo;ccccc;MMW.;ccccccccccccccc;    Theme: [Plasma], Adwaita-dark [GTK2/3] 
ccccc;0MNc.ccc.xMMd:ccccccccccccccc;     Icons: Numix [Plasma], Numix [GTK2/3] 
cccccc;dNMWXXXWM0::cccccccccccccc:,      Terminal: konsole 
cccccccc;.:odl:.;cccccccccccccc:,.       CPU: (8) @ 2.064GHz 
:cccccccccccccccccccccccccccc:'.         Memory: 9898MiB / 15646MiB 
.:cccccccccccccccccccccc:;,..
  '::cccccccccccccc::;,.                                         
                                                                 

Added kde-plasma and removed gnome

I have the same problem! Interestingly, it only happens when you use the sortcur (ctrl+r) to recruit. Right clicking I haven’t encountered the problem (haven’t played a lot though, because this issue is pretty severe if you want to play the game).

I’m on x86_64. Using amd graphics.