raspberrypi / rpi-imager

The home of Raspberry Pi Imager, a user-friendly tool for creating bootable media for Raspberry Pi devices.
https://www.raspberrypi.com/software
Other
1.72k stars 262 forks source link

[BUG]: symbol lookup error with 1.9.0 and mesa 24.2.2-1 ( Kali Linux host, Debian testing equivalent) #942

Open steev opened 1 month ago

steev commented 1 month ago

What happened?

When attempting to run the aarch64 1.9.0 AppImage, I am getting an unknown symbol

steev@finn:~/Downloads$ ./Raspberry_Pi_Imager-1.9.0-aarch64.AppImage
/tmp/.mount_RaspbeVM7Y30/AppRun.wrapped: symbol lookup error: /lib/aarch64-linux-gnu/libEGL_mesa.so.0: undefined symbol: wl_display_create_queue_with_name

I am guessing this went away in newer mesa, the version of libegl-mesa0 is 24.2.2-1 from Debian testing.

Version

1.9.0 (Default)

What host operating system were you using?

Windows

Host OS Version

Kali Linux

Selected OS

Kali Linux

Which Raspberry Pi Device are you using?

Raspberry Pi 5

What kind of storage device are you using?

microSD Card in an internal reader

OS Customisation

Relevant log output

No response

tdewey-rpi commented 1 month ago

Thanks for the report, @steev

This looks like a fairly major problem - the issue doesn't go away with a newer mesa - it appears to be introduced by it.

Raspberry Pi OS is shipping today with 23.2.1 (+rpi changes). It appears that the libwayland-client that is embedded in the AppImage is missing the symbol you've referenced - causing the failure.

I note that the PCSX2 project encountered a similar problem: https://github.com/PCSX2/pcsx2/issues/11407

Their solution was to deliberately exclude the libwayland-* libraries, and I'm tempted to do the same after some testing.

Is this Kali image now published in Imager?

steev commented 1 month ago

Thanks for the report, @steev

This looks like a fairly major problem - the issue doesn't go away with a newer mesa - it appears to be introduced by it.

Raspberry Pi OS is shipping today with 23.2.1 (+rpi changes). It appears that the libwayland-client that is embedded in the AppImage is missing the symbol you've referenced - causing the failure.

I note that the PCSX2 project encountered a similar problem: PCSX2/pcsx2#11407

Their solution was to deliberately exclude the libwayland-* libraries, and I'm tempted to do the same after some testing.

Ah, I didn't even think to try with Xorg as the GNOME backend. With Xorg as the GNOME backend, indeed, the error does not show up. I just assumed it was mesa because of the libEGL complaint.

Is this Kali image now published in Imager?

Unfortunately no, not yet. I've never used cloud-init before so I'm still learning it. Once I have something that people can test, it will probably be part of our weekly images, and I'll tell users how to create a json file with the bits to use.