Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Torchlight II undefined symbol: FT_Done_MM_Var #525

Open
samcv opened this issue Jan 12, 2020 · 7 comments
Open

Torchlight II undefined symbol: FT_Done_MM_Var #525

samcv opened this issue Jan 12, 2020 · 7 comments

Comments

@samcv
Copy link

samcv commented Jan 12, 2020

Game information
Torchlight II

Distribution name and version where applicable

NAME="openSUSE Tumbleweed"

VERSION="20200108"

Flatpak info
flatpak --version
Flatpak 1.6.0

flatpak --gl-drivers
default
host

Problem description

/home/samantha/.local/share/Steam/steamapps/common/Torchlight II/ModLauncher.bin.x86_64: symbol lookup error: /usr/lib/x86_64-linux-gnu/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var

Does this issue reproduce with native Steam
Torchlight II works fine with native steam

This is related to #95 except Torchlight II's version of libfontconfig.so.1 is blocked, but it is a different file which now has this issue.

output with --env=LD_DEBUG=libs,files,bindings

       465:     file=libfontconfig.so.1 [0];  needed by /home/samantha/.local/share/Steam/steamapps/common/Torchlight II/ModLauncher.bin.x86_64 [0]
       465:     find library=libfontconfig.so.1 [0]; searching
       465:      search path=/home/samantha/.local/share/Steam/steamapps/common/Torchlight II/lib64             (RPATH from file /home/samantha/.local/share/Steam/steamapps/common/Torchlight II/ModLauncher.bin.x86_64)
       465:       trying file=/home/samantha/.local/share/Steam/steamapps/common/Torchlight II/lib64/libfontconfig.so.1
Blocked library /home/samantha/.local/share/Steam/steamapps/common/Torchlight II/lib64/libfontconfig.so.1
       465:      search path=/home/samantha/.local/share/Steam/ubuntu12_32/steam-runtime/pinned_libs_32:/home/samantha/.local/share/Steam/ubuntu12_32/steam-runtime/pinned_libs_64:/app/lib/i386-linux-gnu/GL/default/lib:/app/lib32:/app/lib/i386-linux-gnu:/lib64:/app/lib:/usr/lib/x86_64-linux-gnu/GL/default/lib:/usr/lib/x86_64-linux-gnu/openh264/extra               (LD_LIBRARY_PATH)
       465:       trying file=/home/samantha/.local/share/Steam/ubuntu12_32/steam-runtime/pinned_libs_32/libfontconfig.so.1
       465:       trying file=/home/samantha/.local/share/Steam/ubuntu12_32/steam-runtime/pinned_libs_64/libfontconfig.so.1
       465:       trying file=/app/lib/i386-linux-gnu/GL/default/lib/libfontconfig.so.1
       465:       trying file=/app/lib32/libfontconfig.so.1
       465:       trying file=/app/lib/i386-linux-gnu/libfontconfig.so.1
       465:       trying file=/lib64/libfontconfig.so.1
       465:       trying file=/app/lib/libfontconfig.so.1
       465:       trying file=/usr/lib/x86_64-linux-gnu/GL/default/lib/libfontconfig.so.1
       465:       trying file=/usr/lib/x86_64-linux-gnu/openh264/extra/libfontconfig.so.1
       465:      search path=/usr/lib/x86_64-linux-gnu          (system search path)
       465:       trying file=/usr/lib/x86_64-linux-gnu/libfontconfig.so.1
       465:
       465:     file=libfontconfig.so.1 [0];  generating link map
       465:       dynamic: 0x00007f55afb1e9e0  base: 0x00007f55afad7000   size: 0x0000000000048288
/home/samantha/.local/share/Steam/steamapps/common/Torchlight II/ModLauncher.bin.x86_64: symbol lookup error: /usr/lib/x86_64-linux-gnu/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var

@aidanharris
Copy link

I had this issue with Civ VI after updating the freedesktop runtime to the 20.08beta and re-building the flatpak locally. It was working fine before I did this. I'm guessing the older fontconfig was compatible but this is no longer true due to the beta shipping an updated version? The workaround mentioned in issue #95 of forcing Steam's libfontconfig via LD_PRELOAD seems to have done the trick.

@nanonyme
Copy link
Collaborator

Out of the box compat cannot be guaranteed for 20.08 until closer to release. If 19.08 has stopped working, it would be nice if someone could test with this file removed completely https://github.com/flathub/com.valvesoftware.Steam/blob/beta/resources/blocklist/torchlightII.yml and app rebuilt.

@nanonyme
Copy link
Collaborator

We're now on 20.08. Is anyone able to test this if I make a scratch build?

@samcv
Copy link
Author

samcv commented Sep 12, 2020

@nanonyme I am able to test. Just let me know how to install the scratch build.

@nanonyme
Copy link
Collaborator

@samcv install instructions are in linked pull request once build is done. Make sure to remove after testing since it will otherwise just be left on your machine.

@samcv
Copy link
Author

samcv commented Sep 13, 2020

That build does not work. Launched with flatpak run --branch=test com.valvesoftware.Steam.

No cached sticky mapping in ActivateActionSet.GameAction [AppID 200710, ActionID 6] : LaunchApp changed task to ProcessingInstallScript with ""
GameAction [AppID 200710, ActionID 6] : LaunchApp changed task to SynchronizingCloud with ""
GameAction [AppID 200710, ActionID 6] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 200710, ActionID 6] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 200710, ActionID 6] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 200710, ActionID 6] : LaunchApp continues with user response "CreatingProcess"
Game update: AppID 200710 "", ProcID 620, IP 0.0.0.0:0
Starting app 200710
>>> Adding process 620 for game ID 200710
GameAction [AppID 200710, ActionID 6] : LaunchApp changed task to WaitingGameWindow with ""
GameAction [AppID 200710, ActionID 6] : LaunchApp changed task to Completed with ""
ERROR: ld.so: object '/home/samantha/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/samantha/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/home/samantha/.local/share/Steam/steamapps/common/Torchlight II/ModLauncher.bin.x86_64: symbol lookup error: /usr/lib/x86_64-linux-gnu/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var
>>> Adding process 621 for game ID 200710
Game removed: AppID 200710 "", ProcID 620 
Uploaded AppInterfaceStats to Steam
Exiting app 200710
No cached sticky mapping in ActivateActionSet

If I run it without the test version:

Opted-in Controller Mask for AppId 200710: 0
Game update: AppID 200710 "", ProcID 493, IP 0.0.0.0:0
Starting app 200710
>>> Adding process 493 for game ID 200710
GameAction [AppID 200710, ActionID 1] : LaunchApp changed task to WaitingGameWindow with ""
GameAction [AppID 200710, ActionID 1] : LaunchApp changed task to Completed with ""
ERROR: ld.so: object '/home/samantha/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/samantha/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 500 for game ID 200710
/home/samantha/.local/share/Steam/steamapps/common/Torchlight II/ModLauncher.bin.x86_64: symbol lookup error: /usr/lib/x86_64-linux-gnu/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var
Game removed: AppID 200710 "", ProcID 493 
Uploaded AppInterfaceStats to Steam
Exiting app 200710
No cached sticky mapping in ActivateActionSet.Installing breakpad exception handler for appid(steam)/version(1599861500)
Installing breakpad exception handler for appid(steam)/version(1599861500)

@andrevmatos
Copy link

From this topic, adding LD_PRELOAD=~/.var/app/com.valvesoftware.Steam/data/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libfontconfig.so.1 %COMMAND% to game's launch options (inside Torchlight II's properties) allows it to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants