box64 icon indicating copy to clipboard operation
box64 copied to clipboard

Error running Beyond All Reason thru flatpak on m1

Open m1m1k4tz opened this issue 1 year ago • 6 comments

I’ve make installed and restarted the service but flatpak can’t run bar

** ERROR:../accel/tcg/cpu-exec.c:532:cpu_exec_longjmp_cleanup: assertion failed: (cpu == current_cpu) Bail out! ERROR:../accel/tcg/cpu-exec.c:532:cpu_exec_longjmp_cleanup: assertion failed: (cpu == current_cpu) /app/bin/run.sh: line 6: 34 Trace/breakpoint trap (core dumped) zypak-wrapper.sh /app/main/beyond-all-reason --disable-launcher-update -w $XDG_DATA_HOME "$@"

m1m1k4tz avatar Mar 17 '24 22:03 m1m1k4tz

Also there’s a bug with flatpak you might want to install with —arch to get the x86 package instead of the aarch64 one https://github.com/flathub/flathub/issues/2755

m1m1k4tz avatar Mar 18 '24 07:03 m1m1k4tz

This cpu longjmp error happens on the x86 version of ballz too

m1m1k4tz avatar Mar 19 '24 11:03 m1m1k4tz

I don't understand. Are you using qemu or box64 there?

ptitSeb avatar Mar 20 '24 00:03 ptitSeb

I’m not sure if flatpak comes with qemu and uses that by default but what I did was I compiled and installed box64 since its not packaged right for the m1 on fedora and then did flatpak install —arch=x86_64

m1m1k4tz avatar Mar 20 '24 01:03 m1m1k4tz

I understand, but that error looks like a qemu assert to me. Do you see any box64 logs happening what you launch your stuffs?

ptitSeb avatar Mar 20 '24 02:03 ptitSeb

No that’s what confused me too I read somewhere it should just work but maybe flatpak doesn’t use binfmt the same way I was thinking it might be more useful for risc v since most flatpaks already have an aarch64 version but I don’t have a board to test on

m1m1k4tz avatar Mar 20 '24 02:03 m1m1k4tz

Check with flatpak maintainer how it works maybe? Also maybe related to https://github.com/ptitSeb/box64/issues/1361 altho that's for the "static build" of box64 that doesn't have opengl / vulkan support so probably not what you need here.

ptitSeb avatar Mar 20 '24 16:03 ptitSeb

Yup fedora comes with qemu user by default I’ll close this since it’s not a box64 issue

m1m1k4tz avatar Mar 22 '24 18:03 m1m1k4tz