box64 icon indicating copy to clipboard operation
box64 copied to clipboard

Barotrauma (Native) crashed back to console after shortly showing splash loading screen

Open ricoazzurro opened this issue 2 years ago • 6 comments

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:

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

ricoazzurro avatar Jun 17 '23 02:06 ricoazzurro

The error is this:

Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/rico/.local/share/Daedalic Entertainment GmbH/Barotrauma'.

Does this folder actually exist? If not, maybe try to create it as a workaround?

ptitSeb avatar Jun 17 '23 06:06 ptitSeb

Thanks for the diagnose.

After fixing the folder env issue, by putting envs in its original start.sh, the game did go further, it shows the title screen completely as,

Barotrauma-1

Then wierd thing happens, when selecting language or sometimes even stays at title screen for a while, it crashed back to console with different error logs,

  1. the error log with Unimplemented Opcode (A0 00 00 00)
Error loading needed lib Microsoft.DiaSymReader.Native.amd64.dll
Warning: Cannot dlopen("Microsoft.DiaSymReader.Native.amd64.dll"/0x1a2b5e530, 1)
2482|0x102878af0: Unimplemented Opcode (A0 00 00 00) C4 E3 7D 18 87 00 03 00 00 01 C4 E3 75 18 8F
...
2482|Ask to run at NULL, quit silently
Warning, CS is not default value: 0x0

full log, barotrauma-1-opcode.log

  1. the error log without opcode, stopped at webm_mem_playback_x64.so.so
rico [ /opt/games/barotrauma ]$ ./start.sh 
Dynarec will try to emulate a strong memory model with limited performance loss
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 6eb72b7 built on Jun 22 2023 16:03:22
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 63 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"/0x10202da50, 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
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
Error loading needed lib Microsoft.DiaSymReader.Native.amd64.dll
Warning: Cannot dlopen("Microsoft.DiaSymReader.Native.amd64.dll"/0x1a2b5e530, 1)
Error loading needed lib Microsoft.DiaSymReader.Native.amd64.dll
Warning: Cannot dlopen("Microsoft.DiaSymReader.Native.amd64.dll"/0x1a2b5e530, 1)
Error loading needed lib freetype6.so
Warning: Cannot dlopen("freetype6.so"/0x10202cea0, 1)
Using emulated /opt/games/barotrauma/libfreetype6.so
Using native(wrapped) libopenal.so.1
[ALSOFT] (EE) Failed to connect PipeWire event context (errno: 112)
Error loading needed lib webm_mem_playback_x64.so.so
Warning: Cannot dlopen("webm_mem_playback_x64.so.so"/0x10202cfb0, 1)
Error loading needed lib libwebm_mem_playback_x64.so.so
Warning: Cannot dlopen("libwebm_mem_playback_x64.so.so"/0x10202cfb0, 1)
Using emulated /opt/games/barotrauma/webm_mem_playback_x64.so
Sigfault/Segbus while quitting, exiting silently

need help :'(

ricoazzurro avatar Jun 23 '23 07:06 ricoazzurro

Have you tried BOX64_DYNAREC_STRONGMEM=1 and/or BOX64_DYNAREC_BIGBLOCK=0?

ptitSeb avatar Jun 23 '23 07:06 ptitSeb

I've tested and, will test or. and create an empty file config_player.xml as shown in the game's crashreport.

with BOX64_DYNAREC_BIGBLOCK=0, the game runs further, the best I got is it shows animations (opening cg), and loading to 52% then crash.

And it crashes differently with same env...

Even tested export LIBGL_ALWAYS_SOFTWARE=1.

I'll wait for you back from heavy developping of wow64 when you have more time to trace this game personally :)

Thanks.

ricoazzurro avatar Jun 23 '23 15:06 ricoazzurro

I have moved forward to the loading page, crashed at 52%. Microsoft.DiaSymReader.Native.amd64.dll seems to be blamed.

Tested the start script as below, no luck.

#!/bin/bash

cd /opt/games/barotrauma

# export PAN_MESA_DEBUG=gl3
export LC_ALL=C
export TERM=xterm
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
[ -z "$XDG_DATA_HOME" ] && export XDG_DATA_HOME="$HOME/.local/share"
HOMEDATA="$XDG_DATA_HOME/Daedalic Entertainment GmbH/Barotrauma"
TMPDIR="/tmp/BarotraumaHome"
rm -rf /tmp/BarotraumaHome
mkdir -p "$HOMEDATA" "$TMPDIR"
for name in creature_metrics.xml config_player.xml; do
    touch "$HOMEDATA/$name"
    ln -s "$HOMEDATA/$name" "$TMPDIR/$name"
done

# 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 BOX64_DYNAREC_BIGBLOCK=0
export BOX86_PREFER_EMULATED=1
# export MESA_GL_VERSION_OVERRIDE=4.4
# export MESA_GLSL_VERSION_OVERRIDE=440
# export LIBGL_ALWAYS_SOFTWARE=1
# BOX64_LOG=1
export BOX64_DYNAREC=0
export BOX64_NOBANNER=1

LIBGL_ALWAYS_SOFTWARE=1 box64 "./Barotrauma" -force-opengl
rico [ /opt/games/barotrauma ]$ ./box64-start.sh 
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 PageSize:4096 Running on Cortex-A55 Cortex-A76 with 8 Cores
Will use Hardware counter measured at 24.0 MHz emulating 768 MHz
Params database has 61 entries
Box64 with Dynarec v0.2.7 a8866c3 built on Apr  3 2024 08:04:05
BOX64: Detected 48bits at least of address space
Counted 67 Env var
BOX64 LIB PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/
BOX64 BIN PATH: ./:bin/:/opt/rustc/bin/:/usr/local/bin/:/usr/bin/:/opt/ant/bin/:/opt/jdk/bin/:/opt/bin/
Looking for ./Barotrauma
Rename process to "Barotrauma"
Using native(wrapped) libpthread.so.0
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 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 /opt/games/barotrauma/libhostfxr.so
Using emulated /opt/games/barotrauma/libhostpolicy.so
Using emulated /opt/games/barotrauma/libcoreclr.so
Warning: Weak Symbol __gmon_start__ not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff046da640 (0x75146)
Warning: Weak Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff046da6d8 (0x75276)
Warning: Weak Symbol _ZTH27t_pStackWalkerWalkingThread not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff046da6e0 (0x75286)
Warning: Weak Symbol _ZTHN9StressLog19t_pCurrentThreadLogE not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff046da700 (0x752c6)
Warning: Weak Symbol _ZTH15t_CantStopCount not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff046da708 (0x752d6)
Warning: Weak Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff046da760 (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"/0x7fff045c4b64, 102)
Error loading needed lib liblttng-ust-tracepoint.so.0
Warning: Cannot dlopen("liblttng-ust-tracepoint.so.0"/0x7fff045c4b64, 102)
Error initializing native libnuma.so.1 (last dlerror is libnuma.so.1: cannot open shared object file: No such file or directory)
Error loading needed lib libnuma.so.1
Warning: Cannot dlopen("libnuma.so.1"/0x7fff045c450d, 1)
Error initializing native libnuma.so.1 (last dlerror is libnuma.so.1: cannot open shared object file: No such file or directory)
Error loading needed lib libnuma.so.1.0.0
Warning: Cannot dlopen("libnuma.so.1.0.0"/0x7fff045c451a, 1)
Error initializing native libnuma.so (last dlerror is libnuma.so.1: cannot open shared object file: No such file or directory)
Error loading needed lib libnuma.so
Warning: Cannot dlopen("libnuma.so"/0x7fff045c452b, 1)
Using emulated /opt/games/barotrauma/libclrjit.so
Warning: Weak Symbol __gmon_start__ not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff06332750 (0x15c76)
Warning: Weak Symbol _ZTH16t_CantAllocCount not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff063327e0 (0x15d96)
Warning: Weak Symbol _ZTH12t_ThreadType not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff063327e8 (0x15da6)
Error initializing native libnuma.so.1 (last dlerror is libnuma.so.1: cannot open shared object file: No such file or directory)
Error loading needed lib libnuma.so.1
Warning: Cannot dlopen("libnuma.so.1"/0x7fff062ee59f, 1)
Error initializing native libnuma.so.1 (last dlerror is libnuma.so.1: cannot open shared object file: No such file or directory)
Error loading needed lib libnuma.so.1.0.0
Warning: Cannot dlopen("libnuma.so.1.0.0"/0x7fff062ee5ac, 1)
Error initializing native libnuma.so (last dlerror is libnuma.so.1: cannot open shared object file: No such file or directory)
Error loading needed lib libnuma.so
Warning: Cannot dlopen("libnuma.so"/0x7fff062ee5bd, 1)
Error loading needed lib linux_steam_env.so
Warning: Cannot dlopen("linux_steam_env.so"/0xffffb7d1d910, 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) libxcb.so.1
Using native(wrapped) libXau.so.6
Using native(wrapped) libXdmcp.so.6
Using native(wrapped) libXext.so.6
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXrender.so.1
Using native(wrapped) libGL.so.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
Error loading needed lib freetype6.so
Warning: Cannot dlopen("freetype6.so"/0xffffb7d1ccd0, 1)
Using emulated /opt/games/barotrauma/libfreetype6.so
Using native(wrapped) libopenal.so.1
Error loading needed lib webm_mem_playback_x64.so.so
Warning: Cannot dlopen("webm_mem_playback_x64.so.so"/0xffffb7d1cde0, 1)
Error loading needed lib libwebm_mem_playback_x64.so.so
Warning: Cannot dlopen("libwebm_mem_playback_x64.so.so"/0xffffb7d1cde0, 1)
Using emulated /opt/games/barotrauma/webm_mem_playback_x64.so
Using emulated /opt/games/barotrauma/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"/0xfffef8df32a0, 1)
Error loading needed lib Microsoft.DiaSymReader.Native.amd64.dll
Warning: Cannot dlopen("Microsoft.DiaSymReader.Native.amd64.dll"/0xfffef8df3830, 1)
Error loading needed lib Microsoft.DiaSymReader.Native.amd64.dll
Warning: Cannot dlopen("Microsoft.DiaSymReader.Native.amd64.dll"/0xfffef8df6310, 1)
Error loading needed lib Microsoft.DiaSymReader.Native.amd64.dll
Warning: Cannot dlopen("Microsoft.DiaSymReader.Native.amd64.dll"/0xfffef8df6310, 1)
16355|Double SIGSEGV (code=1, pc=0xffff740b3f08, addr=0x5d0, prot=00)!
Sigfault/Segbus while quitting, exiting silently

ricoazzurro avatar Apr 03 '24 03:04 ricoazzurro