ptitSeb / box86

Box86 - Linux Userspace x86 Emulator with a twist, targeted at ARM Linux devices
https://box86.org
MIT License
3.36k stars 233 forks source link

steam not running for me on raspberry pi4 x64 4GB #813

Closed RoanBrand closed 1 year ago

RoanBrand commented 1 year ago

Hi

Running latest rpi OS x64 version on an external ssd. Have 8GB swap set up. GPU mem set to 128mb. Not sure if relevant, but rpi is running without monitor, but booted to desktop. Accessing through realVNC.

Installed box86 and box64 (also tried steam_chrome branch) Ran install_steam.sh

I can install, login to steam, but crashes before full launch. This is the output:

roan@rpi4:~ $ steam
steam.sh[10783]: Running Steam on debian 11 64-bit
steam.sh[10783]: STEAM_RUNTIME is enabled by the user
setup.sh[10851]: Steam runtime environment up-to-date!
steam.sh[10783]: Steam client's requirements are satisfied
Box86 with Dynarec v0.3.1 4591d337 built on Apr 12 2023 12:43:13
WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
[2023-04-12 14:26:20] Startup - updater built Mar 24 2023 17:19:53
[2023-04-12 14:26:20] Startup - Steam Client launched with: '/home/roan/.local/share/Steam/ubuntu12_32/steam' '-noreactlogin' 'steam://open/minigameslist'
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2023-04-12 14:26:22] Loading cached metrics from disk (/home/roan/.local/share/Steam/package/steam_client_metrics.bin)
[2023-04-12 14:26:22] Using the following download hosts for Public, Realm steamglobal
[2023-04-12 14:26:22] 1. https://client-update.akamai.steamstatic.com, /, Realm 'steamglobal', weight was 1000, source = 'update_hosts_cached.vdf'
[2023-04-12 14:26:22] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'update_hosts_cached.vdf'
[2023-04-12 14:26:22] 3. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2023-04-12 14:26:22] Checking for update on startup
[2023-04-12 14:26:22] Checking for available updates...
[2023-04-12 14:26:22] Downloading manifest: https://client-update.akamai.steamstatic.com/steam_client_ubuntu12
[2023-04-12 14:26:22] Manifest download: send request
[2023-04-12 14:26:22] Manifest download: waiting for download to finish
[2023-04-12 14:26:24] Manifest download: finished
[2023-04-12 14:26:24] Download skipped: /steam_client_ubuntu12 version 1679680416, installed version 1679680416, existing pending version 0
[2023-04-12 14:26:24] Nothing to do
[2023-04-12 14:26:24] Verifying installation...
[2023-04-12 14:26:24] Performing checksum verification of executable files
[2023-04-12 14:26:27] Verification complete
Error initializing native libpng12.so.0 (last dlerror is libpng12.so.0: wrong ELF class: ELFCLASS64)
Loaded SDL version 3.0.0-1117-g727c7d4e2
XRRGetOutputInfo Workaround: initialized with override: 0 real: 0x40810120
GetWin32Stats: display was not open yet, good
steamwebhelper.sh[10920]: Runtime for steamwebhelper: defaulting to /home/roan/.local/share/Steam/ubuntu12_64/steam-runtime-heavy
steamwebhelper.sh[10920]: Using CEF sandbox (try with -no-cef-sandbox if this fails)
CAppInfoCacheReadFromDiskThread took 1 milliseconds to initialize
Dynarec for ARM64, with extension: ASIMD CRC32 PageSize:4096 Cores:4
Params database has 17 entries
Box64 with Dynarec v0.2.1 b1923cad built on Apr 12 2023 13:35:05
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 79 Env var
Looking for /home/roan/.local/share/Steam/ubuntu12_32/../ubuntu12_64/gldriverquery
Rename process to "gldriverquery"
Using native(wrapped) libSDL2-2.0.so.0
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) libm.so.6
Box86 with Dynarec v0.3.1 4591d337 built on Apr 12 2023 12:43:13
Dynarec for ARM64, with extension: ASIMD CRC32 PageSize:4096 Cores:4
Params database has 17 entries
Box64 with Dynarec v0.2.1 b1923cad built on Apr 12 2023 13:35:05
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 79 Env var
Looking for /home/roan/.local/share/Steam/ubuntu12_32/../ubuntu12_64/vulkandriverquery
Rename process to "vulkandriverquery"
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) libvulkan.so.1
Vulkan missing requested extension 'VK_KHR_surface'.
Vulkan missing requested extension 'VK_KHR_xlib_surface'.
BInit - Unable to initialize Vulkan!
Box86 with Dynarec v0.3.1 4591d337 built on Apr 12 2023 12:43:13
WARNING: v3dv is neither a complete nor a conformant Vulkan implementation. Testing use only.
Failed to init SteamVR because it isn't installed
roaming config store loaded successfully - 0 bytes.

(steam:10884): Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init()

(steam:10884): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixflat",

(steam:10884): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixflat",

(steam:10884): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixflat",

(steam:10884): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixflat",

(steam:10884): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixflat",

(steam:10884): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixflat",

(steam:10884): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixflat",

(steam:10884): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixflat",

(steam:10884): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixflat",

(steam:10884): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixflat",

(steam:10884): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixflat",

(steam:10884): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixflat",
BRefreshApplicationsInLibrary 1: 18ms
GetWin32Stats: restoring previous glx context
src/tier1/fileio.cpp (5312) : m_vecRegisteredWriters.Count() == 0
src/tier1/fileio.cpp (5312) : m_vecRegisteredWriters.Count() == 0

Cannot figure this one out yet. Any help would be appreciated. Thanks in advance!

RoanBrand commented 1 year ago

Got it working. Most likely due to no monitor connected and running over RealVNC. Fixed it by uncommenting/changing one of these in /boot/config.txt:

hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=82
hdmi_drive=2

And reboot. These will force the Rpi to think there is a monitor connected to it.