-
Notifications
You must be signed in to change notification settings - Fork 185
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
OSError: invalid face handle #531
Comments
python-pillow/Pillow#3066 hints that this might be fixed by updating to the (not yet released, I think) new version of pillow. That seems to be related to non-ascii text though, which I don't think we'd be printing to the kneeboard. |
What is your system language/locale ? @DanAlbert Maybe this could happen if a font is not installed too ? |
Win10 Pro, in English. Based in Norway. |
We ship the fized-width font we use, but do rely on the system having Arial. If there's something odd about the Arial on your system that could explain it. We ought to be shipping all our fonts regardless though. |
Hi again. I have been testing again, with puzzling results. Direct crash - c.a. 60% So I manage to play. Just take a bit of effort before I eventually avoid the crash... |
Report from Discord user Hanne: It seems that I fixed the bug - at least 5/5 attempts just worked. I took a look at kneeboard.py, discovered the "Inconsolata.otf" used and then installed it from the fonts folder. Since then, the familiar mission start screen comes up and the comando line is clean. |
I installed manually the Inconsolata.otf font yesterday, but the bug is still here for me. |
I looked into the bug again and discovered the following hint: python-pillow/Pillow#3066 (comment) Accordingly, I modified the fonts of the KneeboardPageWriter:
I'm more cautious with my predictions now, but I have been able to generate different missions so far. |
I don't really know how to test it, I doesn't manage to run Liberation from the source so far. |
Transfered my fix (dcs-liberation#531 (comment)) into the code.
Fix seems plausible. If someone experiencing this bug could verify the build from https://github.com/Khopa/dcs_liberation/actions/runs/736833008 we'll merge. |
Thanks @Hanninho for the fix. I've merged to 2.5 and also cherry-picked to 2.4 in case we end up doing a 2.4.4, which seems likely. |
I confirm that the fix works! Thanks for it. |
All releases from version 2.1.1 give me the ''OSError: invalid face handle error'' (sometimes a direct crash) on clicking the Take Off button. Version 2.1.0 and previous versions work fine.
Issue related with kneeboards?
Clean reinstallation of DCS doesn't solve the issue.
The text was updated successfully, but these errors were encountered: