fonts stuck installing
Describe the bug/To reproduce
im trying to install fonts via protontricks for black mesa, as there is a font issue when running it via proton. i found a fix to the issue online, which was to install corefonts, lucida, and tahoma. ive tried to install those via protontricks but came across a error that said something along the lines of "...this will hang until all wine processes terminate" and found a thread in which someone said running killall wineserver right after hitting ok to install the fonts. i thought it seemed to be working but its currently been stuck for almost an hour now.
Expected behavior fonts to install
System (please complete the following information):
- Distro: latest stable branch of steamOS
- Protontricks installation method: flatpak
- Protontricks version: run
protontricks --versionto print the version. "command not found" in terminal, i assume there is another but im just ignorant of its existence - Steam version: latest stable of steam(/steamOS)
Additional context
If the error happens when trying to run a Protontricks command, run the command again using the -vv flag and copy the output!
For example, if the command that causes the error is protontricks 42 faudio, run protontricks -vv 42 faudio instead and copy the output here.
If the output is very long, consider creating a gist using gist.github.com.
We have a user that's reporting similar issues installing fonts with our Mod Organizer 2 installer. I'm not at my computer to replicate it, but if it hasn't cleared up by time I'm able to test it out, I'll provide whatever info I can to help
Just got back and was unable to reproduce on my end. I was able to run protontricks 22320 -q arial fontsmooth=rgb and both installed as expected.
ah, oof. how would i go about trying to install corefonts, lucida, and tahoma that method? like where do i enter commands like protontricks? also does this look correct? protontricks 362890 -q corefonts lucida tahoma
i did a bit of research and found out about the bash script thing to get protontricks to work but chose a less permanent method (or at least i have no idea how to remove it) and did this. i assume there's a way to list multiple but i did them separate just in case
ive only ran the corefronts one so far but its actually making, what looks to be, progress
flatpak run com.github.Matoking.protontricks 362890 -q corefonts
flatpak run com.github.Matoking.protontricks 362890 -q lucida
flatpak run com.github.Matoking.protontricks 362890 -q tahoma
I was just about to comment, I was able to install those three successfully. And that's exactly what you do in the terminal, though for future reference you can do all three at the same time -q corefonts lucida tahoma
it looks like they all installed but when running the game, the fonts are still wack. must be an issue outside of protontricks/wine though. i checked the directory for the fonts and i saw tahoma, which is for the captions, but as said it was still messed up
The Protontricks Flatpak works inside a sandbox, meaning it shouldn't be able to detect or access wineserver instances out the sandbox, which makes the process freezing after the "will hang until all Wine processes terminate" message odd.
When you say "came across a error that said something along the lines of '...this will hang until all wine processes terminate'", do you mean a graphical dialog that you have to click OK on to proceed? Because that's how it should work since you're in a graphical environment. -q flag disables such dialogs, so if you're able to install applications using that flag, then it probably means the graphical dialogs are not popping up for some reason and the process freezes. But you also mentioned "hitting ok to install the fonts", so I gather you were able to navigate the menus to font installation screen, select the fonts there and click OK. Zenity suddenly failing to work at that point seems really weird...
Anyway, could you try running the following command and then copy output when it freezes and post it to gist.github.com? Selecting any of the fonts to install should work given the installation process should be the same for all of them.
flatpak run com.github.Matoking.protontricks 362890 -vv --gui
The command will be very talkative, but hopefully the last dozen lines or so should give a clue, though feel free to copy what you can.
Also, can you try running ps aux | grep wine command when the process is frozen after the "will hang until all wine processes terminate" message and posting that result as well? This should return a list of any Wine processes running at the time.
do you mean a graphical dialog that you have to click OK on to proceed?
yes, it pops up maybe 10 seconds after hitting ok to install the fonts. when i hit ok it pops up again a few minutes later and continues this, seemingly making no progress.
and here's the gists for both of those commands: https://gist.github.com/pparmy/e2f53039cc4464e2f93f87de1439edf3
OK, assuming you pressed OK when the "will hang until Wine processes terminate" dialog appeared, it looks like the Zenity command didn't finish as far as Winetricks is concerned and it never got as far as running the wineserver -w command; just the graphical notification.
Can you confirm that you closed the dialog before you copied the output? If so, the culprit would be Zenity and it would explain why things work with the -q flag; that means the dialogs are displayed with a 5 second timeout which might mean the window is eventually cleaned up if something goes wonky? It just seems really weird and I don't really have a good explanation for it. I also cannot reproduce this inside a SteamOS 3 virtual machine.
re-ran it and did as you said. it stopped giving input when the "will hang until Wine processes terminate" popped back up https://gist.github.com/pparmy/83ce2b32822b4fe3c05cf3711de19696
OK, honestly I'm a bit lost at this point. Zenity seems to be acting weird in your environment (it is the last command that starts execution before the installation freezes, when it should be followed by + wineserver -w ). My guess is that the process lingers for some reason despite you having clicked the OK button; as far as Winetricks is concerned, you never closed the dialog, causing it to wait forever. Investigating this further would require being able to reproduce it, but I haven't been able to achieve that so far...
That said, thanks for providing the logs so far! And as you've noticed, the -q flag (eg. protontricks <APPID> -q <VERB>) seems to circumvent the problem thanks to Zenity dialogs cleaning themselves after a short timeout.
I'm running into the same problem, only I'm doing "allfonts".
My environment is Linux Mint 22.2 Zara Cinnamon, with Protontricks 1.11.0 installed via Software Manager (from Flathub afaik). Wine version does not seem to matter for the behavior to occur (since I'm seeing it with wine 7).
Error message is:
Running /home/draconicrose/.var/app/com.github.Matoking.protontricks/cache/protontricks/proton/Proton 7.0/bin/wineserver -w. This will hang until all wine processes in prefix=/home/draconicrose/.local/share/Steam/steamapps/compatdata/1284210/pfx terminate
But installing just one font (in my case, trebuchet) seems to install the font correctly despite the error.
Running protontricks from the command line I get:
(zenity:3665): Gtk-WARNING **: 19:14:25.275: Failed to set text '/home/draconicrose/.var/app/com.github.Matoking.protontricks/cache/protontricks/proton/Proton 7.0/bin/wine cmd.exe /c echo '%AppData%' returned empty string, error message "steam-runtime-launch-client[3309]: W: The --socket option is deprecated. Prefer to use the session bus.
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely" ' from markup due to error parsing markup: Error on line 3 char 24: “=” is not a valid character following a “<” character; it may not begin an element name