Barotrauma (Native) crashed back to console after shortly showing splash loading screen ### Description Barotrauma, v1.0.20.1, Linux x64, Steam, Engine: MonoGame Box64 with Dynarec v0.2.3 7e282c9 Rock 5B, LFS, BSP kernel 5.10.160 rkr4.1, Gnome 44.2 PAN_MESA_DEBUG=gofaster,gl3 1080p, default game setting **NOT working.** Been trying to launch this game for a while, but still in vain :'( It crashed back to console after shortly showing its splash loading screen. What I've tested, combination of the following env, ``` export PAN_MESA_DEBUG=gofaster,gl3 export LC_ALL=C # export TERM=xterm export LD_LIBRARY_PATH=/opt/box-libs/aarch64/:/opt/box-libs/x86_64/:./x64/ export BOX64_LD_PRELOAD=/opt/box-libs/x86_64/libz.so.1 export BOX64_DYNAREC_FASTROUND=0 export BOX64_DYNAREC_STRONGMEM=1 export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 ``` What maybe related, but I haven't tested yet. - install linux aarch64 dotnet - install linux x64 dotnet - running its dedicated server seperately, ref, https://steamcommunity.com/app/602960/discussions/1/2250056952644462246/ box log: ```bash rico [ /opt/games/barotrauma ]$ ./box64-start.sh Dynarec will try to emulate a strong memory model with limited performance loss Dynarec will try tp generate x86 precise IEEE->int rounding Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096 Running on Cortex-A55 Cortex-A76 with 8 Cores Params database has 24 entries Box64 with Dynarec v0.2.3 7e282c9 built on Jun 16 2023 10:18:30 Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/ Using default BOX64_PATH: ./:bin/ Counted 62 Env var BOX64 try to Preload /opt/box-libs/x86_64/libz.so.1 Looking for ./Barotrauma Rename process to "Barotrauma" Using emulated /opt/box-libs/x86_64/libz.so.1 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux-x86-64.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) libutil.so.1 Using native(wrapped) librt.so.1 Using native(wrapped) libdl.so.2 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 emulated /opt/games/barotrauma/libhostfxr.so Using emulated /opt/games/barotrauma/libhostpolicy.so Using emulated /opt/games/barotrauma/libcoreclr.so Warning: Global Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_GLOB_DAT @0x102a3a0b0 ((nil)) in /opt/games/barotrauma/libcoreclr.so Warning: Global Symbol _ZTH27t_pStackWalkerWalkingThread not found, cannot apply R_X86_64_GLOB_DAT @0x102a3a0c8 ((nil)) in /opt/games/barotrauma/libcoreclr.so Warning: Global Symbol _ZTHN9StressLog19t_pCurrentThreadLogE not found, cannot apply R_X86_64_GLOB_DAT @0x102a3a0e0 ((nil)) in /opt/games/barotrauma/libcoreclr.so Warning: Global Symbol _ZTH15t_CantStopCount not found, cannot apply R_X86_64_GLOB_DAT @0x102a3a0f8 ((nil)) in /opt/games/barotrauma/libcoreclr.so Warning: Global Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_GLOB_DAT @0x102a3a1f0 ((nil)) in /opt/games/barotrauma/libcoreclr.so Warning: Weak Symbol __gmon_start__ not found, cannot apply R_X86_64_JUMP_SLOT @0x102a3a640 (0x75146) Warning: Weak Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_JUMP_SLOT @0x102a3a6d8 (0x75276) Warning: Weak Symbol _ZTH27t_pStackWalkerWalkingThread not found, cannot apply R_X86_64_JUMP_SLOT @0x102a3a6e0 (0x75286) Warning: Weak Symbol _ZTHN9StressLog19t_pCurrentThreadLogE not found, cannot apply R_X86_64_JUMP_SLOT @0x102a3a700 (0x752c6) Warning: Weak Symbol _ZTH15t_CantStopCount not found, cannot apply R_X86_64_JUMP_SLOT @0x102a3a708 (0x752d6) Warning: Weak Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_JUMP_SLOT @0x102a3a760 (0x75386) Using emulated /opt/games/barotrauma/libcoreclrtraceptprovider.so Error loading needed lib liblttng-ust.so.0 Error loading one of needed lib Error initializing needed lib /opt/games/barotrauma/libcoreclrtraceptprovider.so Error loading needed lib liblttng-ust-tracepoint.so.0 Warning: Cannot dlopen("liblttng-ust-tracepoint.so.0"/0x102924b64, 102) Error loading needed lib liblttng-ust-tracepoint.so.0 Warning: Cannot dlopen("liblttng-ust-tracepoint.so.0"/0x102924b64, 102) Error initializing native libnuma.so.1 (last dlerror is libnuma.so.1: cannot open shared object file: No such file or directory) Using emulated /opt/box-libs/x86_64/libnuma.so.1 Using emulated /opt/games/barotrauma/libclrjit.so Warning: Global Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_GLOB_DAT @0x105b026c8 ((nil)) in /opt/games/barotrauma/libclrjit.so Warning: Global Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_GLOB_DAT @0x105b026b0 ((nil)) in /opt/games/barotrauma/libclrjit.so Warning: Weak Symbol __gmon_start__ not found, cannot apply R_X86_64_JUMP_SLOT @0x105b02750 (0x15c76) Warning: Weak Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_JUMP_SLOT @0x105b027e0 (0x15d96) Warning: Weak Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_JUMP_SLOT @0x105b027e8 (0x15da6) Error initializing native libnuma.so.1 (last dlerror is libnuma.so.1: cannot open shared object file: No such file or directory) Using emulated /opt/box-libs/x86_64/libnuma.so.1 Error loading needed lib linux_steam_env.so Warning: Cannot dlopen("linux_steam_env.so"/0x10202da60, 1) Using emulated /opt/games/barotrauma/liblinux_steam_env.so Using emulated /opt/games/barotrauma/libSystem.Native.so Using emulated /opt/games/barotrauma/libsteam_api64.so Using emulated /opt/games/barotrauma/x64/libSDL2-2.0.so.0 Using native(wrapped) libdbus-1.so.3 Using native(wrapped) libX11.so.6 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) libXrandr.so.2 Using native(wrapped) libXrender.so.1 Using native(wrapped) libGL.so.1 Error loading needed lib Microsoft.DiaSymReader.Native.amd64.dll Warning: Cannot dlopen("Microsoft.DiaSymReader.Native.amd64.dll"/0x10202cf50, 1) Error loading needed lib Microsoft.DiaSymReader.Native.amd64.dll Warning: Cannot dlopen("Microsoft.DiaSymReader.Native.amd64.dll"/0x10202cf50, 1) Using emulated /opt/games/barotrauma/libSystem.Security.Cryptography.Native.OpenSsl.so Using native(wrapped) libssl.so.3 Using native(wrapped) libcrypto.so.3 Look for SSL_state in loaded elfs Warning, function SSL_state not found in lib libssl.so.3 Look for SSL_state in loaded elfs Warning, function SSL_state not found in lib libssl.so.3 Look for SSL_state in loaded elfs Warning, function SSL_state not found in lib libssl.so.3 Look for SSL_state in loaded elfs Warning, function SSL_state not found in lib libssl.so.3 Look for ERR_put_error in loaded elfs Warning, function ERR_put_error not found in lib libcrypto.so.3 Look for ERR_put_error in loaded elfs Warning, function ERR_put_error not found in lib libcrypto.so.3 Look for ERR_put_error in loaded elfs Warning, function ERR_put_error not found in lib libcrypto.so.3 Look for ERR_put_error in loaded elfs Warning, function ERR_put_error not found in lib libcrypto.so.3 Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/rico/.local/share/Daedalic Entertainment GmbH/Barotrauma'. at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound) at System.IO.Enumeration.FileSystemEnumerator`1.Init() at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, Boolean isNormalized, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized) at System.IO.Enumeration.FileSystemEnumerableFactory.UserEntries(String directory, String expression, EnumerationOptions options) at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options) at System.IO.Directory.GetFileSystemEntries(String path, String searchPattern, EnumerationOptions enumerationOptions) at System.IO.Directory.GetFileSystemEntries(String path) at Barotrauma.ToolBox.CorrectFilenameCase(String filename, Boolean& corrected, String directory) in C:\Git\Barotrauma\Barotrauma\BarotraumaShared\SharedSource\Utils\ToolBox.cs:line 90 at Barotrauma.ToolBox.CleanUpPathCrossPlatform(String path, Boolean correctFilenameCase, String directory) in C:\Git\Barotrauma\Barotrauma\BarotraumaShared\SharedSource\Utils\ToolBox.cs:line 618 at Barotrauma.IO.Validation.CanWrite(String path, Boolean isDirectory) in C:\Git\Barotrauma\Barotrauma\BarotraumaShared\SharedSource\Utils\SafeIO.cs:line 52 at Barotrauma.IO.SafeXML.SaveSafe(XDocument doc, String path, SaveOptions saveOptions, Boolean throwExceptions) in C:\Git\Barotrauma\Barotrauma\BarotraumaShared\SharedSource\Utils\SafeIO.cs:line 103 at Barotrauma.GameSettings.SaveCurrentConfig() in C:\Git\Barotrauma\Barotrauma\BarotraumaShared\SharedSource\Settings\GameSettings.cs:line 643 at Barotrauma.GameSettings.Init() in C:\Git\Barotrauma\Barotrauma\BarotraumaShared\SharedSource\Settings\GameSettings.cs:line 530 at Barotrauma.GameMain..ctor(String[] args) in C:\Git\Barotrauma\Barotrauma\BarotraumaClient\ClientSource\GameMain.cs:line 234 at Barotrauma.Program.Main(String[] args) in C:\Git\Barotrauma\Barotrauma\BarotraumaClient\ClientSource\Program.cs:line 57 NativeBT: ./Barotrauma() [0x349f17b8] NativeBT: linux-vdso.so.1(__kernel_rt_sigreturn+0) [0x7fb63a57cc] NativeBT: /usr/lib/libc.so.6(+0x83bd0) [0x7fb6223bd0] NativeBT: /usr/lib/libc.so.6(gsignal+0x1c) [0x7fb61dddec] NativeBT: /usr/lib/libc.so.6(abort+0xf0) [0x7fb61ca7bc] NativeBT: [0x5a29eeec] EmulatedBT: ??? [0x110340] EmulatedBT: /opt/games/barotrauma/libcoreclr.so+51235b [0x10287235b] EmulatedBT: /opt/games/barotrauma/libcoreclr.so+512290 [0x102872290] EmulatedBT: ??? [0xffffff01] 3792|SIGABRT @0x7fb6223bd0 (???(/usr/lib/libc.so.6+0x7fb6223bd0)) (x64pc=0x110353/???:"???", rsp=0x10202d3c8, stack=0x101830000:0x102030000 own=(nil) fp=0x10202d3e0), for accessing 0x3e800000ed0 (code=-6/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0) handler=(nil) RSP-0x20:0x000000010202da40 RSP-0x18:0x0000000000000001 RSP-0x10:0x000000010202e060 RSP-0x08:0x000000010202d3e0 RSP+0x00:0x000000010287235b RSP+0x08:0x0000000000000000 RSP+0x10:0x0000000000000001 RSP+0x18:0x000000010202d410 RAX:0x0000000000000000 RCX:0x0000000000000000 RDX:0x0000000000000000 RBX:0x0000000000000006 RSP:0x000000010202d3c8 RBP:0x000000010202d3e0 RSI:0x0000000102a832a0 RDI:0x0000000000000006 R8:0x000000010202cde0 R9:0x0000000000000000 R10:0x000000010938ec58 R11:0x0000000000000082 R12:0x000000010202f510 R13:0x000000010202da40 R14:0x0000000000000001 R15:0x000000010202e060 ./box64-start.sh: line 14: 3792 Aborted (core dumped) box64 "./Barotrauma" ``` ### Tested on Box64 with Dynarec v0.2.3 7e282c9 Rock 5B, LFS, BSP kernel 5.10.160 rkr4.1, Gnome 44.2 PAN_MESA_DEBUG=gofaster,gl3 1080p, default game setting ### Status **Previous behavior:** NOT working. https://github.com/ptitSeb/box86-compatibility-list/issues/266 **Current behavior:** NOT working. ### Screenshots ### OpenGL OpenGL 3 ### Additional Information https://store.steampowered.com/app/602960/Barotrauma/ https://pcgamingwiki.com/wiki/Barotrauma