ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.26k stars 174 forks source link

Bus error when trying to start games after about 40 days of uptime #9109

Open nleo opened 1 year ago

nleo commented 1 year ago

My uptime now is 40 days, there are was dozens of cycles start steam, start dota, close dota, close steam cycles

After reboot I'm sure all be fine. But I want reboot.

Any suggestens?

https://user-images.githubusercontent.com/800970/212546776-c09e0c17-0066-4e3e-89b8-75802ae5a8b9.mp4

LinuxMint 19.3

kisak-valve commented 1 year ago

Hello @nleo, if you completely close Steam, then run steam from a terminal, are there any hints in the terminal spew when you tell Steam to start the game? Also, please copy your system information from Steam (Steam -> Help -> System Information) and put it in a gist, then include a link to the gist in this issue report.

nleo commented 1 year ago

Interface become more laggy and after several restarts it's stop loadin at all

See till the end I try factorio too:

https://user-images.githubusercontent.com/800970/212548168-9c9581a6-2a76-44b7-ad5d-e89a6a4fdb69.mp4

Here steam stops loading at all:

https://user-images.githubusercontent.com/800970/212548203-7804a68a-0106-4c3c-90ab-442c67f6cf63.mp4

$ steam
[2023-01-15 17:49:05] Startup - updater built Dec 15 2022 21:26:49
[2023-01-15 17:49:05] Startup - Steam Client launched with: '/home/user/.steam/ubuntu12_32/steam'
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2023-01-15 17:49:05] Loading cached metrics from disk (/home/user/.steam/package/steam_client_metrics.bin)
[2023-01-15 17:49:05] Using the following download hosts for Public, Realm steamglobal
[2023-01-15 17:49:05] 1. https://client-update.akamai.steamstatic.com, /, Realm 'steamglobal', weight was 1000, source = 'update_hosts_cached.vdf'
[2023-01-15 17:49:05] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'update_hosts_cached.vdf'
[2023-01-15 17:49:05] 3. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2023-01-15 17:49:05] Checking for update on startup
[2023-01-15 17:49:06] Проверка на наличие обновлений...
[2023-01-15 17:49:06] Downloading manifest: https://client-update.akamai.steamstatic.com/steam_client_ubuntu12
[2023-01-15 17:49:06] Manifest download: send request
[2023-01-15 17:49:06] Manifest download: waiting for download to finish
[2023-01-15 17:49:06] Manifest download: finished
[2023-01-15 17:49:06] Download skipped: /steam_client_ubuntu12 version 1671236931, installed version 1671236931, existing pending version 0
[2023-01-15 17:49:06] Nothing to do
[2023-01-15 17:49:06] Проверка установки...
[2023-01-15 17:49:06] Performing checksum verification of executable files
[2023-01-15 17:49:07] Verification complete
XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xf3e13370
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xf3e11cc0
$ 
kisak-valve commented 1 year ago

This folder path tells us that you're using a distro-modified Steam package /home/user/.steam/ubuntu12_32/steam. That same Steam package could be redirecting some of the terminal spew to ~/.steam/error.log and could contain hints. Can you check if that file exists and share its contents if it does.

nleo commented 1 year ago
rm: cannot remove '/home/user/.steam/steam': Is a directory
rm: cannot remove '/home/user/.steam/bin': Is a directory
steam.sh[6484]: Running Steam on linuxmint 19.3 64-bit
steam.sh[6484]: STEAM_RUNTIME is enabled automatically
setup.sh[6552]: Steam runtime environment up-to-date!
steam.sh[6484]: Steam client's requirements are satisfied
Installing breakpad exception handler for appid(steam)/version(1671236931)
Installing breakpad exception handler for appid(steam)/version(1671236931)
Installing breakpad exception handler for appid(steam)/version(1671236931)
Loaded SDL version 2.27.0-p7692409
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"

(steam:6634): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
/usr/share/themes/Mint-Y/gtk-2.0/main.rc:1085: error: unexpected identifier `direction', expected character `}'
ComputeStartupMode: found registry default startup mode: 0steamwebhelper.sh[6651]: Runtime for steamwebhelper: defaulting to /home/user/.steam/ubuntu12_64/steam-runtime-heavy
steamwebhelper.sh[6651]: Using CEF sandbox (try with -no-cef-sandbox if this fails)
crash_20230115175349_4.dmp[6676]: Uploading dump (out-of-process)
/tmp/dumps/crash_20230115175349_4.dmp
/home/user/.steam/steam.sh: line 798:  6634 Bus error               (core dumped) "$STEAMROOT/$STEAMEXEPATH" "$@"
crash_20230115175349_4.dmp[6676]: Finished uploading minidump (out-of-process): success = yes
crash_20230115175349_4.dmp[6676]: response: CrashID=bp-5087b74b-b25c-42cc-a2e5-af6152230115
crash_20230115175349_4.dmp[6676]: file ''/tmp/dumps/crash_20230115175349_4.dmp'', upload yes: ''CrashID=bp-5087b74b-b25c-42cc-a2e5-af6152230115''
Illegal instruction (core dumped)
kisak-valve commented 1 year ago

From https://github.com/ValveSoftware/steam-for-linux/issues/9080#issuecomment-1374886517, can you check if opting into the Steam client beta has an effect on the issue?

nleo commented 1 year ago

Maybe next time. Now I rebooted PC and steam works fine. For next 40 days I think) Couse I already had this issue in past

jamieguinan commented 11 months ago

A year later, but I just had a similar problem with steam.sh segfaulting after a long uptime, and I found that Steam had completely filled up /dev/shm with files named "u1000-Shm_XXXXXXX".

$ uptime
 19:08:43 up 59 days,  8:55,  7 users,  load average: 0.44, 0.48, 0.56

$ df -h /tmp /dev/shm/
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       184G  125G   50G  72% /
tmpfs           3.9G  3.9G     0 100% /dev/shm

$ ls -ltr /dev/shm
-rwxrwxr-x 1 guinan guinan 26214416 Nov  9 14:19 u1000-Shm_5116acf1
-rwxrwxr-x 1 guinan guinan     1040 Nov  9 14:19 u1000-Shm_125376fc
-rwxrwxr-x 1 guinan guinan 26214416 Nov  9 14:28 u1000-Shm_487b350f
-rwxrwxr-x 1 guinan guinan 26214416 Nov  9 14:28 u1000-Shm_1723e81b
-rwxrwxr-x 1 guinan guinan 26214416 Nov  9 14:28 u1000-Shm_e4e71e5
-rwxrwxr-x 1 guinan guinan 26214416 Nov 10 12:27 u1000-Shm_95f05d73
-rwxrwxr-x 1 guinan guinan 26214416 Nov 10 12:28 u1000-Shm_7c96a1ca
-rwxrwxr-x 1 guinan guinan 26214416 Nov 10 12:28 u1000-Shm_65fb3834
-rwxrwxr-x 1 guinan guinan 26214416 Nov 10 12:39 u1000-Shm_8c9dc48d
...
-rwxrwxr-x 1 guinan guinan 26214416 Jan  2 09:09 u1000-Shm_78516157
-rwxrwxr-x 1 guinan guinan 26214416 Jan  2 09:21 u1000-Shm_f5a4a688
-rwxrwxr-x 1 guinan guinan 26214416 Jan  2 09:23 u1000-Shm_7e6d9e31
-rwxrwxr-x 1 guinan guinan 26214416 Jan  2 09:23 u1000-Shm_36f98b19

I cleared them out and steam started working again,

$ rm -v /dev/shm/u1000-*

Might be worth noting that I completely exit steam when I'm not using it, to prevent steam-web-helper from gobbling up all my ram and swap overnight.

robobenklein commented 10 months ago

I have a 64GB /dev/shm so it hasn't stopped me yet (128G system memory), but I can also confirm restarting steam multiple times continues to leave extra files behind that seem to be up to ~26MB each. (/dev/shm total usage already past 4GB)

Steam Version: 1702079146

bryceharrington commented 1 month ago

Wow jamieguinan, was really racking my brain trying to figure out why steam kept crashing at the start. Tried bunches of ideas and steam persisted to crash with a "Bus error". I have a long uptime and was reluctant to reboot, though I was sure that'd probably fix it. But after removing the (many) u1000 files from /dev/shm, it started right up. Thanks!