varmd / wayward

Fast desktop shell for wayland and weston.
97 stars 3 forks source link

1.2.1 crash on inability to find an icon file #10

Closed scruffidog closed 11 months ago

scruffidog commented 1 year ago

Are the icon locations/files hard-coded ? For the longest time wayward just keeps crashing when invoked:

[dwc@victus ~]$ weston --debug 2> /tmp/ww.dbg Found keyboard and seat SHM is 0 Mixer volumes are max/min 65536/0 Hide apps
Adding applications Hide app line /usr/bin/avahi-discover Hide app line /usr/bin/bssh Hide app line /usr/bin/btop Hide app line /usr/bin/bvnc Hide app line /usr/lib/cachy-browser/cachy-browser
Hide app line /usr/bin/dconf-editor Hide app line /usr/bin/video-downloader Hide app line /usr/bin/connman-gtk Hide app line /usr/bin/htop Hide app line /usr/bin/libreoffice
Hide app line /usr/bin/libreoffice
Hide app line /usr/bin/libreoffice
Hide app line /usr/bin/libreoffice
Hide app line /usr/bin/libreoffice
Hide app line /usr/bin/wdisplays Hide app line /usr/bin/nvtop Hide app line /usr/bin/footclient Hide app line /usr/bin/foot Hide app line /usr/bin/foot
Hide app line /usr/bin/d-feet Hide app line /usr/bin/pavucontrol Hide app line /usr/bin/qv4l2 Hide app line /usr/bin/qvidcap Hide app line /usr/bin/systemadm Hide app line /usr/bin/tlpui Hide app line /usr/bin/tuna
File closed Clock allocation is 0 0 Could not open SVG image.

After running this through an strace, it looks like it is looking for:

openat(AT_FDCWD, "/usr/share/icons/Adwaita/scalable/apps/multimedia-volume-control-symbolic.svg", O_RDONLY) = -1 ENOENT (No such file or directory) write(1, "Could not open SVG image.\n", 26) = 26 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x1c} --- +++ killed by SIGSEGV (core dumped) +++

But the adwaita-icon-theme-43-2 pkg seems to have that particular icon at a different location:

[dwc@victus apps]$ pacman -Ql adwaita-icon-theme| grep multimedia-volume-control-symbolic.svg adwaita-icon-theme /usr/share/icons/Adwaita/scalable/legacy/multimedia-volume-control-symbolic.svg

Once I linked the expected location to the real one, it no longer crashes which leads me to ask how are the icons' location determined ? Is this a packaging problem or something further upstream ?

varmd commented 11 months ago

I've removed adwaita-icon-theme dependency, so this should no longer be an issue.