Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Torchlight 2 on Steam hangs on mouse movement
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
zlg
Retired Dev
Retired Dev


Joined: 11 Sep 2012
Posts: 49
Location: Earth

PostPosted: Tue Apr 19, 2016 5:40 am    Post subject: Torchlight 2 on Steam hangs on mouse movement Reply with quote

I've had this interesting issue happening for a while now. I don't recall downgrading the Nvidia driver helping (currently on 361.28 for other games, I remember it working on 355 and 358).

Basically, the game runs at a choppy 30-ish frames (usual is between 50 and 60) until I move my mouse. Then it hangs until it "catches up" and continues rendering as normal... until I move my mouse cursor again.

Other games like Borderlands 2 and TPS work, Hyper Light Drifter, Unity games, etc. Even the Humble Bundle version of Torchlight 1 (through an overlay) works fine. So I'm kinda stumped as to what's going on.

Attempting to run the binary directly doesn't give me a GUI or even any terminal output (I have to Ctrl+C). However, `ldd` output:

I'm on ~arch, Gentoo x86-64, developer profile. It did this on a standard user profile on my last install too, however.
Code:


   linux-gate.so.1 (0xf76f7000)
   libOgreMain.so.1 => /home/daniel/.local/share/Steam/steamapps/common/Torchlight II/lib/libOgreMain.so.1 (0xf722b000)
   libCEGUIBase.so.1 => /home/daniel/.local/share/Steam/steamapps/common/Torchlight II/lib/libCEGUIBase.so.1 (0xf6fa4000)
   libfmodex.so => /home/daniel/.local/share/Steam/steamapps/common/Torchlight II/lib/libfmodex.so (0xf6e1e000)
   libGL.so.1 => /usr/lib32/opengl/nvidia/lib/libGL.so.1 (0xf6d86000)
   libuuid.so.1 => /usr/lib32/libuuid.so.1 (0xf6d80000)
   libz.so.1 => /lib32/libz.so.1 (0xf6d68000)
   libpthread.so.0 => /lib32/libpthread.so.0 (0xf6d4b000)
   libsteam_api.so => /home/daniel/.local/share/Steam/steamapps/common/Torchlight II/lib/libsteam_api.so (0xf6d39000)
   libSDL2-2.0.so.0 => /home/daniel/.local/share/Steam/steamapps/common/Torchlight II/lib/libSDL2-2.0.so.0 (0xf6c31000)
   libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/32/libstdc++.so.6 (0xf6ab1000)
   libm.so.6 => /lib32/libm.so.6 (0xf6a65000)
   libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/32/libgcc_s.so.1 (0xf6a4a000)
   libc.so.6 => /lib32/libc.so.6 (0xf6895000)
   libfreeimage.so.3 => /home/daniel/.local/share/Steam/steamapps/common/Torchlight II/lib/libfreeimage.so.3 (0xf6577000)
   libfreetype.so.6 => /home/daniel/.local/share/Steam/steamapps/common/Torchlight II/lib/libfreetype.so.6 (0xf64f8000)
   libdl.so.2 => /lib32/libdl.so.2 (0xf64f3000)
   libGLX.so.0 => /usr/lib32/opengl/nvidia/lib/libGLX.so.0 (0xf64d2000)
   libGLdispatch.so.0 => /usr/lib32/opengl/nvidia/lib/libGLdispatch.so.0 (0xf643c000)
   /lib/ld-linux.so.2 (0xf76f8000)
   librt.so.1 => /lib32/librt.so.1 (0xf6432000)
   libbz2.so.1 => /usr/lib32/libbz2.so.1 (0xf6420000)
   libX11.so.6 => /usr/lib32/libX11.so.6 (0xf62cd000)
   libXext.so.6 => /usr/lib32/libXext.so.6 (0xf62b7000)
   libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf628f000)
   libXau.so.6 => /usr/lib32/libXau.so.6 (0xf6289000)
   libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf6282000)


Everything seems to be okay there. I'm not sure what else I can do aside from attempting to (re)downgrade Nvidia to see if it'll help. Has anyone else gotten this game to work (again) for Gentoo?

I've checked out Runic's website and forum, no information regarding this issue at all for the most part. Runic also seems rather uncommunicative.
Back to top
View user's profile Send private message
Myu
Apprentice
Apprentice


Joined: 22 Oct 2014
Posts: 164
Location: Belgium

PostPosted: Tue Apr 19, 2016 6:41 am    Post subject: Reply with quote

I can test this evening, I'll keep you posted.

Last time I checked ( 2 weeks ago ? ) it was working fine.

I'm running mostly stable minus the kernel ( 4.5.1 ), nvidia-drivers and a bunch of small programs in ~amd64
_________________
Gentoo stable with bits of ~amd64 // Xfce 4.13 + Compiz Reloaded.
Back to top
View user's profile Send private message
Myu
Apprentice
Apprentice


Joined: 22 Oct 2014
Posts: 164
Location: Belgium

PostPosted: Tue Apr 19, 2016 4:59 pm    Post subject: Reply with quote

Hello, reporting back.

It works fine for me with kernel 4.5.1 & driver 361.28. Let me know if I can help you further or if you want some more info

http://i.imgur.com/IHQLVhl.png
_________________
Gentoo stable with bits of ~amd64 // Xfce 4.13 + Compiz Reloaded.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Tue Apr 19, 2016 5:48 pm    Post subject: Reply with quote

Last time I played T2 it was fine. I know this doesn't help but it does imply itnfixable. Just need to find out what
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
zlg
Retired Dev
Retired Dev


Joined: 11 Sep 2012
Posts: 49
Location: Earth

PostPosted: Tue Apr 19, 2016 11:25 pm    Post subject: Reply with quote

Myu wrote:
Hello, reporting back.

It works fine for me with kernel 4.5.1 & driver 361.28. Let me know if I can help you further or if you want some more info

http://i.imgur.com/IHQLVhl.png


First off that's a nice environment. Is that Cinnamon? Pretty slick.

Second, which sound system are you using? I've been using ALSA and apulse for Steam or other games to great effect, and it doesn't make sense for it to be tied to audio, but I figured I'd ask.

Since you're on 361.28 it tells me that's not where the problem lies. Does your `ldd` output look like mine? Try:

Code:
ldd ~/.local/share/Steam/steamapps/common/Torchlight\ II/Torchlight2.bin.x86_64


(try the regular x86 version too if you want, but output was rather similar for both on my system)

EDIT: I just updated @world and made sure to revdep-rebuild afterwards. Nothing needed to be rebuilt and TL2 is still having the problem. If I could find a way to launch TL2 outside of Steam, maybe we could get more info on what's going on.
Back to top
View user's profile Send private message
Myu
Apprentice
Apprentice


Joined: 22 Oct 2014
Posts: 164
Location: Belgium

PostPosted: Fri Apr 22, 2016 7:52 pm    Post subject: Reply with quote

Sorry for the late reply, didn't saw the response and haven't been notified of it strangely !

Quote:
First off that's a nice environment. Is that Cinnamon? Pretty slick.


Thanks ! It's actually Xfce + compiz 0.8.12 :)

Quote:
Second, which sound system are you using? I've been using ALSA and apulse for Steam or other games to great effect, and it doesn't make sense for it to be tied to audio, but I figured I'd ask.


Nowadays, pulseaudio, it just worked so I sticked with it.

Our ldd looks different, I use gcc 4.9.3 and I've most of my lib pointing to /lib64 instead of /lib32, bizarre isn't it ?

That being said, it start Steam with LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib32/opengl/nvidia/lib" ~/.local/share/Steam/steam.sh

Code:
linux-vdso.so.1 (0x00007ffdb5507000)
   libOgreMain.so.1 => /home/myu/.local/share/Steam/steamapps/common/Torchlight II/lib64/libOgreMain.so.1 (0x00007f2d25b25000)
   libCEGUIBase.so.1 => /home/myu/.local/share/Steam/steamapps/common/Torchlight II/lib64/libCEGUIBase.so.1 (0x00007f2d25677000)
   libfmodex.so => /home/myu/.local/share/Steam/steamapps/common/Torchlight II/lib64/libfmodex.so (0x00007f2d252a5000)
   libGL.so.1 => /usr/lib64/opengl/nvidia/lib/libGL.so.1 (0x00007f2d25016000)
   libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f2d24e11000)
   libz.so.1 => /lib64/libz.so.1 (0x00007f2d24bfb000)
   libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f2d249df000)
   libsteam_api.so => /home/myu/.local/share/Steam/steamapps/common/Torchlight II/lib64/libsteam_api.so (0x00007f2d247ce000)
   libSDL2-2.0.so.0 => /home/myu/.local/share/Steam/steamapps/common/Torchlight II/lib64/libSDL2-2.0.so.0 (0x00007f2d244a7000)
   libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/libstdc++.so.6 (0x00007f2d24198000)
   libm.so.6 => /lib64/libm.so.6 (0x00007f2d23e9a000)
   libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1 (0x00007f2d23c83000)
   libc.so.6 => /lib64/libc.so.6 (0x00007f2d238e6000)
   libfreeimage.so.3 => /home/myu/.local/share/Steam/steamapps/common/Torchlight II/lib64/libfreeimage.so.3 (0x00007f2d233b6000)
   libfreetype.so.6 => /home/myu/.local/share/Steam/steamapps/common/Torchlight II/lib64/libfreetype.so.6 (0x00007f2d23124000)
   libdl.so.2 => /lib64/libdl.so.2 (0x00007f2d22f20000)
   libGLX.so.0 => /usr/lib64/opengl/nvidia/lib/libGLX.so.0 (0x00007f2d22cee000)
   libGLdispatch.so.0 => /usr/lib64/opengl/nvidia/lib/libGLdispatch.so.0 (0x00007f2d22a06000)
   /lib64/ld-linux-x86-64.so.2 (0x00007f2d2622a000)
   librt.so.1 => /lib64/librt.so.1 (0x00007f2d227fe000)
   libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f2d225ee000)
   libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f2d222ab000)
   libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f2d22099000)
   libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f2d21e76000)
   libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f2d21c72000)
   libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00007f2d21a6c000)

_________________
Gentoo stable with bits of ~amd64 // Xfce 4.13 + Compiz Reloaded.
Back to top
View user's profile Send private message
zlg
Retired Dev
Retired Dev


Joined: 11 Sep 2012
Posts: 49
Location: Earth

PostPosted: Fri Apr 22, 2016 10:57 pm    Post subject: Reply with quote

I get pretty much the same output if I launch the 64-bit version. I don't use that LD_LIBRARY_PATH hack, so I'll try that later today and edit this post with my results.

EDIT: I did a little more testing. When TL2 is in windowed mode, moving the cursor *outside* the window works fine and the game doesn't slow down at all. This is only affecting the game itself.

I tried loading Steam with the LD_LIBRARY_PATH hack and still had the slowdown problem. However, because I tried that in a terminal, it got TL2 to report its information to the terminal. It looks like it has issues with a few bones from the meshes but otherwise goes on. When TL2 is exited (after running Steam in this fashion), Steam crashes due to a segfault.

https://bpaste.net/show/99fcc8b77431

(my terminal didn't have enough scrollback)

So it seems to me that those warnings about the bones are probably no big deal, but nothing else in the output indicates bad juju. It'd be nice to know how Steam loads TL2 so I can emulate it and capture its stdout or something.
Back to top
View user's profile Send private message
Myu
Apprentice
Apprentice


Joined: 22 Oct 2014
Posts: 164
Location: Belgium

PostPosted: Mon Apr 25, 2016 3:21 am    Post subject: Reply with quote

Ah, too bad the output isn't really helping,

Maybe try go to to do the verify integrity within steam to redownload any corrupted files ?

Are you using the Steam runtime by the way ?

Cheers !
_________________
Gentoo stable with bits of ~amd64 // Xfce 4.13 + Compiz Reloaded.
Back to top
View user's profile Send private message
zlg
Retired Dev
Retired Dev


Joined: 11 Sep 2012
Posts: 49
Location: Earth

PostPosted: Tue Apr 26, 2016 11:08 pm    Post subject: Reply with quote

@Myu: Yeah, I've checked the integrity multiple times and everything's good with the game files. I'm also using the Steam runtime since it'd be a (worse) dependency nightmare otherwise.
Back to top
View user's profile Send private message
Myu
Apprentice
Apprentice


Joined: 22 Oct 2014
Posts: 164
Location: Belgium

PostPosted: Wed Apr 27, 2016 4:50 am    Post subject: Reply with quote

That's a tough nut to crack for sure !

Could it be related to the mouse acceleration ? I know Linux can be bizarre about this.

Maybe there's a settings under either your DE or T2 itself to tweak it ?
_________________
Gentoo stable with bits of ~amd64 // Xfce 4.13 + Compiz Reloaded.
Back to top
View user's profile Send private message
dzaharee
n00b
n00b


Joined: 20 May 2016
Posts: 1

PostPosted: Fri May 20, 2016 3:16 am    Post subject: Reply with quote

Just ran into this tonight and came across this thread. Problem seems to be the dated SDL 2 in the Steam Runtime. Emerging media-libs/libsdl2 and using LD_PRELOAD when launching Steam fixed it for me.
Code:
LD_PRELOAD='/usr/$LIB/libSDL2.so' steam

For what it's worth, I was playing online with friends and had some issues joining games and had some desync. I'm not sure if what I was experiencing was specific to the Linux client though.
Back to top
View user's profile Send private message
zlg
Retired Dev
Retired Dev


Joined: 11 Sep 2012
Posts: 49
Location: Earth

PostPosted: Thu Nov 03, 2016 8:15 am    Post subject: Reply with quote

dzaharee wrote:
Just ran into this tonight and came across this thread. Problem seems to be the dated SDL 2 in the Steam Runtime. Emerging media-libs/libsdl2 and using LD_PRELOAD when launching Steam fixed it for me.
Code:
LD_PRELOAD='/usr/$LIB/libSDL2.so' steam

For what it's worth, I was playing online with friends and had some issues joining games and had some desync. I'm not sure if what I was experiencing was specific to the Linux client though.


I came back to this again, and tried this fix. Nothing worked. I even tried removing libSDL2 from the Steam runtime, and it still hangs when I move the mouse... if only Runic cared enough to look into this...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum