steam-runtime icon indicating copy to clipboard operation
steam-runtime copied to clipboard

X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)

Open noodle1009 opened this issue 11 years ago • 0 comments

While using in-home streaming on a client utilizing Intel Graphics on linux, the following is often encountered upon exiting a game:

The streaming client ended unexpectedly [2]

I utilize a ASUS Chromebox (M004U) with SteamOS installed on it.

The error completely hangs up the SteamOS BPM UI when it is encountered - keyboard / controllers are not responsive. I can still login to SteamOS via ssh.

When this error occurs, the following is always noted in steam_stdout.txt:

NFO: Session state Streaming -> StreamStopping
INFO: Detaching controller X360 Wireless Controller with ID 0
INFO: Session state StreamStopping -> Idle
X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)
Major opcode of failed request: 137 (DRI2)
Minor opcode of failed request: 4 (DRI2DestroyDrawable)
Resource id in failed request: 0x180001a
Serial number of failed request: 12109
Current serial number in output stream: 12109

nothing unusual can be seen in streaming_client.log.

I believe that this issue was recently addressed by a patch contained within Libva - 1.5.0, which was released on December 29th, 2014 with the updated 2014Q4 Intel Graphics Stack Release. It is noted in the release notes found here:

https://01.org/linuxgraphics/downloads/2014/2014q4-intel-graphics-stack-release

Details of what this patch addresses can be found here:

http://lists.freedesktop.org/archives/libva/2014-November/002905.html

> Calling vaTerminate() after the pixmaps, given to vaPutSurface(), have
> been destroyed results in errors coming from the X server.
> 
> These errors happens because LibVA tries to destroy the DRI2Drawables
> related to the XPixmaps passed to vaPutSurface(). VA_DRI2Error() has
> some code to catch these errors and ignore them. The problem is that
> LibX11 doesn't trigger the extension error handlers unless you're
> waiting for a response using _XReply(), and there is no defined answer
> to a DRI2DestroyDrawable message in the DRI2 protocol.

manually updating to libva1_1.5.0-1, i965-va-driver_1.5.0-1, libva-x11-1_1.5.0-1, and libva-glx1_1.5.0-1 addresses this problem. After installing and linking the libs in the steam-runtime directories, I no longer encounter this error.

I am opening this bug against steam-runtime at Plagman's suggestion to track upgrading the version of libva to 1.5.0, or backporting the fix. I originally opened this issue against SteamOS.

Thanks!

noodle1009 avatar Feb 09 '15 01:02 noodle1009