ptitSeb / box64

Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices
https://box86.org
MIT License
3.73k stars 267 forks source link

Error running Beyond All Reason thru flatpak on m1 #1367

Closed m1m1k4tz closed 6 months ago

m1m1k4tz commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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

ptitSeb commented 6 months ago

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

m1m1k4tz commented 6 months ago

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

ptitSeb commented 6 months ago

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

m1m1k4tz commented 6 months ago

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

ptitSeb commented 6 months ago

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.

m1m1k4tz commented 6 months ago

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