protonscr

X Error of failed request messages and client crashes

steamopen NVIDIA driversDistro Family: DebianWeb Component
ValveSoftware/steam-for-linux#9566 · opened 2023-06-06 by jpenalbae · updated 2023-06-23 · 6 comments · github
Jjpenalbae 2023-06-06 github

Your system information

  • Steam client version (build number or date): 1685664179 (Fri, Jun 2 1:35 AM UTC -08:00)
  • Distribution Debian unstable/sid
  • Opted into Steam client beta?: Yes
  • Have you checked for system updates?: Yes
  • System information: gist
  • Steam Runtime System Information: gist

Please describe your issue in as much detail as possible:

The following messages are constantly spammed on steamwebhelper.log

Webhelper: An X Error occurred
X Error of failed request:  GLXBadPixmap
Major opcode of failed request:  152
Serial number of failed request:  0
Webhelper: An X Error occurred
X Error of failed request:  GLXBadPixmap
Major opcode of failed request:  152
Serial number of failed request:  0
Webhelper: An X Error occurred
X Error of failed request:  GLXBadPixmap
Major opcode of failed request:  152
Serial number of failed request:  4322
Webhelper: An X Error occurred
X Error of failed request:  BadAlloc (insufficient resources for operation)
Major opcode of failed request:  152
Serial number of failed request:  4325
Webhelper: An X Error occurred
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
Major opcode of failed request:  156
Resource id in failed request:  0x22006b4
Serial number of failed request:  432

If GPU acceleration rendering in web views is enabled then also get these messages:

Webhelper: An X Error occurred
X Error of failed request:  BadAlloc [0606/201530.028676:ERROR:gl_surface_egl.cc(741)] EGL Driver message (Critical) eglMakeCurrent: Failed to make the
GLX context current
[0606/201530.029392:ERROR:gpu_service_impl.cc(1124)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortl
y.
[0606/201530.057106:WARNING:gpu_process_host.cc(1256)] The GPU process has crashed 1 time(s)
[0606/201530.058768:INFO:crash_reporting.cc(271)] Crash reporting enabled for process: gpu-process
[0606/201530.079570:WARNING:xproto_util.cc(51)] X error received: serial 4922, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, mino
r_code 0 (X_DestroyWindow)
[0606/201530.188858:WARNING:gpu_process_host.cc(984)] Reinitialized the GPU process after a crash. The reported initialization time was 129 ms
(insufficient resources for operation)

After several of those then I get these other messages, a client restart and a minidump is created (Not sure if the minidump gets sent).

X Error of failed request:  BadAlloc (insufficient resources for operation)
Major opcode of fa[0606/201538.519505:WARNING:gpu_process_host.cc(984)] Reinitialized the GPU process after a crash. The reported initialization time was 17 ms
[0606/201538.563543:WARNING:xproto_util.cc(51)] X error received: serial 6632, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
[0606/201538.564158:ERROR:command_buffer_proxy_impl.cc(122)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
[0606/201538.564817:WARNING:ipc_message_attachment_set.cc(49)] MessageAttachmentSet destroyed with unconsumed attachments: 0/1
[0606/201538.564827:ERROR:command_buffer_proxy_impl.cc(122)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
[0606/201538.565847:WARNING:ipc_message_attachment_set.cc(49)] MessageAttachmentSet destroyed with unconsumed attachments: 0/1
[0606/201538.565858:ERROR:command_buffer_proxy_impl.cc(122)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
[0606/201538.567328:WARNING:ipc_message_attachment_set.cc(49)] MessageAttachmentSet destroyed with unconsumed attachments: 0/1
[0606/201538.567332:ERROR:command_buffer_proxy_impl.cc(122)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
[0606/201538.598263:WARNING:xproto_util.cc(51)] X error received: serial 6645, error_code 3 (BadWindow (invalid Window parameter)), request_code 129, minor_code 1 (X_ShapeRectangles)
[0606/201538.598313:WARNING:xproto_util.cc(51)] X error received: serial 6648, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
[0606/201538.610553:ERROR:x11_software_bitmap_presenter.cc(136)] XGetWindowAttributes failed for window 25165851
[0606/201538.611398:ERROR:x11_software_bitmap_presenter.cc(136)] XGetWindowAttributes failed for window 25165846
[0606/201538.612066:ERROR:x11_software_bitmap_presenter.cc(136)] XGetWindowAttributes failed for window 25165871
[0606/201538.612677:ERROR:x11_software_bitmap_presenter.cc(136)] XGetWindowAttributes failed for window 25165886
[0606/201538.613394:ERROR:x11_software_bitmap_presenter.cc(136)] XGetWindowAttributes failed for window 25165881
[0606/201538.613896:ERROR:x11_software_bitmap_presenter.cc(136)] XGetWindowAttributes failed for window 25165876
[0606/201538.614192:ERROR:x11_software_bitmap_presenter.cc(136)] XGetWindowAttributes failed for window 25165901
[0606/201538.614409:ERROR:x11_software_bitmap_presenter.cc(136)] XGetWindowAttributes failed for window 25165896
[0606/201538.614718:ERROR:x11_software_bitmap_presenter.cc(136)] XGetWindowAttributes failed for window 25165891
[0606/201538.615080:ERROR:x11_software_bitmap_presenter.cc(136)] XGetWindowAttributes failed for window 25165911
[0606/201538.615232:ERROR:x11_software_bitmap_presenter.cc(136)] XGetWindowAttributes failed for window 0
[0606/201538.619331:WARNING:xproto_util.cc(51)] X error received: serial 210, error_code 9 (BadDrawable (invalid Pixmap or Window parameter)), request_code 55, minor_code 0 (X_CreateGC)
[0606/201538.619415:WARNING:xproto_util.cc(51)] X error received: serial 211, error_code 3 (BadWindow (invalid Window parameter)), request_code 3, minor_code 0 (X_GetWindowAttributes)
[0606/201538.619552:WARNING:xproto_util.cc(51)] X error received: serial 214, error_code 9 (BadDrawable (invalid Pixmap or Window parameter)), request_code 55, minor_code 0 (X_CreateGC)
[0606/201538.619621:WARNING:xproto_util.cc(51)] X error received: serial 215, error_code 3 (BadWindow (invalid Window parameter)), request_code 3, minor_code 0 (X_GetWindowAttributes)
[0606/201538.619707:WARNING:xproto_util.cc(51)] X error received: serial 217, error_code 13 (BadGC (invalid GC parameter)), request_code 60, minor_code 0 (X_FreeGC)
[0606/201538.619755:WARNING:xproto_util.cc(51)] X error received: serial 218, error_code 9 (BadDrawable (invalid Pixmap or Window parameter)), request_code 55, minor_code 0 (X_CreateGC)
[0606/201538.619799:WARNING:xproto_util.cc(51)] X error received: serial 219, error_code 3 (BadWindow (invalid Window parameter)), request_code 3, minor_code 0 (X_GetWindowAttributes)
[0606/201538.619858:WARNING:xproto_util.cc(51)] X error received: serial 222, error_code 9 (BadDrawable (invalid Pixmap or Window parameter)), request_code 55, minor_code 0 (X_CreateGC)
[0606/201538.619903:WARNING:xproto_util.cc(51)] X error received: serial 223, error_code 3 (BadWindow (invalid Window parameter)), request_code 3, minor_code 0 (X_GetWindowAttributes)
[0606/201538.620010:WARNING:xproto_util.cc(51)] X error received: serial 226, error_code 9 (BadDrawable (invalid Pixmap or Window parameter)), request_code 55, minor_code 0 (X_CreateGC)
[0606/201538.620056:WARNING:xproto_util.cc(51)] X error received: serial 227, error_code 3 (BadWindow (invalid Window parameter)), request_code 3, minor_code 0 (X_GetWindowAttributes)
[0606/201538.620112:WARNING:xproto_util.cc(51)] X error received: serial 230, error_code 9 (BadDrawable (invalid Pixmap or Window parameter)), request_code 55, minor_code 0 (X_CreateGC)
[0606/201538.620159:WARNING:xproto_util.cc(51)] X error received: serial 231, error_code 3 (BadWindow (invalid Window parameter)), request_code 3, minor_code 0 (X_GetWindowAttributes)
[0606/201538.620212:WARNING:xproto_util.cc(51)] X error received: serial 233, error_code 9 (BadDrawable (invalid Pixmap or Window parameter)), request_code 55, minor_code 0 (X_CreateGC)
[0606/201538.620255:WARNING:xproto_util.cc(51)] X error received: serial 234, error_code 3 (BadWindow (invalid Window parameter)), request_code 3, minor_code 0 (X_GetWindowAttributes)
[0606/201538.620296:WARNING:xproto_util.cc(51)] X error received: serial 236, error_code 13 (BadGC (invalid GC parameter)), request_code 60, minor_code 0 (X_FreeGC)
[0606/201538.620343:WARNING:xproto_util.cc(51)] X error received: serial 237, error_code 9 (BadDrawable (invalid Pixmap or Window parameter)), request_code 55, minor_code 0 (X_CreateGC)
[0606/201538.620399:WARNING:xproto_util.cc(51)] X error received: serial 238, error_code 3 (BadWindow (invalid Window parameter)), request_code 3, minor_code 0 (X_GetWindowAttributes)
[0606/201538.620590:WARNING:xproto_util.cc(51)] X error received: serial 240, error_code 13 (BadGC (invalid GC parameter)), request_code 60, minor_code 0 (X_FreeGC)
[0606/201538.620649:WARNING:xproto_util.cc(51)] X error received: serial 241, error_code 9 (BadDrawable (invalid Pixmap or Window parameter)), request_code 55, minor_code 0 (X_CreateGC)
[0606/201538.620703:WARNING:xproto_util.cc(51)] X error received: serial 242, error_code 3 (BadWindow (invalid Window parameter)), request_code 3, minor_code 0 (X_GetWindowAttributes)
[0606/201538.620764:WARNING:xproto_util.cc(51)] X error received: serial 244, error_code 13 (BadGC (invalid GC parameter)), request_code 60, minor_code 0 (X_FreeGC)
[0606/201538.620821:WARNING:xproto_util.cc(51)] X error received: serial 245, error_code 9 (BadDrawable (invalid Pixmap or Window parameter)), request_code 55, minor_code 0 (X_CreateGC)
[0606/201538.620864:WARNING:xproto_util.cc(51)] X error received: serial 246, error_code 3 (BadWindow (invalid Window parameter)), request_code 3, minor_code 0 (X_GetWindowAttributes)
[0606/201538.620908:WARNING:xproto_util.cc(51)] X error received: serial 248, error_code 9 (BadDrawable (invalid Pixmap or Window parameter)), request_code 55, minor_code 0 (X_CreateGC)
[0606/201538.620956:WARNING:xproto_util.cc(51)] X error received: serial 249, error_code 3 (BadWindow (invalid Window parameter)), request_code 3, minor_code 0 (X_GetWindowAttributes)
[0606/201540.034171:WARNING:xproto_util.cc(51)] X error received: serial 6769, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
[0606/201540.034210:WARNING:xproto_util.cc(51)] X error received: serial 6773, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
[0606/201540.034223:WARNING:xproto_util.cc(51)] X error received: serial 6777, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
[0606/201540.034245:WARNING:xproto_util.cc(51)] X error received: serial 6781, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
[0606/201540.034258:WARNING:xproto_util.cc(51)] X error received: serial 6785, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
[0606/201540.034269:WARNING:xproto_util.cc(51)] X error received: serial 6789, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
[0606/201540.034281:WARNING:xproto_util.cc(51)] X error received: serial 6793, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
[0606/201540.034292:WARNING:xproto_util.cc(51)] X error received: serial 6797, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
[0606/201540.034304:WARNING:xproto_util.cc(51)] X error received: serial 6801, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
[0606/201540.034317:WARNING:xproto_util.cc(51)] X error received: serial 6805, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
[0606/201540.034331:WARNING:xproto_util.cc(51)] X error received: serial 6809, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
[0606/201540.034342:WARNING:xproto_util.cc(51)] X error received: serial 6813, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
[0606/201540.034354:WARNING:xproto_util.cc(51)] X error received: serial 6817, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
--2023-06-06 20:15:43--  https://crash.steampowered.com/submit
Resolving crash.steampowered.com (crash.steampowered.com)... 208.64.203.173, 208.64.203.140
Connecting to crash.steampowered.com (crash.steampowered.com)|208.64.203.173|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘/dev/fd/4’

Also /tmp/dump/ is full of minidumps:

$ ls -al /tmp/dumps/
total 4936
drwxr-x--T  2 jaime jaime    220 Jun  6 20:30 .
drwxrwxrwt 39 root  root    1160 Jun  6 20:54 ..
-rw-------  1 jaime jaime 628744 Jun  6 19:37 assert_20230606193752_29.dmp
-rw-------  1 jaime jaime 617120 Jun  6 20:00 assert_20230606200031_29.dmp
-rw-------  1 jaime jaime 641504 Jun  6 20:02 assert_20230606200208_29.dmp
-rw-------  1 jaime jaime 621352 Jun  6 20:12 assert_20230606201215_29.dmp
-rw-------  1 jaime jaime 632816 Jun  6 20:14 assert_20230606201426_29.dmp
-rw-------  1 jaime jaime 641712 Jun  6 20:22 assert_20230606202203_29.dmp
-rw-------  1 jaime jaime 620992 Jun  6 20:29 assert_20230606202928_29.dmp
-rw-------  1 jaime jaime 633352 Jun  6 20:30 assert_20230606203019_29.dmp
-rw-r-----  1 jaime jaime   1152 Jun  6 20:30 jaime_log.txt

Full log here: steam-full2.log.gz

Output for minidump-stackwalk /tmp/dumps/assert_20230606202928_29.dmp
stackwalk.txt.gz

Steps for reproducing this issue:

  1. Launch steam client with GPU acceleration rendering in web views enabled
  2. Go to library
  3. Right click any game -> properties
  4. Close the properties window
  5. Repeat steps 3 and 4 until the client restarts (normally repeating the steps 3-4 times is enough)

Client also seems to randomly restart sometimes, but the steps described above can be used to force the restart.

Other notes:

The only workaround to avoid client crashing and generating dumps is disabling GPU acceleration rendering in web views although X Error of failed request messages spam is still present.

This only happens with beta client, if I roll back to stable client, there is no error messages spam neither crashes. I have seen this behavior since the big "UI overhaul" update.

Things I have tried to avoid this problem without success:

  • Change window manager
  • Use 1 monitor setup
  • Latest standalone NVIDIA driver
  • Latest debian NVIDIA driver
  • Full steam client reinstall purging .steam and .local/share/Steam
  • Full reinstall of mesa and gl libraries for amd64 and i386

I have seen many reports talking about bad nvidia or mesa installations but reinstalling does not fix the problem for me. Also the issue #9164 might be similar but without the crashing.

Kkisak-valve maintainer 2023-06-06 github

Hello @jpenalbae, can you also copy Steam's runtime diagnostics information (Steam -> Help -> Steam Runtime Diagnostics) to a gist and share it?

Jjpenalbae 2023-06-06 github

Here you have @kisak-valve: gist

Not sure what is going on here:
https://gist.github.com/jpenalbae/3173ad685b308aa55806350cfaeb9932#file-runtime_info-json-L130

If I check 32 bits vainfo seems to be fine from the terminal...

$ file /usr/bin/vainfo
/usr/bin/vainfo: ELF 32-bit LSB pie executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, BuildID[sha1]=71a41a953e75a4bb1440e780cd3044204e6a55cd, for GNU/Linux 3.2.0, stripped
$ LIBVA_DRIVER_NAME=nvidia vainfo
libva info: VA-API version 1.17.0
libva info: User environment variable requested driver 'nvidia'
libva info: Trying to open /usr/lib/i386-linux-gnu/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.17 (libva 2.12.0)
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.4
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG4Simple            : VAEntrypointVLD
      VAProfileMPEG4AdvancedSimple    : VAEntrypointVLD
      <unknown profile>               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
Kkisak-valve maintainer 2023-06-06 github

Thanks, unfortunately that looks pretty healthy to my eyes, so I have no quick suggestions to try. We'll need a Steam dev to take a look.

As far as I know, 32 bit va-api isn't used by steamwebhelper, so that anomaly could be unrelated.

Jjpenalbae 2023-06-06 github

Ok, thank for your support.

Hopefully this will get fixed. Since the UI overhaul the linux client has been a bit finicky...

Jjpenalbae 2023-06-07 github

Client crashing and restarts seems to be fixed with the latest June 6th update. From the changelog we can see:

- Fixed a crash when steam windows were closed with HW acceleration enabled on Nvidia GPUs.
- Re-enabled HW acceleration by default for Nvidia GPUs.

I can confirm the crashing has been fixed, but the continuous "X error" messages spam in steamwebhelper.log is still present.

SSaroumane 2023-06-23 github

For what it's worth : I have the same errors spamming in steamwebhelper.log (with Steam version 1686880776 and the latest : 1687386907 ). After steamwebhelper has crashed, the Store is an empty black page in the Steam client. But I don't need to fully restart the client to restore the Store. I just need to navigate to the Library, then go back to the Store.
When I uncheck "GPU acceleration rendering in web views" the errors seems to stop in steamwebhelper.log . I'll see if crashes stop too.

Edit : it does not prevent the crash, which happens half a minute after the Steam client has restarted.

Nothing extracted yet.