ubuntu / WSL

Ubuntu WSL image build and launcher code.
MIT License
152 stars 46 forks source link

`Counter-Strike 2` installed via Steam Deb package cannot be played under Ubuntu WSL #456

Open linghengqian opened 7 months ago

linghengqian commented 7 months ago

cmd /c ver

Microsoft Windows [版本 10.0.22631.3374]

wsl --status

默认分发: Ubuntu-22.04 默认版本: 2

Did the problem occur during installation?

What happened?

What was expected?

Steps to reproduce

sudo apt update && sudo apt upgrade -y

This is just to install more potential Gnome dependencies in case some weird dependencies are missing.

sudo apt install gnome-text-editor gimp vlc nautilus x11-apps -y

cd /tmp/

The main reason to install microsoft-edge is that steam requires a browser on the system to open the URL.

wget https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_122.0.2365.92-1_amd64.deb?brand=M102 -O ./microsoft-edge-stable.deb sudo apt install --fix-missing ./microsoft-edge-stable.deb -y

Open microsoft-edge and then close it. This is to enable the browser to hook into the URL.

microsoft-edge

wget https://repo.steampowered.com/steam/archive/precise/steam_latest.deb sudo apt install --fix-missing ./steam_latest.deb -y sudo dpkg --add-architecture i386 sudo apt update && sudo apt upgrade -y sudo apt install libc6:amd64 libc6:i386 libegl1:amd64 libegl1:i386 libgbm1:amd64 libgbm1:i386 libgl1-mesa-dri:amd64 libgl1-mesa-dri:i386 libgl1:amd64 libgl1:i386 steam-libs-amd64:amd64 steam-libs-i386:i386 -y steam

- Log in with your personal steam account. This requires registration at https://store.steampowered.com/ , unfortunately I can't provide a steam account here due to steam's EULA.
- ![image](https://github.com/ubuntu/WSL/assets/20187731/126dedb0-378e-44b4-9b63-4ae9b2e2e696)
- Install `Counter-Strike 2`. This is a free game located at https://store.steampowered.com/app/730/CounterStrike_2/ .
- ![image](https://github.com/ubuntu/WSL/assets/20187731/769a51a6-054b-4d68-81c9-437fe7aaeae3)
- Click `PLAY` when the download is complete.
- ![image](https://github.com/ubuntu/WSL/assets/20187731/02588c90-cfbe-47dc-9843-e343004dccac)
- ![image](https://github.com/ubuntu/WSL/assets/20187731/8b30fec4-94e5-488f-b684-029674704245)
- After a while of waiting, nothing is displayed and after a while the running of `Counter-Strike 2` is aborted.
- ![image](https://github.com/ubuntu/WSL/assets/20187731/40aa44ff-307a-4bc6-abab-72714e39d026)
- The Ubuntu Shell memory for starting steam has the following log.
```shell
linghengqian@DESKTOP-TOORFNG:~$ steam
steam.sh[90919]: Running Steam on ubuntu 22.04 64-bit
steam.sh[90919]: STEAM_RUNTIME is enabled automatically
setup.sh[91037]: Steam runtime environment up-to-date!
steam.sh[90919]: Steam client's requirements are satisfied
tid(91092) burning pthread_key_t == 0 so we never use it
[2024-04-07 18:19:05] Startup - updater built Mar  6 2024 20:27:25
[2024-04-07 18:19:05] Startup - Steam Client launched with: '/home/linghengqian/.local/share/Steam/ubuntu12_32/steam'
minidumps folder is set to /tmp/dumps
04/07 18:19:05 Init: Installing breakpad exception handler for appid(steam)/version(1709846872)/tid(91092)
[2024-04-07 18:19:05] Loading cached metrics from disk (/home/linghengqian/.local/share/Steam/package/steam_client_metrics.bin)
[2024-04-07 18:19:05] Using the following download hosts for Public, Realm steamglobal
[2024-04-07 18:19:05] 1. https://client-update.akamai.steamstatic.com, /, Realm 'steamglobal', weight was 1000, source = 'update_hosts_cached.vdf'
[2024-04-07 18:19:05] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'update_hosts_cached.vdf'
[2024-04-07 18:19:05] 3. https://cdn.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2024-04-07 18:19:05] Verifying installation...
[2024-04-07 18:19:05] Verification complete
UpdateUI: skip show logo
Steam logging initialized: directory: /home/linghengqian/.local/share/Steam/logs

XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xf64ed370
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xf64ebcc0
steamwebhelper.sh[91201]: === Sun Apr  7 06:19:06 PM CST 2024 ===
steamwebhelper.sh[91201]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/linghengqian/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
CAppInfoCacheReadFromDiskThread took 22 milliseconds to initialize
Steam Runtime Launch Service: starting steam-runtime-launcher-service
Steam Runtime Launch Service: steam-runtime-launcher-service is running pid 91360
bus_name=com.steampowered.PressureVessel.LaunchAlongsideSteam
Segmentation fault
steamwebhelper.sh[91669]: === Sun Apr  7 06:19:16 PM CST 2024 ===
steamwebhelper.sh[91669]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/linghengqian/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
BRefreshApplicationsInLibrary 1: 1ms
BuildCompleteAppOverviewChange: 187 apps
RegisterForAppOverview 1: 20ms
RegisterForAppOverview 2: 21ms
/bin/sh\0-c\0/home/linghengqian/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=730 -- /home/linghengqian/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/linghengqian/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper'/_v2-entry-point --verb=waitforexitandrun --  '/home/linghengqian/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/cs2.sh' -steam\0
chdir "/home/linghengqian/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive"
ERROR: ld.so: object '/home/linghengqian/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/linghengqian/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/linghengqian/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/linghengqian/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/linghengqian/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 92273 != 92272, skipping destruction (fork without exec?)
pid 92274 != 92272, skipping destruction (fork without exec?)
Loaded /home/linghengqian/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libengine2.so, got 0x56363a1ac930
Using breakpad crash handler
[S_API] SteamAPI_Init(): Loaded '/home/linghengqian/.local/share/Steam/linux64/steamclient.so' OK.
Setting breakpad minidump AppID = 730
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
minidumps folder is set to /tmp/dumps
04/07 18:19:53 Init: Installing breakpad exception handler for appid(730)/version(8805339)/tid(92276)
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561199388892527 [API loaded yes]
SteamInternal_SetMinidumpSteamID:  Setting Steam ID:  76561199388892527
Setting breakpad minidump AppID = 2347771
Loaded libSDL3.so.0, got 0x56363a2c24a0
Loaded /home/linghengqian/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libtier0.so, got 0x56363a18e880
Loaded /home/linghengqian/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libfilesystem_stdio.so, got 0x56363a308930
Loaded /home/linghengqian/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libinputsystem.so, got 0x56363a3094e0
Loaded /home/linghengqian/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/liblocalize.so, got 0x56363a35e850
Loaded /home/linghengqian/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/librendersystemvulkan.so, got 0x56363a370c10
Loaded /home/linghengqian/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libresourcesystem.so, got 0x56363a3849a0
Loaded /home/linghengqian/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libschemasystem.so, got 0x56363a397290
crash_20240407181953_2.dmp[92295]: Uploading dump (out-of-process)
/tmp/dumps/crash_20240407181953_2.dmp
/home/linghengqian/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/cs2.sh: line 118: 92276 Segmentation fault      ${STEAM_RUNTIME_PREFIX} ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
crash_20240407181953_2.dmp[92295]: Finished uploading minidump (out-of-process): success = yes
crash_20240407181953_2.dmp[92295]: response: Discarded=1
crash_20240407181953_2.dmp[92295]: file ''/tmp/dumps/crash_20240407181953_2.dmp'', upload yes: ''Discarded=1''
pid 92295 != 92294, skipping destruction (fork without exec?)
Game 730 created interface STEAMAPPS_INTERFACE_VERSION008 /
Game 730 created interface SteamFriends017 /
Game 730 created interface SteamUser023 /
Game 730 created interface SteamUser023 / User
Game 730 created interface SteamUtils010 /
Game 730 method call count for IClientAppManager::GetCurrentLanguage : 1
Game 730 method call count for IClientUtils::RecordSteamInterfaceCreation : 6
Game 730 method call count for IClientUtils::InitFilterText : 1
Game 730 method call count for IClientUtils::IsSteamChina : 1
Game 730 method call count for IClientUtils::GetLauncherType : 1
Game 730 method call count for IClientUtils::GetSteamUILanguage : 1
Game 730 method call count for IClientUtils::GetAppID : 9
Game 730 method call count for IClientUtils::GetIPCountry : 1
Game 730 method call count for IClientFriends::GetFriendPersonaName_Public : 2
Game 730 method call count for IClientUser::GetUserDataFolder : 1
Game 730 method call count for IClientUser::GetSteamID : 5
Uploaded AppInterfaceStats to Steam
[2024-04-07 18:21:06] Background update loop checking for update. . .
[2024-04-07 18:21:06] Checking for available updates...
[2024-04-07 18:21:06] Downloading manifest: https://client-update.akamai.steamstatic.com/steam_client_ubuntu12?t=1171571161
[2024-04-07 18:21:06] Manifest download: send request
[2024-04-07 18:21:06] Manifest download: waiting for download to finish
[2024-04-07 18:21:07] Manifest download: finished
[2024-04-07 18:21:07] Download failed: http error 0 (client-update.akamai.steamstatic.com/steam_client_ubuntu12?t=1171571161)
[2024-04-07 18:21:07] Downloading manifest: https://cdn.cloudflare.steamstatic.com/client/steam_client_ubuntu12?t=1171571161
[2024-04-07 18:21:07] Manifest download: send request
[2024-04-07 18:21:07] Manifest download: waiting for download to finish
[2024-04-07 18:21:07] Manifest download: finished
[2024-04-07 18:21:07] Download failed: http error 0 (cdn.cloudflare.steamstatic.com/client/steam_client_ubuntu12?t=1171571161)
[2024-04-07 18:21:07] Downloading manifest: https://cdn.steamstatic.com/client/steam_client_ubuntu12?t=1171571161
[2024-04-07 18:21:07] Manifest download: send request
[2024-04-07 18:21:07] Manifest download: waiting for download to finish
[2024-04-07 18:21:08] Manifest download: finished
[2024-04-07 18:21:08] Download failed: http error 0 (cdn.steamstatic.com/client/steam_client_ubuntu12?t=1171571161)
[2024-04-07 18:21:08] DownloadManifest - exhausted list of download hosts
[2024-04-07 18:21:08] failed to load manifest from buffer.
[2024-04-07 18:21:08] Failed to load manifest
[2024-04-07 18:21:08] Error: Download failed: http error 0
[2024-04-07 18:21:08] Saving metrics to disk (/home/linghengqian/.local/share/Steam/package/steam_client_metrics.bin)
[2024-04-07 18:21:08] Error: Failed to determine download location for universe 1
BRefreshApplicationsInLibrary 1: 1ms
BuildCompleteAppOverviewChange: 198 apps

Additional information