lutris / lutris

Lutris desktop client
https://lutris.net
GNU General Public License v3.0
7.93k stars 693 forks source link

FreeType issue with wine after update to 0.4.19 and above #1096

Closed VortexAcherontic closed 5 years ago

VortexAcherontic commented 6 years ago

Hi I'm not a 100% sure if this error is caused by lutris or by my distro but I trried a lot and think this is caused by lutris somehow.

Here is the problem: If I launch wine via lutris I get this error message: Wine cannot find the FreeType font library. To enable Wine to use TrueType fonts please install a version of FreeType greater than or equal to 2.0.5. http://www.freetype.org

I tried the following to check if this problem persists even with my system side installed wine (3.7)

env WINEPREFIX=~/.wine32 WINEARCH=win32 notepad and env WINEPREFIX=~/.wine64 WINEARCH=win64 notepad

To make wine create completely fresh and new prefixes and launches notepad. No font issues here.

Also I tried with a fresh new lutris config folder (~/.local/share/lutris) with no success. After this I wasn't even able to run any Lutris installer every installer stopped at "Installing game data".

Further on I tried different Lutris installers with different wine versions all causing the same problem. Winesteam has no fonts most installers quit with errors because of missing fonts eg. With the previous Lutris version 0.4.18 I had no such issues at all whether with 32bit wine nor with 64bit wine.

My distro is: openSUSE Leap 15.0 Kernel: 4.12.14-lp150.12.16-default

Also I checked if I have also 32bit libraries installed such as: libfreetype6 libfreetype6-32bit libXft2 libXft-32bit

If you need any additional infos please let me know.

vellfire commented 6 years ago

I'm also getting this issue and I am on openSUSE Tumbleweed.

Dawiddym commented 6 years ago

Dunno if I should write about it here, but after the last battle.net client update i can't see the fonts in the battle.net client which is mildly annoying. I seem to have all the dependencies. I'm running Lutris on Arch. Any suggestions? screenshot_2018-09-12_20-49-24

tannisroot commented 6 years ago

@Dawiddym try installing Arial verb from Winetricks

dax-dev commented 6 years ago

I'm having the same problem as @Dawiddym , but there's no error like OP. Should I create a new issue?

Dawiddym commented 6 years ago

@tannisroot Either it doesn't work or I did something wrong - I run Winetricks, chose "Select the default wineprefix" >> "Install a font" >>"corefonts" option. The issue persists.

VortexAcherontic commented 6 years ago

I can not launch winetricks in any prefix trough lutris. But if I run env WINEPREFIX=<path-to-lutris.winesteam-game-prefix> WINEARCH=win64 winetricks winetricks is starting properly in that prefix.

Even if I run notepad in that prefix the same way there are no messages about missing FreeType libraries.

So it looks like the font issue only appears if lutris is launching any wine application.

Dawiddym commented 6 years ago

Edit: After looking into it, it seems that my issues with the fonts were caused by disabling DXVK in configuration - when it is enabled the fonts are shown just fine

VortexAcherontic commented 6 years ago

Issue still persist on my system. Clean lutris config folder and still no fonts and the same message in the terminal. =/ I'm not sure if I miss something but maybe anybody of you can help me. If I search for freetype2 as rpm for my system I find some repos but after running One Click Install or just adding the wanted repo I still can not find any freetype2 package in YaST.

OS: openSUSE Leap 15.0 (Kernel: 4.12.14-lp150.12.16-default)

Edit: And it even got worse. Now I can not even run Winesteam with any Lutris Wineprefix/Version (default is: 3.12-staging x86_64). The only way to get it launching is to change the default configuration to my system side installed wine (3.7) but still with out fonts.

I'm not sure what the problem is but I would appreciate any help or hints on this issue. At the current state it is for me unusable when it comes to wine. It's my main use case for lutris =/

VortexAcherontic commented 6 years ago

I also asked at the official opensuse forum to receive any help, might be something with the libfreetype6-32bit rather than lutris. Not quite sure yet read the thread here for any updates: https://forums.opensuse.org/showthread.php/533391-Lutris-Wine-and-Freetype2

kaosstar commented 6 years ago

I'm having the same problem. I'm also on OpenSuse Leap 15.

tannisroot commented 6 years ago

I have a feeling that this is caused by the fact that Lutris wine is built under Ubuntu 16.04, which has a quite old version of freetype that may be incompatible with newer freetype on modern systems.

VortexAcherontic commented 6 years ago

Hey there!

I just tried Lutris today, after a few week. And the issue was somehow fixed in the past, I don't know if it was by any openSUSE Update or Lutris. Currently I'm running Lutris 0.4.21.1.

So I think this issue is somehow solved? To anyone else who faceing this issue, try Lutris 0.4.21.1.

Can anybody confirm this to me so I can be sure that there are no other things involved in this?

Can it might be that some NVidia drivers could cause/fixed this issue? That the only big thing, beside Lutris 0.4.21.1 I remember in the last weeks. I'm running the proprietary NV driver 410.73.

The strangest thing about this is, that the terminal output still claims "Wine cannot find the FreeType font library. To enable Wine to use TrueType fonts please install a version of FreeType greater than or equal to 2.0.5." but fonts are there.

Dawiddym commented 6 years ago

I don't think new version of Lutris fixed the problem. I have the same version as you do and the problem persists unless I enable DXVK. screenshot_20181105_164302

VortexAcherontic commented 6 years ago

No, DXVK didn't fixed the issue for me earlier. I tried this for an already installed game (I had first discovered this issue with an game using DXVK and it had DXVK enabled) and also for the winesteam runner where also is an DXVK option. But both didn't fixed it for me back then.

Further on lutris didn't executed any install scripts which where installing a wine game because of something related to this.

But yesteday everything worked again, but still with the FreeType output in the terminal.

Dawiddym commented 6 years ago

Yeah, I agree now. Being curious and all I reinstalled Hearthstone yesterday and everything started working again. Admittedly I did it somewhat differently (different DXVK package) and I increased my limits in Systemd for esync, but I don't think these actions helped in anyway. Yet it works now ¯_(ツ)_/¯

VortexAcherontic commented 6 years ago

Hm, today I tested Lutris (Version 0.4.23) on my Notebook.

OS: openSUSE Leap 15.0 (4.12.14-lp150.12.25-default) CPU: Intel i5-3230M GPU: Intel HD 4000 and GT 730M (Bumblebee installed with NVidia driver: 410.73) RAM: 8 GB

And got all issues again, even with a clean Lutris config folder. Battle.Net dose not have any fonts (Same message in terminal as posted several times here) And winesteam games do not even install.

But I'm not sure if this is caused with the latest lutris updates or the software/hardware configuration on my Notebook. Further on I can currently not test it on my main rig to confirm if it is broken again there.

I tested Lutris with and with out optimus/primus with no difference. (Optimus/Primus is setup correctly and fully working).

Need to check later on my main PC

VortexAcherontic commented 6 years ago

I tested something else, while I was investigating another issue with lutris, if I ran lutris wines manually through the terminal like:

export WINEPREFIX="/home/<user>/.local/share/lutris/runners/winesteam/prefix64/"                                                                
export WINEPATH="/home/<user>/.local/share/lutris/runners/wine/tkg-3.19-x86_64/bin/wine" 
cd "/home/<user>/.local/share/lutris/runners/winesteam/prefix64/drive_c/Program Files (x86)/Steam/"     
wine Steam.exe    

There are no complains about any font issues nor missing TrueType Fontns 2.0.5

strycore commented 5 years ago

I have set the "prefer system libs" to false as default as it was causing a whole bunch of issues across distros. With that behavior I was able to install Battle.net on Leap 15 without any issue

VortexAcherontic commented 5 years ago

@strycore looking good, just installed Heroes of The Storm and of course Battle net, no TrueType messages in the terminal and fonts in the Battle.Net client :+1: Thanks a lot!