ValveSoftware / steam-for-linux

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

Steam high cpu load when exiting specific games #6811

Open doctortee opened 4 years ago

doctortee commented 4 years ago

Your system information

Please describe your issue in as much detail as possible:

Similar to issue #5493 , but as mentioned here (https://github.com/ValveSoftware/steam-for-linux/issues/5493#issuecomment-565597689) , they seem to focus on the "steam-runtime-system-info" problem, which seems not to be the issue here.

When I play to Warframe (It might be specific, but I won't say that) for some time and then close the game, a specific Steam thread is going crazy and uses 100% of one of my cores. I always have to kill these process to quit Steam as they don't exit themselves when I close it. In the issue mentioned earlier, they say it comes from "steam-runtime-system-info", but even if I rename the file, the high CPU load is still present.

I tried to switch to stable, same issue. While this definitely seems to be related with #5493 , it only occurs when I exit this specific game, and the workaround mentioned aren't working.

Note that I tried other games, and I don't have that issue, whether it uses Proton or not.

Steps for reproducing this issue:

  1. Start Steam
  2. Start concerned game
  3. Play for some time
  4. Exit the game
  5. Profit.

Additional logs:

Logs starting when I close the game. Ask if you need the whole log, but as I often switch between windows, it spams messages about controller.

Exiting app 230410
No cached sticky mapping in ActivateActionSet.No cached sticky mapping in ActivateActionSet.[2020-01-05 13:28:37] Background update loop checking for update. . .
[2020-01-05 13:28:38] Recherche de nouvelles mises à jour...
[2020-01-05 13:28:38] Downloading manifest: client-download.steampowered.com/client/steam_client_publicbeta_ubuntu12
[2020-01-05 13:28:38] Download skipped by HTTP 304 Not Modified
[2020-01-05 13:28:38] Nothing to do
../common/pipes.cpp (774) : Assertion Failed: stalled cross-thread pipe
../common/pipes.cpp (774) : Assertion Failed: stalled cross-thread pipe
Installing breakpad exception handler for appid(steam)/version(1576908998)
assert_20200105144138_33.dmp[13984]: Uploading dump (out-of-process)
/tmp/dumps/assert_20200105144138_33.dmp
steamclient.cpp (793) : Assertion Failed: bufRet.TellPut() == sizeof(uint8)
steamclient.cpp (793) : Assertion Failed: bufRet.TellPut() == sizeof(uint8)
assert_20200105144138_33.dmp[13984]: Finished uploading minidump (out-of-process): success = yes
assert_20200105144138_33.dmp[13984]: response: CrashID=bp-51cbe4ae-b5d9-4cef-b9c2-ef2452200105
assert_20200105144138_33.dmp[13984]: file ''/tmp/dumps/assert_20200105144138_33.dmp'', upload yes: ''CrashID=bp-51cbe4ae-b5d9-4cef-b9c2-ef2452200105''
Thread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut downThread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut downThread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut downThread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut downThread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut downThread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut downThread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut downThread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut downThread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut downThread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut downThread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut downThread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut downThread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut downThread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut downThread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut downThread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut downThread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut downThread "CJobMgr::m_WorkThreadPool:0" (ID 8365) failed to shut down
kisak-valve commented 4 years ago

Hello @doctortee, can you check if this is Steam's shader precaching doing work by going to Steam -> Settings -> Shader Pre-Caching -> uncheck Enable Shader Pre-Caching, then test if there is an effect. If it does, then this is the expected behavior with games that have a bunch of shaders, but the worker thread probably shouldn't stick around if the steam client is closed.

doctortee commented 4 years ago

The issue seems to disappear when I disable Shader Pre-Caching. (Tested once).

oXyiGYJ commented 4 years ago

I too was having this issue. Same exact problem as doctortee but on different distro and hardware.

This issue only happened to Warframe with Pre-Cached Shaders. Turning that off did the trick.

With that being said, is there a way, or can there be a way, to turn Pre-Cached Shaders off on a game-by-game basis?

danilo-bc commented 4 years ago

I had the same issue with Path of Exile, and not with other games. Disabling Shader Pre-Caching solved this issue.

userofryzen commented 4 years ago

I am having this problem with rise of the tomb raider too.. I haven't checked if disabling tthis option is the fix of this

userofryzen commented 3 years ago

anybody has this error too?

son-link commented 3 years ago

I am having this problem with rise of the tomb raider too.. I haven't checked if disabling tthis option is the fix of this

Yes, i have the same issue with the lastets client and AMDGPU drivers

Saroumane commented 3 years ago

I just had this issue (it's random for me) when trying to exit Steam client. (And I have already disabled "Shader Pre-Caching") :

.steam/error.log is continuously filled with Thread "CJobMgr::m_WorkThreadPool:0" (ID 2226155) failed to shut down for 30min now .steam/logs/shader_log.txt had no new data for 30min, ending with "AppID 253230 exited. / Finding Mesa v2 cache files, base directory" I had to kill Steam process.

system information

somewhatfrog commented 1 year ago

Having this issue, fresh steam install including user folder, pre-caching is disabled. Arch, nvidia, all up to date. Don't even need to launch any games for this to happen. Thread "CJobMgr::m_WorkThreadPool:1" (ID 1123) failed to shut down

KenTheWhaleGoddess commented 11 months ago

Got this as well, when disabling shader pre-caching, then clearing Download cache.

KenTheWhaleGoddess commented 11 months ago

Chat GPT since no recent comments...

The message you're seeing, "Thread 'CJobMgr::m_WorkThreadPool:0' (ID 4902) failed to shut down," is likely coming from a software or application that uses multithreading. This message indicates that a thread with the given name and ID failed to shut down properly during the program's termination or under specific circumstances.