Skip to content

Failure to open libpangoft2 causes crash on SDL_VIDEODRIVER=wayland #4060

@atomicf32

Description

@atomicf32

Due to the current update of cs2 dropping mouse inputs for me in xwayland I have opted to edit the cs2.sh file and make it run in wayland natively. After the edit, the game would randomly crash when opening the buy menu. After some investigation I was getting this error when the crash would occur in the shell:

wp_linux_drm_syncobj_surface_v1#63: error 3: Missing buffer
ERROR: Wayland display connection closed by server (fatal)
zenity: symbol lookup error: /lib/x86_64-linux-gnu/libgtk-3.so.0: undefined symbol: pango_font_family_get_face

After closer look there seemed to be two libraries failing to load in when the game boots up: libpangoft2 and renderdoc. I looked in the .local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/ directory for libpangoft2-1.0.so as it was named in the logs. I only found libpangoft2-1.0.so.0. I tried copying the file to libpangoft2-1.0.so and the library load error went away. The crashes have not happened since. There are new errors that are appearing: Pango-CRITICAL **: 17:19:11.365: pango_layout_line_get_x_ranges: assertion 'start_index <= end_index' failed. I believe these are in place of the zenity: symbol lookup error: /lib/x86_64-linux-gnu/libgtk-3.so.0: undefined symbol: pango_font_family_get_face which at least does something with the buffer the font was meant to go into so that the graphics stack doesn't explode.

I would appreciate it if this issue was fixed so that others may also run the game natively in wayland.

Thanks,
Russell Hynes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions