ValveSoftware / steam-for-linux

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

SteamApi_Init hangs waking up from suspend #2742

Open ghost opened 11 years ago

ghost commented 11 years ago

I suspended my laptop with steam running. When I woke it up and tried to start Half-Life through steam, it hangs. Attached gdb, its hangs here:

    #0  0xf773e430 in __kernel_vsyscall ()
    #1  0xf75f5ce1 in recv () from /lib/i386-linux-gnu/libpthread.so.0
    #2  0xf314da5b in ?? () from /home/scrawl/Steam/linux32/steamclient.so
    #3  0xf3149c1f in ?? () from /home/scrawl/Steam/linux32/steamclient.so
    #4  0xf314b5cd in ?? () from /home/scrawl/Steam/linux32/steamclient.so
    #5  0xf313fbbc in ?? () from /home/scrawl/Steam/linux32/steamclient.so
    #6  0xf33f5680 in ?? () from /home/scrawl/Steam/linux32/steamclient.so
    #7  0xf33f5e2d in ?? () from /home/scrawl/Steam/linux32/steamclient.so
    #8  0xf330d529 in ?? () from /home/scrawl/Steam/linux32/steamclient.so
    #9  0xf5bd24f8 in ?? () from /home/scrawl/Steam/SteamApps/common/Half-Life/libsteam_api.so
    #10 0xf5bd2a24 in SteamAPI_Init () from /home/scrawl/Steam/SteamApps/common/Half-Life/libsteam_api.so
    #11 0xf5d54f88 in InitClient (this=<optimized out>) at ../engine/sv_steam3.cpp:852
    #12 Steam_InitClient () at ../engine/sv_steam3.cpp:1004
    #13 0xf5d154f5 in RunListenServer (instance=0x0, basedir=0x804b220 "/home/scrawl/Steam/SteamApps/common/Half-Life", 
        cmdline=0x8a409d0 "/home/scrawl/Steam/SteamApps/common/Half-Life/hl_linux -steam", postRestartCmdLineArgs=0x804d360 "", launcherFactory=
        0x8049350 <CreateInterfaceLocal(char const*, int*)>, filesystemFactory=0xf7617ad0 <CreateInterface(char const*, int*)>) at ../engine/sys_dll2.cpp:905
    #14 0x08048d67 in main (argc=2, argv=0xffbdf7b4) at ../launcher/launcher.cpp:446

I think it has something to do with the internet being disconnected before suspending. If I remember correctly, Steam did not yet display the "No Connection" label before I launched HL (but soon after, it did - and HL still hangs, even though the internet is now connected again) Then, I killed the HL process and tried to launch again, but the problem persisted until I restarted Steam completely.

Hietamaki commented 10 years ago

For me Steam seems to hang every time my computer enters suspend. Or to be more specific, it only occurs if my computer has been in suspend for a little while. Running Steam through wine this hasn't happened.

I'm using latest Ubuntu, so I'm a bit surprised this isn't more reported problem.

Tele42 commented 10 years ago

This issue sounds like #474.

volca02 commented 10 years ago

On my PC, steam stops redrawing after waking from suspend. It seems to react to clicks, but does not redraw the window. Arch Linux, i3, no compositor.