ptitSeb / box86-compatibility-list

Box86 Compatibility List (Games and Software)
MIT License
62 stars 2 forks source link

Crypt of the NecroDancer (Native) #234

Closed ricoazzurro closed 6 months ago

ricoazzurro commented 1 year ago

Description

Crypt of the NecroDancer v3.5.1-b3875 (62184), Linux x64, GOG, Engine: Monkey X Rock 5B, Box64 (steam_chrome branch git b9378fe), PAN_MESA_DEBUG=gofaster,gl3

NOT working.

The first run, I got

Error initializing native libFLAC.so.8 (last dlerror is libFLAC.so.8: cannot open shared object file: No such file or directory)
Error loading needed lib libFLAC.so.8
Error loading one of needed lib
Error initializing needed lib libsfml-audio.so.2.5
Error loading one of needed lib
Error: loading needed libs in elf /home/rico/necrodancer/game/NecroDancer64/NecroDancer.x64

So I fixed libs, libFLAC.so.8 (aarch64 native), libsfml-audio.so.2.5 (x64 from debian)

But the game still not loading, full log attached below

rico [ ~/GOG Games/Crypt of the NecroDancer ]$ LD_LIBRARY_PATH=/opt/box64-lib-aarch64/:/opt/box64-lib-x86_64/ ./start.sh 
Running Crypt of the NecroDancer
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096 Cores:8
Params database has 17 entries
Using bash "/home/rico/box64/tests/bash"
Box64 with Dynarec v0.2.1 b9378fe built on Mar  4 2023 21:16:02
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 58 Env var
Looking for ./NecroDancer.x64
Rename process to "NecroDancer.x64"
Using emulated lib/libsfml-graphics.so.2.5
Using emulated lib/libsfml-window.so.2.5
Using emulated lib/libsfml-audio.so.2.5
Using emulated lib/libsfml-network.so.2.5
Using emulated lib/libsfml-system.so.2.5
Using native(wrapped) libGL.so.1
Using emulated lib/libluajit-5.1.so.2
Using emulated lib/libGalaxy64.so
Using emulated lib/libdiscord_game_sdk.so
Using native(wrapped) libX11.so.6
Using native(wrapped) librt.so.1
Using native(wrapped) libpthread.so.0
Using emulated /lib/x86_64-linux-gnu/libstdc++.so.6
Using native(wrapped) libm.so.6
Using emulated /lib/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) libfreetype.so.6
Using native(wrapped) libdl.so.2
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXext.so.6
Using native(wrapped) libxcb.so.1
Using native(wrapped) libXau.so.6
Using native(wrapped) libXdmcp.so.6
Using native(wrapped) libXrender.so.1
Using native(wrapped) libXcursor.so.1
Using native(wrapped) libudev.so.1
Using native(wrapped) libopenal.so.1
Using native(wrapped) libFLAC.so.8
Warning: Global Symbol ZSTD_trace_decompress_begin not found, cannot apply R_X86_64_GLOB_DAT @0xf3ced0 ((nil)) in /home/rico/GOG Games/Crypt of the NecroDancer/game/NecroDancer64/NecroDancer.x64
Warning: Global Symbol ZSTD_trace_decompress_end not found, cannot apply R_X86_64_GLOB_DAT @0xf3cec8 ((nil)) in /home/rico/GOG Games/Crypt of the NecroDancer/game/NecroDancer64/NecroDancer.x64
Warning: Global Symbol ZSTD_trace_compress_end not found, cannot apply R_X86_64_GLOB_DAT @0xf3cec0 ((nil)) in /home/rico/GOG Games/Crypt of the NecroDancer/game/NecroDancer64/NecroDancer.x64
Warning: Global Symbol ZSTD_trace_compress_begin not found, cannot apply R_X86_64_GLOB_DAT @0xf3ceb8 ((nil)) in /home/rico/GOG Games/Crypt of the NecroDancer/game/NecroDancer64/NecroDancer.x64
[2023-03-05 01:04:07.061] [DirectorySource] [warning] Non-existent directory '../dungeons' was specified as resource path
[2023-03-05 01:04:07.064] [DirectorySource] [warning] Non-existent directory '../replays' was specified as resource path
[2023-03-05 01:04:07.202] [Config] [warning] Missing configuration entry 'wos.game.window.size[length]'
[2023-03-05 01:04:07.202] [Config] [warning] Missing configuration entry 'wos.game.window.maximized'
[2023-03-05 01:04:07.366] [DiscordAPI] [info] Discord API init failed with error code 4
[2023-03-05 01:04:10.004] [Performance] [warning] event.startup: 'loadSettings' took 186.144ms
[2023-03-05 01:04:10.010] [SavefileXML] [info] No savedata found - initializing fresh save
[2023-03-05 01:04:12.266] [SavefileXML] [info] No savedata found - initializing fresh save
[2023-03-05 01:04:12.468] [ModLoader] [info] Mounting packed mod CharacterSkins v3.5.1.3875
[2023-03-05 01:04:12.471] [ModLoader] [info] Mounting packed mod quirks v3.5.1.3875
3136|SIGSEGV @0x521807d0 (???(0x521807d0)) (x64pc=0x82470e//home/rico/GOG Games/Crypt of the NecroDancer/game/NecroDancer64/NecroDancer.x64:"/home/rico/GOG Games/Crypt of the NecroDancer/game/NecroDancer64/NecroDancer.x64/_Z11drawClippedRKN2sf8DrawableERNS_12RenderTargetENS_12RenderStatesENS_4RectIiEE + 318", rsp=0x101ffe950, stack=0x101800000:0x102000000 own=(nil) fp=(nil)), for accessing 0xfffffffffffffff0 (code=1/prot=0), db=0x517b38b0(0x52180760:0x521808a8/0x82470e:0x824752//home/rico/GOG Games/Crypt of the NecroDancer/game/NecroDancer64/NecroDancer.x64/_Z11drawClippedRKN2sf8DrawableERNS_12RenderTargetENS_12RenderStatesENS_4RectIiEE + 318:clean, hash:9c38dd12/9c38dd12) handler=0x721c00
RAX:0x00000000000c7800 RCX:0x00000000ffffffff RDX:0x00000000000003c0 RBX:0x000000000000021c 
RSP:0x0000000101ffe950 RBP:0x0000000000000000 RSI:0x0000000000000000 RDI:0x0000000000000c11 
 R8:0x00000000ffffffff  R9:0x0000000000000000 R10:0x00000000506a7dc8 R11:0xfffffffffffffff0 
R12:0x000000004e85ed98 R13:0x0000000000000000 R14:0x0000021c000003c0 R15:0x000000000000021c 
RSP-0x20:0x0000000000000000 RSP-0x18:0x000000004d6f4800 RSP-0x10:0x0000000000000229 RSP-0x08:0x0000000000824881
RSP+0x00:0x000003c000000000 RSP+0x08:0x0000000101ffeac0 RSP+0x10:0x0000000000000000 RSP+0x18:0x0000000000000000
NativeBT: ./NecroDancer.x64() [0x349ca758]
NativeBT: linux-vdso.so.1(__kernel_rt_sigreturn+0) [0x7f9d8a07bc]
NativeBT: /usr/lib/libc.so.6(+0x83ae0) [0x7f9d713ae0]
NativeBT: /usr/lib/libc.so.6(gsignal+0x1c) [0x7f9d6cdc2c]
NativeBT: ./NecroDancer.x64() [0x34a4cf84]
NativeBT: ./NecroDancer.x64() [0x34995960]
NativeBT: ./NecroDancer.x64() [0x3498e920]
NativeBT: ./NecroDancer.x64() [0x349c905c]
NativeBT: ./NecroDancer.x64() [0x349c981c]
NativeBT: ./NecroDancer.x64() [0x349ca2f4]
NativeBT: linux-vdso.so.1(__kernel_rt_sigreturn+0) [0x7f9d8a07bc]
NativeBT: [0x521807d0]
3136|SIGSEGV @0x34ac61ac (my_backtrace_ip (./NecroDancer.x64)) (x64pc=0x1f01b3/???:"???", rsp=0x101ffe210, stack=0x101800000:0x102000000 own=(nil) fp=0x101ffe248), for accessing (nil) (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=(nil)
RSP-0x20:0x000000004e1b6560 RSP-0x18:0x0000000101ffe258 RSP-0x10:0x000000004d6f4800 RSP-0x08:0x0000000000000111
RSP+0x00:0x0000000000721d19 RSP+0x08:0x0000000000000000 RSP+0x10:0x0000000000000000 RSP+0x18:0x0000000000000000
RAX:0x0000000000000000 RCX:0x0000000000000000 RDX:0x000000000000000f RBX:0x0000000000000000 
RSP:0x0000000101ffe210 RBP:0x0000000101ffe248 RSI:0x0000000000000000 RDI:0x0000000000000006 
 R8:0x0000007f9a4af720  R9:0x0000000000f3c720 R10:0x0000007f9a4af780 R11:0xfffffffffffffff0 
R12:0x0000000000000000 R13:0x0000000101ffe258 R14:0x0000021c000003c0 R15:0x000000000000021c 
./NecroDancer64/NecroDancer: line 5:  3136 Segmentation fault      (core dumped) ./NecroDancer.x64 "$@"

Tested on

RADXA Rock 5B (rk3588) 16GB LFS, BSP kernel 5.10.110+, Gnome 43.4, Box64 (steam_chrome branch git b9378fe) 1080p, default game setting

Status

Previous behavior:

None reported

Current behavior:

NOT working. Can enter title screen, but failed at starting new game (world creating)

Screenshots

OpenGL

Additional Information

PAN_MESA_DEBUG=gofaster,gl3 Box64 (steam_chrome branch), compiled with -DRK3588=1

https://www.pcgamingwiki.com/wiki/Crypt_of_the_Necrodancer

ksco commented 1 year ago

This game is working on RV64, it's super slow, but it's working.

ricoazzurro commented 1 year ago

Thank you for testing. I'll test again on rpi4b then. hmmm, might be zlib issue. Will report back, cheers.

ksco commented 1 year ago

I've done the test, it did not work on ARM64. And it's unlikely an opcode error as cosim gives nothing. So I'm guessing it's a wrapper error, but don't know which one.

ricoazzurro commented 6 months ago

Working now by upgrading the board's kernel gpu to panthor and mesa to mainline 24.1.0. And thanks for dear Box64 devs for debug and improvements for this game. <3 I'll close this one by posting the below new one. https://github.com/ptitSeb/box86-compatibility-list/issues/453