renesas / fsp

Flexible Software Package (FSP) for Renesas RA MCU Family
https://renesas.github.io/fsp/
Other
182 stars 82 forks source link

[AppImage] Arch Linux "SWT OS.java Error: Failed to load swt-pi3, loading swt-pi4 as fallback" #358

Open popsUlfr opened 3 weeks ago

popsUlfr commented 3 weeks ago

Hello,

I've already submitted this issue to Renesas engineers directly in the past but I'll submit an issue on github too.

Trying to launch the AppImage on Arch Linux results in:

./setup_fsp_v5_3_0_e2s_v2024-04.AppImage

Jun 11, 2024 9:41:48 AM org.apache.aries.spifly.BaseActivator log
INFO: Registered provider org.slf4j.simple.SimpleServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle slf4j.simple
SWT OS.java Error: Failed to load swt-pi3, loading swt-pi4 as fallback.
Installer:
An error has occurred. See the log file
/home/popsulfr/.eclipse/1252094862_linux_gtk_x86_64/configuration/1718091707900.log.

1718091707900.log

I found a forum thread on the issue: https://qiita.com/t-yano-tryhard/items/8f37d0614212c7bdb083 Which discusses the workaround of mounting the AppImage and invoking the installer manually which works.

I came up with this bash snippet to automate the process:

mntfile=/tmp/fspmount
rm -f "$mntfile"
./setup_fsp_v5_3_0_e2s_v2024-04.AppImage --appimage-mount >"$mntfile" &
pid="$!"
mnt="$(tail -F "$mntfile" 2>/dev/null | head -n 1)"
rm -f "$mntfile"
"$mnt"/opt/e2studio_installer/installer
kill "$pid"
wait "$pid"

There might be an issue relating to a conflict between the gtk library on the system and inside the AppImage.

renesas-brandon-hussey commented 3 weeks ago

This is being internally tracked using FSPRA-3303.