Page 1 of 1

Random timeouts with the new (10.X) client when the window is inactive

Posted: Mon Jun 27, 2016 10:08 pm
by Fifi
Heyo. I've got a problem with my game client. :c

Since the update to the SDL2 version, my client began to randomly timeout when I unfocus its window. It omits the timeout protection, which means I got killed every time it happens. It's kinda frustrating (I'm currently reverting to 9.X version temporarily because of that) and I was unable to find a reason so far. Maybe I'll try to watch the console output, but it's hard to make it timeout on purpose. I'm using Arch Linux 64 bit and the Fluxbox window manager, on an Intel + Nvidia machine (if that matters somehow).

I'm not sure, if I can distinguish a replay of such an event from one with a standard disconnect/client closing, but if I'll find one - I'm gonna post it here.

^^ Thank you for any help and sorry for the trouble.

PS. Those are probably minor problems compared to this, but the clipboard support doesn't work for me (I tried it on a different window manager, but it didn't help) and the bam build script is not compatible with bam 0.5.X.

EDIT INFO: I was sleepy and I somehow swapped crash and timeout in my brain, so the previous version of this post was mistakenly about crashes. Sorry for that.

Re: Random crashes with the new (10.X) client when the window is inactive

Posted: Mon Jun 27, 2016 11:03 pm
by deen
Try gfx_backgroundrender 1 (or 0)

Re: Random crashes with the new (10.X) client when the window is inactive

Posted: Tue Jun 28, 2016 4:37 pm
by timakro
Since SDL2 my client sometimes says there was a timeout when I switch back to it after it was in the background but on the server it just says I had left the game. Maybe this is related.

Re: Random crashes with the new (10.X) client when the window is inactive

Posted: Tue Jun 28, 2016 10:46 pm
by Fifi
deen wrote:Try gfx_backgroundrender 1 (or 0)
timakro wrote:Since SDL2 my client sometimes says there was a timeout when I switch back to it after it was in the background but on the server it just says I had left the game. Maybe this is related.
Aaaaa >< Sorry guys. I meant timeouts, not crashes. I was so sleepy yesterday that I somehow swapped those in my brain.
I got exactly the same behaviour as timakro, so I noticed my mistake when he described it. I edited the original post.

PS. I didn't try the gfx_backgroundrender change yet, as I wasn't home and I'm still not sure how to reproduce the bug on purpose (so I can't really compare if that change helped).

Re: Random timeouts with the new (10.X) client when the window is inactive

Posted: Wed Jun 29, 2016 6:50 pm
by timakro
I tried changing gfx_backgroundrender and it happened again.