ptitSeb / box64

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

Portal crashing (RK3588S) #610

Open martinbone opened 1 year ago

martinbone commented 1 year ago

Any ideas why Portal is crashing when I try to run it on Steam (/ Orange Pi 5 / Armbian)? I'm running Steam with: PAN_MESA_DEBUG=gl3 steam

This is the log (from terminal) from the moment I try to launch Portal:

GameAction` [AppID 400, ActionID 1] : LaunchApp changed task to ProcessingInstallScript with ""
GameAction [AppID 400, ActionID 1] : LaunchApp changed task to SynchronizingCloud with ""
GameAction [AppID 400, ActionID 1] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 400, ActionID 1] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 400, ActionID 1] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 400, ActionID 1] : LaunchApp continues with user response "CreatingProcess"
/bin/sh\0-c\0/home/martin/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=400 -- /home/martin/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/martin/.local/share/Steam/steamapps/common/Portal/hl2.sh' -game portal -steam\0
Game process added : AppID 400 "/home/martin/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=400 -- /home/martin/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/martin/.local/share/Steam/steamapps/common/Portal/hl2.sh' -game portal -steam", ProcID 5748, IP 0.0.0.0:0
chdir /home/martin/.local/share/Steam/steamapps/common/Portal
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Box86 with Dynarec v0.3.1 b3b55d2d built on Mar 19 2023 16:13:08
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096 Cores:8
Params database has 17 entries
Box64 with Dynarec v0.2.1 b1923cad built on Mar 19 2023 16:18:57
GameAction [AppID 400, ActionID 1] : LaunchApp changed task to WaitingGameWindow with ""
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 117 Env var
BOX64 try to Preload /home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so /home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so 
Looking for /home/martin/.local/share/Steam/ubuntu12_32/steam-launch-wrapper
argv[1]="--"
argv[2]="/home/martin/.local/share/Steam/steamapps/common/Portal/hl2.sh"
argv[3]="-game"
argv[4]="portal"
argv[5]="-steam"
Rename process to "steam-launch-wrapper"
Using emulated /home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so
Using native(wrapped) libdl.so.2
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) libGL.so.1
Using native(wrapped) libm.so.6
Warning, cannot pre-load of the libs
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
GameAction [AppID 400, ActionID 1] : LaunchApp changed task to Completed with ""
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Box86 with Dynarec v0.3.1 b3b55d2d built on Mar 19 2023 16:13:08
Steam: An X Error occurred
X Error of failed request:  BadWindow (invalid Window parameter)
Major opcode of failed request:  20 (X_GetProperty)
Resource id in failed request:  0x1c000ad
Serial number of failed request:  22
xerror_handler: X failed, continuing
Steam: An X Error occurred
X Error of failed request:  BadWindow (invalid Window parameter)
Major opcode of failed request:  20 (X_GetProperty)
Resource id in failed request:  0x1c000ad
Serial number of failed request:  22
xerror_handler: X failed, continuing
Steam: An X Error occurred
X Error of failed request:  BadWindow (invalid Window parameter)
Major opcode of failed request:  20 (X_GetProperty)
Resource id in failed request:  0x1c000ad
Serial number of failed request:  22
xerror_handler: X failed, continuing
Steam: An X Error occurred
X Error of failed request:  BadWindow (invalid Window parameter)
Major opcode of failed request:  20 (X_GetProperty)
Resource id in failed request:  0x1c000ad
Serial number of failed request:  22
xerror_handler: X failed, continuing
SDL video target is 'x11'
SDL video target is 'x11'
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system DOES NOT support the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
This system DOES NOT support the OpenGL extension GL_EXT_bindable_uniform.
This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
This system supports the OpenGL extension GL_ARB_map_buffer_range.
This system supports the OpenGL extension GL_ARB_vertex_buffer_object.
This system supports the OpenGL extension GL_ARB_occlusion_query.
This system DOES NOT support the OpenGL extension GL_APPLE_texture_range.
This system DOES NOT support the OpenGL extension GL_APPLE_client_storage.
This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer.
This system supports the OpenGL extension GL_ARB_vertex_array_bgra.
This system supports the OpenGL extension GL_EXT_vertex_array_bgra.
This system supports the OpenGL extension GL_ARB_framebuffer_object.
This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker.
This system supports the OpenGL extension GL_ARB_debug_output.
This system supports the OpenGL extension GL_EXT_direct_state_access.
This system DOES NOT support the OpenGL extension GL_NV_bindless_texture.
This system DOES NOT support the OpenGL extension GL_AMD_pinned_memory.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled.
This system supports the OpenGL extension GL_EXT_texture_sRGB_decode.
This system DOES NOT support the OpenGL extension GL_NVX_gpu_memory_info.
This system DOES NOT support the OpenGL extension GL_ATI_meminfo.
This system supports the OpenGL extension GL_EXT_texture_compression_s3tc.
This system supports the OpenGL extension GL_EXT_texture_compression_dxt1.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt3.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt5.
This system supports the OpenGL extension GLX_EXT_swap_control_tear.
GL_NV_bindless_texture: DISABLED
GL_AMD_pinned_memory: DISABLED
GL_EXT_texture_sRGB_decode: AVAILABLE
Error: Global Symbol VR_IsHmdPresent not found, cannot apply R_386_PC32 0xea2824ba (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: Global Symbol VR_Shutdown not found, cannot apply R_386_PC32 0xea282dc2 (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: Global Symbol VR_Shutdown not found, cannot apply R_386_PC32 0xea283772 (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: Global Symbol VR_Shutdown not found, cannot apply R_386_PC32 0xea2837a2 (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: Global Symbol VR_Init not found, cannot apply R_386_PC32 0xea283691 (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: relocating symbols in elf sourcevr.so
 failed to dlopen /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so error=Cannot dlopen("/home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so"/0xf740daec, 2)

AppFramework : Unable to create system SourceVirtualReality001!
Using shader api: shaderapidx9
Convar sdl_displayindex has multiple different change callbacks
Using breakpad crash handler
Setting breakpad minidump AppID = 400
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Installing breakpad exception handler for appid(400)/version(0_client)/tid(5759)
[S_API] SteamAPI_Init(): Loaded '/home/martin/.local/share/Steam/linux32/steamclient.so' OK.
Game process updated : AppID 400 "/home/martin/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=400 -- /home/martin/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/martin/.local/share/Steam/steamapps/common/Portal/hl2.sh' -game portal -steam", ProcID 5759, IP 0.0.0.0:0
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561198051846566 [API loaded yes]
SteamInternal_SetMinidumpSteamID:  Setting Steam ID:  76561198051846566
Missing shutdown function for COM_InitFilesystem( m_StartupInfo.m_pInitialMod ) : COM_ShutdownFileSystem()
Missing shutdown function for Steam3Client().Activate() : Steam3Client().Shutdown()
src/common/framefunction.cpp (225) : CFrameFunctionMgr::Deregister: function to deregister not found
src/common/framefunction.cpp (225) : CFrameFunctionMgr::Deregister: function to deregister not found
Game process removed: AppID 400 "/home/martin/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=400 -- /home/martin/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/martin/.local/share/Steam/steamapps/common/Portal/hl2.sh' -game portal -steam", ProcID 5759 
ThreadGetProcessExitCode: no such process 5759
ThreadGetProcessExitCode: no such process 5756
ThreadGetProcessExitCode: no such process 5749
Game 400 created interface STEAMAPPLIST_INTERFACE_VERSION001 / 
Game 400 created interface STEAMAPPS_INTERFACE_VERSION008 / 
Game 400 created interface STEAMHTMLSURFACE_INTERFACE_VERSION_005 / 
Game 400 created interface STEAMHTTP_INTERFACE_VERSION003 / 
Game 400 created interface STEAMINVENTORY_INTERFACE_V003 / 
Game 400 created interface STEAMMUSICREMOTE_INTERFACE_VERSION001 / 
Game 400 created interface STEAMMUSIC_INTERFACE_VERSION001 / 
Game 400 created interface STEAMPARENTALSETTINGS_INTERFACE_VERSION001 / 
Game 400 created interface STEAMREMOTESTORAGE_INTERFACE_VERSION016 / 
Game 400 created interface STEAMSCREENSHOTS_INTERFACE_VERSION003 / 
Game 400 created interface STEAMUGC_INTERFACE_VERSION015 / 
Game 400 created interface STEAMUSERSTATS_INTERFACE_VERSION012 / 
Game 400 created interface STEAMVIDEO_INTERFACE_V002 / 
Game 400 created interface SteamController008 / 
Game 400 created interface SteamFriends017 / 
Game 400 created interface SteamInput006 / 
Game 400 created interface SteamMatchGameSearch001 / 
Game 400 created interface SteamMatchMaking009 / 
Game 400 created interface SteamMatchMakingServers002 / 
Game 400 created interface SteamNetworking006 / 
Game 400 created interface SteamUser021 / 
Game 400 created interface SteamUser021 / User
Game 400 created interface SteamUtils010 / 
Game 400 method call count for IClientAppManager::GetCurrentLanguage : 1
Game 400 method call count for IClientUtils::RecordSteamInterfaceCreation : 24
Game 400 method call count for IClientUtils::GetAppID : 25
Game 400 method call count for IClientUser::GetSteamID : 1
Uploaded AppInterfaceStats to Steam
ptitSeb commented 1 year ago

I don't see anything obvious in the log.

martinbone commented 1 year ago

This is what I get when launching Steam with BOX86_LOG=1 BOX86_SHOWSEGV=1 :

GameAction [AppID 400, ActionID 1] : LaunchApp changed task to ProcessingInstallScript with ""
GameAction [AppID 400, ActionID 1] : LaunchApp changed task to SynchronizingCloud with ""
GameAction [AppID 400, ActionID 1] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 400, ActionID 1] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 400, ActionID 1] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 400, ActionID 1] : LaunchApp continues with user response "CreatingProcess"
/bin/sh\0-c\0/home/martin/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=400 -- /home/martin/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/martin/.local/share/Steam/steamapps/common/Portal/hl2.sh' -game portal -steam\0
Game process added : AppID 400 "/home/martin/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=400 -- /home/martin/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/martin/.local/share/Steam/steamapps/common/Portal/hl2.sh' -game portal -steam", ProcID 2986, IP 0.0.0.0:0
chdir /home/martin/.local/share/Steam/steamapps/common/Portal
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Debug level is 1
Show Segfault signal even if a signal handler is present
Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Running on Cortex-A55 Cortex-A76 with 8 Cores
Params database has 22 entries
Box86 with Dynarec v0.3.1 b3b55d2d built on Mar 19 2023 16:13:08
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/
Using default BOX86_PATH: ./:bin/
Counted 116 Env var
BOX86 try to Preload /home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so /home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so 
Looking for /home/martin/.local/share/Steam/ubuntu12_32/reaper
argv[1]="SteamLaunch"
argv[2]="AppId=400"
argv[3]="--"
argv[4]="/home/martin/.local/share/Steam/ubuntu12_32/steam-launch-wrapper"
argv[5]="--"
argv[6]="/home/martin/.local/share/Steam/steamapps/common/Portal/hl2.sh"
argv[7]="-game"
argv[8]="portal"
argv[9]="-steam"
Rename process to "reaper"
Using emulated /home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
Using native(wrapped) libdl.so.2
Using native(wrapped) librt.so.1
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libGL.so.1
Using native(wrapped) libm.so.6
Using native(wrapped) libpthread.so.0
Using native(wrapped) libc.so.6
Warning, cannot pre-load the lib (/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so)
GameAction [AppID 400, ActionID 1] : LaunchApp changed task to WaitingGameWindow with ""
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096 Cores:8
Params database has 17 entries
Box64 with Dynarec v0.2.1 b1923cad built on Mar 19 2023 16:18:57
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 118 Env var
BOX64 try to Preload /home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so /home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so 
Looking for /home/martin/.local/share/Steam/ubuntu12_32/steam-launch-wrapper
argv[1]="--"
argv[2]="/home/martin/.local/share/Steam/steamapps/common/Portal/hl2.sh"
argv[3]="-game"
argv[4]="portal"
argv[5]="-steam"
Rename process to "steam-launch-wrapper"
Using emulated /home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so
Using native(wrapped) libdl.so.2
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) libGL.so.1
Using native(wrapped) libm.so.6
Warning, cannot pre-load of the libs
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Debug level is 1
Show Segfault signal even if a signal handler is present
Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
GameAction [AppID 400, ActionID 1] : LaunchApp changed task to Completed with ""
Running on Cortex-A55 Cortex-A76 with 8 Cores
Params database has 22 entries
Box86 with Dynarec v0.3.1 b3b55d2d built on Mar 19 2023 16:13:08
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/
Using default BOX86_PATH: ./:bin/
Counted 117 Env var
BOX86 try to Preload /home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so /home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so 
Looking for /home/martin/.local/share/Steam/steamapps/common/Portal/hl2_linux
Apply RC params for hl2_linux
Applying BOX86_DYNAREC_BIGBLOCK=2
Applying BOX86_DYNAREC_SAFEFLAGS=0
Appling BOX86_DYNAREC_FORWARD=512
argv[1]="-game"
argv[2]="portal"
argv[3]="-steam"
Rename process to "hl2_linux"
Using emulated /home/martin/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so
Using native(wrapped) libdl.so.2
Using native(wrapped) librt.so.1
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libGL.so.1
Using native(wrapped) libm.so.6
Using native(wrapped) libpthread.so.0
Using native(wrapped) libc.so.6
Warning, cannot pre-load the lib (/home/martin/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so)
Using native(wrapped) libmimalloc.so
Using emulated bin/launcher.so
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/libtier0.so
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/libvstdlib.so
Steam: An X Error occurred
X Error of failed request:  BadWindow (invalid Window parameter)
Major opcode of failed request:  20 (X_GetProperty)
Resource id in failed request:  0xa000b3
Serial number of failed request:  22
xerror_handler: X failed, continuing
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/libsteam_api.so
Steam: An X Error occurred
X Error of failed request:  BadWindow (invalid Window parameter)
Major opcode of failed request:  20 (X_GetProperty)
Resource id in failed request:  0xa000b3
Serial number of failed request:  22
xerror_handler: X failed, continuing
Steam: An X Error occurred
X Error of failed request:  BadWindow (invalid Window parameter)
Major opcode of failed request:  20 (X_GetProperty)
Resource id in failed request:  0xa000b3
Serial number of failed request:  22
xerror_handler: X failed, continuing
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/libtogl.so
Using native(wrapped) libSDL2-2.0.so.0
Look for pthread_yield in loaded elfs
Found symbol with version GLIBC_2.4, value = 0xf7ce5c99
Warning: Weak Symbol _ZGTtnaj not found, cannot apply R_386_JMP_SLOT 0xf6598168 (0x8f66)
Warning: Weak Symbol _ZGTtdlPv not found, cannot apply R_386_JMP_SLOT 0xf65982b8 (0x94a6)
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/filesystem_stdio.so
Warning: Weak Symbol _ZGTtnaj not found, cannot apply R_386_JMP_SLOT 0xf4276088 (0x380b6)
Warning: Weak Symbol _ZGTtdlPv not found, cannot apply R_386_JMP_SLOT 0xf4276180 (0x38496)
SDL video target is 'x11'
SDL video target is 'x11'
SDL failed to create GL compatibility profile (whichProfile=0!
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system DOES NOT support the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
This system DOES NOT support the OpenGL extension GL_EXT_bindable_uniform.
This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
This system supports the OpenGL extension GL_ARB_map_buffer_range.
This system supports the OpenGL extension GL_ARB_vertex_buffer_object.
This system supports the OpenGL extension GL_ARB_occlusion_query.
This system DOES NOT support the OpenGL extension GL_APPLE_texture_range.
This system DOES NOT support the OpenGL extension GL_APPLE_client_storage.
This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer.
This system supports the OpenGL extension GL_ARB_vertex_array_bgra.
This system supports the OpenGL extension GL_EXT_vertex_array_bgra.
This system supports the OpenGL extension GL_ARB_framebuffer_object.
This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker.
This system supports the OpenGL extension GL_ARB_debug_output.
This system supports the OpenGL extension GL_EXT_direct_state_access.
This system DOES NOT support the OpenGL extension GL_NV_bindless_texture.
This system DOES NOT support the OpenGL extension GL_AMD_pinned_memory.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled.
This system supports the OpenGL extension GL_EXT_texture_sRGB_decode.
This system DOES NOT support the OpenGL extension GL_NVX_gpu_memory_info.
This system DOES NOT support the OpenGL extension GL_ATI_meminfo.
This system supports the OpenGL extension GL_EXT_texture_compression_s3tc.
This system supports the OpenGL extension GL_EXT_texture_compression_dxt1.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt3.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt5.
This system supports the OpenGL extension GLX_EXT_swap_control_tear.
GL_NV_bindless_texture: DISABLED
GL_AMD_pinned_memory: DISABLED
GL_EXT_texture_sRGB_decode: AVAILABLE
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/engine.so
Warning: Weak Symbol _ZGTtdlPv not found, cannot apply R_386_JMP_SLOT 0xeff691f0 (0x1ac716)
Warning: Weak Symbol _ZGTtnaj not found, cannot apply R_386_JMP_SLOT 0xeff69430 (0x1ad016)
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/inputsystem.so
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/materialsystem.so
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/datacache.so
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/studiorender.so
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/vphysics.so
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/video_services.so
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/vguimatsurface.so
Using native(wrapped) libfontconfig.so.1
Using native(wrapped) libfreetype.so.6
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/vgui2.so
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Using emulated /home/martin/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/libstdc++.so.6
Using emulated /home/martin/.local/share/Steam/ubuntu12_32/steam-runtime/lib/i386-linux-gnu/libgcc_s.so.1
Error: Global Symbol VR_IsHmdPresent not found, cannot apply R_386_PC32 0xea0824ba (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: Global Symbol VR_Shutdown not found, cannot apply R_386_PC32 0xea082dc2 (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: Global Symbol VR_Shutdown not found, cannot apply R_386_PC32 0xea083772 (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: Global Symbol VR_Shutdown not found, cannot apply R_386_PC32 0xea0837a2 (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: Global Symbol VR_Init not found, cannot apply R_386_PC32 0xea083691 (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: relocating symbols in elf sourcevr.so
Error initializing needed lib sourcevr.so
 failed to dlopen /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so error=Cannot dlopen("/home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so"/0xf720dafc, 2)

AppFramework : Unable to create system SourceVirtualReality001!
Using shader api: shaderapidx9
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/shaderapidx9.so
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/video_bink.so
Look for pthread_yield in loaded elfs
Found symbol with version GLIBC_2.4, value = 0xf7ce5c99
Using emulated /home/martin/.local/share/Steam/steamapps/common/Portal/bin/video_webm.so
Convar sdl_displayindex has multiple different change callbacks
Using breakpad crash handler
Setting breakpad minidump AppID = 400
Forcing breakpad minidump interfaces to load
Using emulated /home/martin/.local/share/Steam/linux32/steamclient.so
Warning: Weak Symbol _ZGTtnaj not found, cannot apply R_386_JMP_SLOT 0xe8daff5c (0x1144e6)
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Using emulated /home/martin/.local/share/Steam/linux32/crashhandler.so
Warning: Weak Symbol _ZGTtnaj not found, cannot apply R_386_JMP_SLOT 0xe3dedf20 (0x9af6)
Installing breakpad exception handler for appid(400)/version(0_client)/tid(2995)
[S_API] SteamAPI_Init(): Loaded '/home/martin/.local/share/Steam/linux32/steamclient.so' OK.
Game process updated : AppID 400 "/home/martin/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=400 -- /home/martin/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/martin/.local/share/Steam/steamapps/common/Portal/hl2.sh' -game portal -steam", ProcID 2995, IP 0.0.0.0:0
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561198051846566 [API loaded yes]
SteamInternal_SetMinidumpSteamID:  Setting Steam ID:  76561198051846566
2995|SIGSEGV @0xf5e97100 (???(/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0/0xf5e97100)) (x86pc=0x414b036b/???:"???", esp=0xf720ea3c, stack=0xf6a14000:0xf7214000 own=(nil) fp=0xf720eab8), for accessing 0x14 (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0)
ESP-0x10:0xed98d6ef ESP-0x0c:0xed9a3864 ESP-0x08:0xed9a3859 ESP-0x04:0x00000000
ESP+0x00:0xed988310 ESP+0x04:0x00003000 ESP+0x08:0xed9b2000 ESP+0x0c:0xf720eab8
2995|Double SIGSEGV (code=1, pc=0xf5e97100, addr=0x14)!
Missing shutdown function for COM_InitFilesystem( m_StartupInfo.m_pInitialMod ) : COM_ShutdownFileSystem()
Missing shutdown function for Steam3Client().Activate() : Steam3Client().Shutdown()
src/common/framefunction.cpp (225) : CFrameFunctionMgr::Deregister: function to deregister not found
src/common/framefunction.cpp (225) : CFrameFunctionMgr::Deregister: function to deregister not found
2995|SIGSEGV @0xf7c6b164 (strlen (/lib/arm-linux-gnueabihf/libc.so.6)) (x86pc=0x4003003b/???:"???", esp=0xf720de94, stack=0xf6a14000:0xf7214000 own=(nil) fp=0xf720e0e0), for accessing (nil) (code=1/prot=0), db=(nil)((nil):(nil)/(nil):(nil)/???:clean, hash:0/0)
ESP-0x10:0xe8daf960 ESP-0x0c:0xe8daf960 ESP-0x08:0x00000000 ESP-0x04:0xf720e0e0
ESP+0x00:0xe7af3ef3 ESP+0x04:0xe8e33658 ESP+0x08:0x00000002 ESP+0x0c:0x00000013
2995|Double SIGSEGV (code=1, pc=0xf7c6b164, addr=(nil))!
Game process removed: AppID 400 "/home/martin/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=400 -- /home/martin/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/martin/.local/share/Steam/steamapps/common/Portal/hl2.sh' -game portal -steam", ProcID 2995 
ThreadGetProcessExitCode: no such process 2995
ThreadGetProcessExitCode: no such process 2992
ThreadGetProcessExitCode: no such process 2987
Game 400 created interface STEAMAPPLIST_INTERFACE_VERSION001 / 
Game 400 created interface STEAMAPPS_INTERFACE_VERSION008 / 
Game 400 created interface STEAMHTMLSURFACE_INTERFACE_VERSION_005 / 
Game 400 created interface STEAMHTTP_INTERFACE_VERSION003 / 
Game 400 created interface STEAMINVENTORY_INTERFACE_V003 / 
Game 400 created interface STEAMMUSICREMOTE_INTERFACE_VERSION001 / 
Game 400 created interface STEAMMUSIC_INTERFACE_VERSION001 / 
Game 400 created interface STEAMPARENTALSETTINGS_INTERFACE_VERSION001 / 
Game 400 created interface STEAMREMOTESTORAGE_INTERFACE_VERSION016 / 
Game 400 created interface STEAMSCREENSHOTS_INTERFACE_VERSION003 / 
Game 400 created interface STEAMUGC_INTERFACE_VERSION015 / 
Game 400 created interface STEAMUSERSTATS_INTERFACE_VERSION012 / 
Game 400 created interface STEAMVIDEO_INTERFACE_V002 / 
Game 400 created interface SteamController008 / 
Game 400 created interface SteamFriends017 / 
Game 400 created interface SteamInput006 / 
Game 400 created interface SteamMatchGameSearch001 / 
Game 400 created interface SteamMatchMaking009 / 
Game 400 created interface SteamMatchMakingServers002 / 
Game 400 created interface SteamNetworking006 / 
Game 400 created interface SteamUser021 / 
Game 400 created interface SteamUser021 / User
Game 400 created interface SteamUtils010 / 
Game 400 method call count for IClientAppManager::GetCurrentLanguage : 1
Game 400 method call count for IClientUtils::RecordSteamInterfaceCreation : 24
Game 400 method call count for IClientUtils::GetAppID : 25
Game 400 method call count for IClientUser::GetSteamID : 1
Uploaded AppInterfaceStats to Steam
martinbone commented 1 year ago

And this is what I get when I try to run Portal from the command line:


martin@orangepi5:~/.local/share/Steam/steamapps/common/Portal$ sudo ./hl2.sh
Box86 with Dynarec v0.3.1 b3b55d2d built on Mar 19 2023 16:13:08
SDL video target is 'x11'
SDL video target is 'x11'
SDL failed to create GL compatibility profile (whichProfile=0!
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system DOES NOT support the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
This system DOES NOT support the OpenGL extension GL_EXT_bindable_uniform.
This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
This system supports the OpenGL extension GL_ARB_map_buffer_range.
This system supports the OpenGL extension GL_ARB_vertex_buffer_object.
This system supports the OpenGL extension GL_ARB_occlusion_query.
This system DOES NOT support the OpenGL extension GL_APPLE_texture_range.
This system DOES NOT support the OpenGL extension GL_APPLE_client_storage.
This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer.
This system supports the OpenGL extension GL_ARB_vertex_array_bgra.
This system supports the OpenGL extension GL_EXT_vertex_array_bgra.
This system supports the OpenGL extension GL_ARB_framebuffer_object.
This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker.
This system supports the OpenGL extension GL_ARB_debug_output.
This system supports the OpenGL extension GL_EXT_direct_state_access.
This system DOES NOT support the OpenGL extension GL_NV_bindless_texture.
This system DOES NOT support the OpenGL extension GL_AMD_pinned_memory.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled.
This system supports the OpenGL extension GL_EXT_texture_sRGB_decode.
This system DOES NOT support the OpenGL extension GL_NVX_gpu_memory_info.
This system DOES NOT support the OpenGL extension GL_ATI_meminfo.
This system supports the OpenGL extension GL_EXT_texture_compression_s3tc.
This system supports the OpenGL extension GL_EXT_texture_compression_dxt1.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt3.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt5.
This system supports the OpenGL extension GLX_EXT_swap_control_tear.
GL_NV_bindless_texture: DISABLED
GL_AMD_pinned_memory: DISABLED
GL_EXT_texture_sRGB_decode: AVAILABLE
Error: Global Symbol VR_IsHmdPresent not found, cannot apply R_386_PC32 0xe9c914ba (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: Global Symbol VR_Shutdown not found, cannot apply R_386_PC32 0xe9c91dc2 (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: Global Symbol VR_Shutdown not found, cannot apply R_386_PC32 0xe9c92772 (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: Global Symbol VR_Shutdown not found, cannot apply R_386_PC32 0xe9c927a2 (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: Global Symbol VR_Init not found, cannot apply R_386_PC32 0xe9c92691 (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: relocating symbols in elf sourcevr.so
 failed to dlopen /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so error=Cannot dlopen("/home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so"/0xf6d5e0ec, 2)

AppFramework : Unable to create system SourceVirtualReality001!
Using shader api: shaderapidx9
Convar sdl_displayindex has multiple different change callbacks
Setup file 'gameinfo.txt' doesn't exist in subdirectory 'hl2'.
Check your -game parameter or VCONFIG setting.
ptitSeb commented 1 year ago

There seems to be an issue with the SDL2. It may be using a specific SDL2 and need to use the emulated version.

Run with BOX86_EMULATED_LIBS=libSDL2-2.0.so.0 env. var., like on the command line, and it should work. I should add that to the defult box86.box86rc file. I guess I need to add back that to the hl2_linux profile

martinbone commented 1 year ago

This what happens when I run: BOX86_EMULATED_LIBS=libSDL2-2.0.so.0 ./hl2.sh

martin@orangepi5:~/.local/share/Steam/steamapps/common/Portal$ BOX86_EMULATED_LIBS=libSDL2-2.0.so.0 ./hl2.sh
Box86 with Dynarec v0.3.1 b3b55d2d built on Mar 19 2023 16:13:08
SDL video target is 'x11'
SDL video target is 'x11'
SDL failed to create GL compatibility profile (whichProfile=0!
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system DOES NOT support the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
This system DOES NOT support the OpenGL extension GL_EXT_bindable_uniform.
This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
This system supports the OpenGL extension GL_ARB_map_buffer_range.
This system supports the OpenGL extension GL_ARB_vertex_buffer_object.
This system supports the OpenGL extension GL_ARB_occlusion_query.
This system DOES NOT support the OpenGL extension GL_APPLE_texture_range.
This system DOES NOT support the OpenGL extension GL_APPLE_client_storage.
This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer.
This system supports the OpenGL extension GL_ARB_vertex_array_bgra.
This system supports the OpenGL extension GL_EXT_vertex_array_bgra.
This system supports the OpenGL extension GL_ARB_framebuffer_object.
This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker.
This system supports the OpenGL extension GL_ARB_debug_output.
This system supports the OpenGL extension GL_EXT_direct_state_access.
This system DOES NOT support the OpenGL extension GL_NV_bindless_texture.
This system DOES NOT support the OpenGL extension GL_AMD_pinned_memory.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled.
This system supports the OpenGL extension GL_EXT_texture_sRGB_decode.
This system DOES NOT support the OpenGL extension GL_NVX_gpu_memory_info.
This system DOES NOT support the OpenGL extension GL_ATI_meminfo.
This system supports the OpenGL extension GL_EXT_texture_compression_s3tc.
This system supports the OpenGL extension GL_EXT_texture_compression_dxt1.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt3.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt5.
This system supports the OpenGL extension GLX_EXT_swap_control_tear.
GL_NV_bindless_texture: DISABLED
GL_AMD_pinned_memory: DISABLED
GL_EXT_texture_sRGB_decode: AVAILABLE
Error: Global Symbol VR_IsHmdPresent not found, cannot apply R_386_PC32 0xea4404ba (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: Global Symbol VR_Shutdown not found, cannot apply R_386_PC32 0xea440dc2 (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: Global Symbol VR_Shutdown not found, cannot apply R_386_PC32 0xea441772 (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: Global Symbol VR_Shutdown not found, cannot apply R_386_PC32 0xea4417a2 (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: Global Symbol VR_Init not found, cannot apply R_386_PC32 0xea441691 (0xfffffffc) in /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so
Error: relocating symbols in elf sourcevr.so
 failed to dlopen /home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so error=Cannot dlopen("/home/martin/.local/share/Steam/steamapps/common/Portal/bin/sourcevr.so"/0xf72fda9c, 2)

AppFramework : Unable to create system SourceVirtualReality001!
Using shader api: shaderapidx9
Convar sdl_displayindex has multiple different change callbacks
Setup file 'gameinfo.txt' doesn't exist in subdirectory 'hl2'.
Check your -game parameter or VCONFIG setting.
martin@orangepi5:~/.local/share/Steam/steamapps/common/Portal$
ptitSeb commented 1 year ago

When running from command line, you need -game portal argument to play portal.

Is your system SDL2 built for OpenGL? Or is it a version built only for GLES2?

martinbone commented 1 year ago

OK ... thanks.

I'm not sure about SDL2. Is there an easy way to find out? I'm using the latest Armbian for Orange Pi 5.