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: Tibia crashing - PltResolver: Symbol dbus_connection_close #1771

Closed lordzim closed 3 weeks ago

lordzim commented 1 month ago

I've been using box64 to play Tibia on my PI 4, using the 64-bit Linux version, but from yesterday to today, I'm encountering this error, could someone give me a hand?

box64 -v
Dynarec for ARM64, with extension: ASIMD CRC32 PageSize:4096 Running on Cortex-A72 with 4 Cores
Will use Hardware counter measured at 54.0 MHz emulating 3.4 GHz
Params database has 87 entries
Box64 with Dynarec v0.3.1 875a2ef3 built on Aug 28 2024 06:30:49
pi@raspberrypi:~/Tibia $ sudo box64 start-tibia-launcher.sh
Dynarec for ARM64, with extension: ASIMD CRC32 PageSize:4096 Running on Cortex-A72 with 4 Cores
Will use Hardware counter measured at 54.0 MHz emulating 3.4 GHz
Params database has 87 entries
Box64 with Dynarec v0.3.1 875a2ef3 built on Aug 28 2024 06:30:49
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 19 Env var
BOX64 LIB PATH: BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/
Looking for start-tibia-launcher.sh
Not an ELF file (sign=#!/b)
Error: Reading elf header of /home/pi/Tibia/start-tibia-launcher.sh, Try to launch natively instead
Dynarec for ARM64, with extension: ASIMD CRC32 PageSize:4096 Running on Cortex-A72 with 4 Cores
Will use Hardware counter measured at 54.0 MHz emulating 3.4 GHz
Params database has 87 entries
Box64 with Dynarec v0.3.1 875a2ef3 built on Aug 28 2024 06:30:49
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 21 Env var
BOX64 LIB PATH: BOX64 BIN PATH: ./:bin/:/home/pi/Tibia/
Looking for /home/pi/Tibia/Tibia
Rename process to "Tibia"
Using emulated /home/pi/Tibia/lib/libQt5Widgets.so.5
Using emulated /home/pi/Tibia/lib/libQt5Network.so.5
Using emulated /home/pi/Tibia/lib/libQt5Concurrent.so.5
Using emulated /home/pi/Tibia/lib/libQt5Gui.so.5
Using native(wrapped) libpthread.so.0
Using emulated /home/pi/Tibia/lib/libQt5OpenGL.so.5
Using emulated /home/pi/Tibia/lib/libQt5Core.so.5
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) libdl.so.2
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1
Using native(wrapped) libbsd.so.0
Using emulated /home/pi/Tibia/lib/libicui18n.so.50
Using emulated /home/pi/Tibia/lib/libicuuc.so.50
Using emulated /home/pi/Tibia/lib/libicudata.so.50
Using native(wrapped) libGL.so.1
Using native(wrapped) libgssapi_krb5.so.2
Using emulated /home/pi/Tibia/lib/libssl.so.1.1
Using emulated /home/pi/Tibia/lib/libcrypto.so.1.1
Using emulated /home/pi/Tibia/plugins/platforms/libqxcb.so
Using emulated /home/pi/Tibia/plugins/platforms/../../lib/libQt5XcbQpa.so.5
Using native(wrapped) libfontconfig.so.1
Using native(wrapped) libexpat.so.1
Using native(wrapped) libfreetype.so.6
Using emulated /home/pi/Tibia/plugins/platforms/../../lib/libQt5DBus.so.5
Using native(wrapped) libX11-xcb.so.1
Using native(wrapped) libxcb-icccm.so.4
Using native(wrapped) libxcb-image.so.0
Using native(wrapped) libxcb-shm.so.0
Using native(wrapped) libxcb-keysyms.so.1
Using native(wrapped) libxcb-randr.so.0
Using native(wrapped) libxcb-render-util.so.0
Using native(wrapped) libxcb-render.so.0
Using native(wrapped) libxcb-shape.so.0
Using native(wrapped) libxcb-sync.so.1
Using native(wrapped) libxcb-xfixes.so.0
Using native(wrapped) libxcb-xinerama.so.0
Using native(wrapped) libxcb-xkb.so.1
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) libX11.so.6
Using native(wrapped) libSM.so.6
Using native(wrapped) libICE.so.6
Using native(wrapped) libxkbcommon-x11.so.0
Using native(wrapped) libxkbcommon.so.0
Using native(wrapped) libdbus-1.so.3
Using native(wrapped) libXcursor.so.1
Using native(wrapped) libXfixes.so.3
Using native(wrapped) libXrender.so.1
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Error: PltResolver: Symbol  dbus_connection_close(optver 25: dbus_connection_close@LIBDBUS_1_3) not found, cannot apply R_X86_64_JUMP_SLOT 0x3f1608b660 (0x3f16014cc6) in /home/pi/Tibia/plugins/platforms/../../lib/libQt5DBus.so.5 (local_maplib=0x62d7f3a0, global maplib=0x62c02fb0, deepbind=0)
lordzim commented 1 month ago

Today, August 29th, I restarted my Pi4, and there was an update available for Box64 in the Raspberry OS Bookworm update manager. I performed the update and restarted again.

Another error message appeared.

pi@raspberrypi:~/Tibia $ sudo box64 start-tibia-launcher.sh 
Dynarec for ARM64, with extension: ASIMD CRC32 PageSize:4096 Running on Cortex-A72 with 4 Cores
Will use Hardware counter measured at 54.0 MHz emulating 3.4 GHz
Params database has 87 entries
Box64 with Dynarec v0.3.1 0450371e built on Aug 29 2024 06:31:01
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 19 Env var
BOX64 LIB PATH: BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/
Looking for start-tibia-launcher.sh
Not an ELF file (sign=#!/b)
Error: Reading elf header of /home/pi/Tibia/start-tibia-launcher.sh, Try to launch natively instead
Dynarec for ARM64, with extension: ASIMD CRC32 PageSize:4096 Running on Cortex-A72 with 4 Cores
Will use Hardware counter measured at 54.0 MHz emulating 3.4 GHz
Params database has 87 entries
Box64 with Dynarec v0.3.1 0450371e built on Aug 29 2024 06:31:01
BOX64: Didn't detect 48bits of address space, considering it's 39bits
Counted 21 Env var
BOX64 LIB PATH: BOX64 BIN PATH: ./:bin/:/home/pi/Tibia/
Looking for /home/pi/Tibia/Tibia
Rename process to "Tibia"
Using emulated /home/pi/Tibia/lib/libQt5Widgets.so.5
Using emulated /home/pi/Tibia/lib/libQt5Network.so.5
Using emulated /home/pi/Tibia/lib/libQt5Concurrent.so.5
Using emulated /home/pi/Tibia/lib/libQt5Gui.so.5
Using native(wrapped) libpthread.so.0
Using emulated /home/pi/Tibia/lib/libQt5OpenGL.so.5
Using emulated /home/pi/Tibia/lib/libQt5Core.so.5
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) libdl.so.2
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1
Using native(wrapped) libbsd.so.0
Using emulated /home/pi/Tibia/lib/libicui18n.so.50
Using emulated /home/pi/Tibia/lib/libicuuc.so.50
Using emulated /home/pi/Tibia/lib/libicudata.so.50
Using native(wrapped) libGL.so.1
Using native(wrapped) libgssapi_krb5.so.2
Using emulated /home/pi/Tibia/lib/libssl.so.1.1
Using emulated /home/pi/Tibia/lib/libcrypto.so.1.1
Using emulated /home/pi/Tibia/plugins/platforms/libqxcb.so
Using emulated /home/pi/Tibia/plugins/platforms/../../lib/libQt5XcbQpa.so.5
Using native(wrapped) libfontconfig.so.1
Using native(wrapped) libexpat.so.1
Using native(wrapped) libfreetype.so.6
Using emulated /home/pi/Tibia/plugins/platforms/../../lib/libQt5DBus.so.5
Using native(wrapped) libX11-xcb.so.1
Using native(wrapped) libxcb-icccm.so.4
Using native(wrapped) libxcb-image.so.0
Using native(wrapped) libxcb-shm.so.0
Using native(wrapped) libxcb-keysyms.so.1
Using native(wrapped) libxcb-randr.so.0
Using native(wrapped) libxcb-render-util.so.0
Using native(wrapped) libxcb-render.so.0
Using native(wrapped) libxcb-shape.so.0
Using native(wrapped) libxcb-sync.so.1
Using native(wrapped) libxcb-xfixes.so.0
Using native(wrapped) libxcb-xinerama.so.0
Using native(wrapped) libxcb-xkb.so.1
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) libX11.so.6
Using native(wrapped) libSM.so.6
Using native(wrapped) libICE.so.6
Using native(wrapped) libxkbcommon-x11.so.0
Using native(wrapped) libxkbcommon.so.0
Using native(wrapped) libdbus-1.so.3
Using native(wrapped) libXcursor.so.1
Using native(wrapped) libXfixes.so.3
Using native(wrapped) libXrender.so.1
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
[ 2024-08-29 09:29:41,316 ] Loading main configuration from "https://static.tibia.com/launcher/tibiametadata.json"
Using emulated /home/pi/Tibia/plugins/imageformats/libqgif.so
4157|SIGSEGV @0x350a4cb4 (???(/home/pi/Tibia/Tibia+0x8a4cb4)) (x64pc=0x3f13176940/"/home/pi/Tibia/lib/libcrypto.so.1.1/EVP_CIPHER_CTX_ctrl", rsp=0x7f9fffe6b8, stack=0x7f9f800000:0x7fa0000000 own=0x7f9f800000 fp=0x7f9802f430), for accessing 0xa (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=(nil)
RSP-0x20:0x35e632f4d363c2e8 RSP-0x18:0x0000007f00000030 RSP-0x10:0x0000007f98022420 RSP-0x08:0x0000007f9802255c
RSP+0x00:0x0000003f1318ebb5 RSP+0x08:0x0000007f9802f970 RSP+0x10:0x0000003f13188de9 RSP+0x18:0x0000000000000030
RAX:0x0000000000000041 RCX:0x000000007ed83203 RDX:0x66f769e4c3c4a43c RBX:0x0000007f9802f3e0 
RSP:0x0000007f9fffe6b8 RBP:0x0000007f9802f430 RSI:0x0000007f9802f430 RDI:0x0000007f9802f440 
 R8:0x0000000000000000  R9:0x0000003f13081400 R10:0x4519cff4e5ba8c96 R11:0x127c5f7abd88d4af 
R12:0x0000007f9fffe820 R13:0x0000003f134c72e0 R14:0x0000003f12076841 R15:0x0000007f9802259c 
ES:0x002b CS:0x0033 SS:0x002b DS:0x002b FS:0x0043 GS:0x0053 
Segmentation fault
lordzim commented 1 month ago

I managed to get it working by downgrading to box64 version 0.2.8