ptitSeb / box64

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

Stardew valley 1.6.8 native help #2003

Open Emil-code91 opened 3 weeks ago

Emil-code91 commented 3 weeks ago

I am trying to run Stardew Valley 1.6.8, but it's not working. My device is a rooted Samsung Galaxy A23 with a custom ROM, Snapdragon 680 (8 cores, 2.4 GHz), 6GB RAM. I am running Debian in a chroot environment. Right now, I have a lot of things open in the background, but normally about 4GB of RAM would be free. I compiled with the following command:

-D ARM64=1 -DCMAKE_C_COMPILER=gcc -DBAD_SIGNAL=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo

And I am getting the following error. Please help me!

OpenGL Information GL_VENDOR: Collabora Ltd GL_RENDERER: zink (Turnip Adreno (TM) 610) GL_VERSION: 4.6 (Compatibility Profile) Mesa 22.3.6 `❯ neofetch Emil@localhost


 OS: Debian GNU/Linux 12 (bookworm) aarch64 

Host: Samsung A23 PROJECT (board-id,09) Kernel: 4.19.157-rsperf Uptime: 15 hours, 35 mins Packages: 1547 (dpkg) Shell: zsh 5.9 Resolution: 2408x1080 DE: LXQt 1.2.0 WM: Xfwm4 Theme: Adwaita [GTK3]
Icons: Adwaita [GTK3] Terminal: qterminal Terminal Font: Monospace 11 CPU: Qualcomm KHAJE (8) @ 1.900GHz Memory: 3777MiB / 5579MiB

❯ free -h total used free shared buff/cache available Mem: 5.4Gi 3.6Gi 469Mi 25Mi 1.3Gi 1.8Gi Swap: 2.0Gi 1.6Gi 406Mi ❯ BOX64_DYNAREC_HOTPAGE=0 M box64 ./start.sh

Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL SHA1 SHA2 PageSize:4096 Running on Kryo-V2 Cortex-A73 with 8 Cores Will use Hardware counter measured at 19.2 MHz emulating 2.4 GHz Params database has 95 entries Box64 with Dynarec v0.3.1 3ba91a65 built on Nov 6 2024 15:26:47 BOX64: Didn't detect 48bits of address space, considering it's 39bits Counted 50 Env var BOX64 LIB PATH: BOX64 BIN PATH: ./:bin/:/usr/local/bin/:/usr/bin/:/bin/:/usr/local/games/:/usr/games/ Looking for ./start.sh Not an ELF file (sign=#!/b) Error: Reading elf header of /home/Emil/GOG Games/Stardew Valley/start.sh, Try to launch using bash instead Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL SHA1 SHA2 PageSize:4096 Running on Kryo-V2 Cortex-A73 with 8 Cores Will use Hardware counter measured at 19.2 MHz emulating 2.4 GHz Params database has 95 entries Box64 with Dynarec v0.3.1 3ba91a65 built on Nov 6 2024 15:26:47 BOX64: Didn't detect 48bits of address space, considering it's 39bits Counted 50 Env var BOX64 LIB PATH: BOX64 BIN PATH: ./:bin/:/usr/local/bin/:/usr/bin/:/bin/:/usr/local/games/:/usr/games/ Looking for /usr/local/bin/box64-bash bash detected, disabling banner Apply RC params for box64-bash Running Stardew Valley Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL SHA1 SHA2 PageSize:4096 Running on Kryo-V2 Cortex-A73 with 8 Cores Will use Hardware counter measured at 19.2 MHz emulating 2.4 GHz Params database has 95 entries Box64 with Dynarec v0.3.1 3ba91a65 built on Nov 6 2024 15:26:47 BOX64: Didn't detect 48bits of address space, considering it's 39bits Counted 50 Env var BOX64 LIB PATH: BOX64 BIN PATH: ./:bin/:/usr/local/bin/:/usr/bin/:/bin/:/usr/local/games/:/usr/games/ Looking for /usr/local/bin/box64-bash bash detected, disabling banner Apply RC params for box64-bash ./StardewValley: line 7: sw_vers: command not found Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL SHA1 SHA2 PageSize:4096 Running on Kryo-V2 Cortex-A73 with 8 Cores Will use Hardware counter measured at 19.2 MHz emulating 2.4 GHz Params database has 95 entries Box64 with Dynarec v0.3.1 3ba91a65 built on Nov 6 2024 15:26:47 BOX64: Didn't detect 48bits of address space, considering it's 39bits Counted 51 Env var BOX64 LIB PATH: BOX64 BIN PATH: ./:bin/:/usr/local/bin/:/usr/bin/:/bin/:/usr/local/games/:/usr/games/ Looking for ./Stardew Valley Rename process to "Stardew Valley" Using native(wrapped) libpthread.so.0 Using native(wrapped) libdl.so.2 Using emulated /usr/lib/box64-x86_64-linux-gnu/libstdc++.so.6 Using native(wrapped) libm.so.6 Using emulated /usr/lib/box64-x86_64-linux-gnu/libgcc_s.so.1 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux-x86-64.so.2 Using native(wrapped) libutil.so.1 Using native(wrapped) librt.so.1 Using native(wrapped) libbsd.so.0 Using emulated /home/Emil/GOG Games/Stardew Valley/game/libhostfxr.so Using emulated /home/Emil/GOG Games/Stardew Valley/game/libhostpolicy.so Using emulated /home/Emil/GOG Games/Stardew Valley/game/libcoreclr.so Warning: Weak Symbol gmon_start not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db640 (0x75146) Warning: Weak Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db6d8 (0x75276) Warning: Weak Symbol _ZTH27t_pStackWalkerWalkingThread not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db6e0 (0x75286) Warning: Weak Symbol _ZTHN9StressLog19t_pCurrentThreadLogE not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db700 (0x752c6) Warning: Weak Symbol _ZTH15t_CantStopCount not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db708 (0x752d6) Warning: Weak Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_JUMP_SLOT @0x3f046db760 (0x75386) Using emulated /home/Emil/GOG Games/Stardew Valley/game/libcoreclrtraceptprovider.so Error loading needed lib liblttng-ust.so.0 Error loading one of needed lib Error initializing needed lib /home/Emil/GOG Games/Stardew Valley/game/libcoreclrtraceptprovider.so Error loading needed lib liblttng-ust-tracepoint.so.0 Warning: Cannot dlopen("liblttng-ust-tracepoint.so.0"/0x3f045c52fa, 102) Error loading needed lib liblttng-ust-tracepoint.so.0 Warning: Cannot dlopen("liblttng-ust-tracepoint.so.0"/0x3f045c52fa, 102) Using native(wrapped) libnuma.so.1 Using emulated /home/Emil/GOG Games/Stardew Valley/game/libclrjit.so Warning: Weak Symbol gmon_start not found, cannot apply R_X86_64_JUMP_SLOT @0x3f06333750 (0x15c76) Warning: Weak Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_JUMP_SLOT @0x3f063337e0 (0x15d96) Warning: Weak Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_JUMP_SLOT @0x3f063337e8 (0x15da6) Using emulated /home/Emil/GOG Games/Stardew Valley/game/libSystem.Native.so Error loading needed lib libicuuc.so.80 Warning: Cannot dlopen("libicuuc.so.80"/0x74eb16cb00, 1) Error loading needed lib libicuuc.so.79 Warning: Cannot dlopen("libicuuc.so.79"/0x74eb16cb00, 1) Error loading needed lib libicuuc.so.78 Warning: Cannot dlopen("libicuuc.so.78"/0x74eb16cb00, 1) Error loading needed lib libicuuc.so.77 Warning: Cannot dlopen("libicuuc.so.77"/0x74eb16cb00, 1) Error loading needed lib libicuuc.so.76 Warning: Cannot dlopen("libicuuc.so.76"/0x74eb16cb00, 1) Error initializing native libicuuc.so.75 (last dlerror is libicuuc.so.75: cannot open shared object file: No such file or directory) Error loading needed lib libicuuc.so.75 Warning: Cannot dlopen("libicuuc.so.75"/0x74eb16cb00, 1) Error initializing native libicuuc.so.74 (last dlerror is libicuuc.so.74: cannot open shared object file: No such file or directory) Error loading needed lib libicuuc.so.74 Warning: Cannot dlopen("libicuuc.so.74"/0x74eb16cb00, 1) Error initializing native libicuuc.so.73 (last dlerror is libicuuc.so.73: cannot open shared object file: No such file or directory) Error loading needed lib libicuuc.so.73 Warning: Cannot dlopen("libicuuc.so.73"/0x74eb16cb00, 1) Using native(wrapped) libicuuc.so.72 Using native(wrapped) libicui18n.so.72 Using emulated /home/Emil/GOG Games/Stardew Valley/game/libSDL2-2.0.so.0 Using native(wrapped) libX11.so.6 Using native(wrapped) libxcb.so.1 Using native(wrapped) libXau.so.6 Using native(wrapped) libXdmcp.so.6 Using native(wrapped) libXext.so.6 Using native(wrapped) libXcursor.so.1 Using native(wrapped) libXfixes.so.3 Using native(wrapped) libXrender.so.1 Using native(wrapped) libXinerama.so.1 Using native(wrapped) libXi.so.6 Using native(wrapped) libXrandr.so.2 Using native(wrapped) libXss.so.1 Using native(wrapped) libXxf86vm.so.1 Using native(wrapped) libdbus-1.so.3 Using native(wrapped) libGL.so.1 Using native(wrapped) libusb-1.0.so.0 Using native(wrapped) libudev.so.1 Error loading needed lib Microsoft.DiaSymReader.Native.amd64.dll Warning: Cannot dlopen("Microsoft.DiaSymReader.Native.amd64.dll"/0x74eb16bbd0, 1) Error loading needed lib Microsoft.DiaSymReader.Native.amd64.dll Warning: Cannot dlopen("Microsoft.DiaSymReader.Native.amd64.dll"/0x74eb16bbd0, 1) Using emulated /home/Emil/GOG Games/Stardew Valley/game/libSystem.IO.Compression.Native.so Using native(wrapped) libz.so.1 Error loading needed lib Microsoft.DiaSymReader.Native.amd64.dll Warning: Cannot dlopen("Microsoft.DiaSymReader.Native.amd64.dll"/0x74eb16bc30, 1) 9577|BOX64: Warning, calling Signal 11 function handler SIG_DFL Unhandled signal caught, aborting NativeBT: ./Stardew Valley() [0x34a56400] NativeBT: linux-vdso.so.1(kernel_rt_sigreturn+0) [0x74eb43760c] NativeBT: /lib/aarch64-linux-gnu/libc.so.6(+0x809f0) [0x74eb2c09f0] NativeBT: /lib/aarch64-linux-gnu/libc.so.6(gsignal+0x1c) [0x74eb27a72c] NativeBT: /lib/aarch64-linux-gnu/libc.so.6(abort+0xf0) [0x74eb26747c] NativeBT: ./Stardew Valley() [0x34a54ae8] NativeBT: ./Stardew Valley() [0x34a552d8] NativeBT: ./Stardew Valley() [0x34a5722c] NativeBT: ./Stardew Valley() [0x34a57328] NativeBT: ./Stardew Valley() [0x34ff6e88] NativeBT: ./Stardew Valley() [0x34a2ea00] NativeBT: ./Stardew Valley() [0x34a29144] NativeBT: ./Stardew Valley() [0x34a236e8] NativeBT: /lib/aarch64-linux-gnu/libc.so.6(+0x27740) [0x74eb267740] NativeBT: /lib/aarch64-linux-gnu/libc.so.6(libc_start_main+0x98) [0x74eb267818] NativeBT: ./Stardew Valley(_start+0x30) [0x34a23730] EmulatedBT: ??? [0x3e00000002] 9577|SIGABRT @0x74eb2c09f0 (???(/lib/aarch64-linux-gnu/libc.so.6+0x809f0)) (x64pc=0x3e00000002/"???", rsp=0x3e8c015628, stack=0x74ea970000:0x74eb170000 own=(nil) fp=0x3000000030), for accessing 0x3e800002569 (code=-6/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=0x3f044dcff0 RSP-0x20:0x0f385e7836e4c3e8 RSP-0x18:0x0e3a5e7836e4bbe8 RSP-0x10:0x0d3c5e7836e4b3e8 RSP-0x08:0x0c3e5e7836e4abe8 RSP+0x00:0x0b405e7836e4a3e8 RSP+0x08:0x0a425e7836e49be8 RSP+0x10:0x09445e7836e493e8 RSP+0x18:0x08465e7800000002 RAX:0x00000100c0000005 RCX:0x0000000000000000 RDX:0x00000074eb16c810 RBX:0x00000074eb16cf40 RSP:0x0000003e8c015628 RBP:0x0000003000000030 RSI:0x00000074eb16c9b0 RDI:0x0000000000000000 R8:0x00000074b532af34 R9:0x0000000000000000 R10:0x00000074eb16c918 R11:0x00000074eb16c9b0 R12:0xffffffffffffffff R13:0x00000074eb16d501 R14:0x0000000000000000 R15:0x0000000000000000 ES:0x002b CS:0x0140 SS:0x002b DS:0x002b FS:0x0000 GS:0x0000 Warning, accessing segment NULL 9577|SIGSEGV @0x35006eb8 (???(./Stardew Valley+0x806eb8)) (x64pc=0x3f044dd001/"/home/Emil/GOG Games/Stardew Valley/game/libcoreclr.so + 0x4dd001", rsp=0x3e8c014c68, stack=0x74ea970000:0x74eb170000 own=(nil) fp=0x3e8c014c88), for accessing 0x28 (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=(nil) RSP-0x20:0x0000000000000000 RSP-0x18:0x0000000000000000 RSP-0x10:0x0000000000000000 RSP-0x08:0x0000000000000000 RSP+0x00:0x0000000000000000 RSP+0x08:0x0000000000000000 RSP+0x10:0x00000074eb16cf40 RSP+0x18:0x0000000000000000 RAX:0x00000100c0000005 RCX:0x0000000000000000 RDX:0x0000003e8c014c98 RBX:0x0000003e8c014c98 RSP:0x0000003e8c014c68 RBP:0x0000003e8c014c88 RSI:0x0000003e8c015060 RDI:0x0000000000000006 R8:0x00000074b532af34 R9:0x0000000000000000 R10:0x00000074eb16c918 R11:0x00000074eb16c9b0 R12:0xffffffffffffffff R13:0x00000074eb16d501 R14:0x0000000000000006 R15:0x0000000000000000 ES:0x002b CS:0x0033 SS:0x002b DS:0x002b FS:0x0000 GS:0x0000 x64opcode=64 48 8B 04 25 28 00 00 (opcode=f9400261) ./StardewValley: line 27: 9577 Segmentation fault ./"Stardew Valley" $@

░▒▓  ╱  ~/GOG Games/Stardew Valley   SEGV ✘ ╱ took 40s  ╱ at 15:57:31  ▓▒░─╮ ❯ `