NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.31k stars 13.55k forks source link

When trying to run winetricks from lutris: libgtk-4.so.1: undefined symbol: pango_layout_line_get_length #285748

Open UlyssesZh opened 7 months ago

UlyssesZh commented 7 months ago

Describe the bug

The following error is raised when trying to run winetricks from Lutris:

------------------------------------------------------
warning: You are running winetricks-20230212-next, latest upstream is winetricks-20240105!
------------------------------------------------------
------------------------------------------------------
warning: You should update using your distribution's package manager, --self-update, or manually.
------------------------------------------------------
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20230212-next - sha256sum: 2d7770aa1f49f42ad9dafb092110dbf49fa6581738f6b80488cf0d7f59b2de72 with wine-7.2-1-g1f8837bdccd (Staging) and WINEARCH=win64
zenity: symbol lookup error: /nix/store/569ym070slyrl6bzszafwlkdcivrn743-gtk4-4.12.4/lib/libgtk-4.so.1: undefined symbol: pango_layout_line_get_length
winetricks GUI enabled, using zenity 
zenity: symbol lookup error: /nix/store/569ym070slyrl6bzszafwlkdcivrn743-gtk4-4.12.4/lib/libgtk-4.so.1: undefined symbol: pango_layout_line_get_length
Monitored process exited.
Initial process has exited (return code: 0)
Exit with return code 0

The runner version used is lutris-7.2-2-x86_64.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install lutris package from unstable channel.
  2. Run lutris command. In the GUI, click the three dots on top right corner, Preferences, Runners, the last button in the Wine row (manage wine versions), install lutris-7.2-2.
  3. In the main GUI of Lutris, click plus sign at the upper left corner, add locally installed game.
  4. Fill in an arbitrary name. In "Game info", select Wine as the runner. In "Game options", fill in an arbitrary runnable exe and an arbitrary working directory, set the wine prefix to be an empty dir. In "Runner options", select lutris-7.2-2-x86_64 as the Wine version.
  5. In the main GUI of Lutris, select the game just added. Next to the "Play" button there is another button with the logo of Wine. Expand the drop down menu of that button, the first item is "Winetricks". Click it. If the bug is reproduced, nothing happens about the GUI, and errors about libgtk-4.so.1: undefined symbol: pango_layout_line_get_length appear in the command line output of the lutris command.

Expected behavior

The GUI window of winetricks pops up.

Additional context

Related issue in the upstream: lutris/lutris#4231

Turning on "Disable Lutris Runtime" in the system options in the configuration of the game seems to fix this issue.

Notify maintainers

@jtojnar @bobby285271 @Madouura

Metadata


Add a :+1: reaction to issues you find important.

MROvaiz commented 4 months ago

Facing this issue, anyone update on this what to do?

michaelBelsanti commented 2 months ago

For now, you can enable "Use system winetricks" in your Wine runner settings to work around this.