Sign in to follow this  
Bugsby

Client can't find fonts (Linux)

Recommended Posts

Hello. I'm on Arch Linux, and WU is crashing on launch saying JavaFX detected no fonts.

 

Unexpected crash while setting up login The error was: <null>

It's possible you might figure out what's wrong from the log file below, but if you can't, post the full log on the wurm unlimited forums, and someone else might be able to help you.

Contents of temporary launch log:
java.library.path: /home/****/Games/SteamLibrary/steamapps/common/Wurm Unlimited/WurmLauncher/nativelibs
Time is Sun Jan 19 20:34:34 CST 2020
Running client version 

=== System information ===
Executing from /home/USERNAME/Games/SteamLibrary/steamapps/common/Wurm Unlimited/WurmLauncher/
Operating system: Linux (arch: amd64, version: 4.19.95-1-lts)
Java version: 1.8.0_172 (Oracle Corporation) <http://java.oracle.com/>
Jvm version: 25.172-b11 (Oracle Corporation) [Java HotSpot(TM) 64-Bit Server VM]
Available CPUs: 8

Error: JavaFX detected no fonts! Please refer to release notes for proper font configuration
====== CLIENT CRASH ======
Unexpected crash while setting up login
java.lang.ExceptionInInitializerError
	at javafx.scene.Node.reapplyCss(Node.java:8983)
	at javafx.scene.Node.impl_reapplyCSS(Node.java:8946)
	at javafx.scene.Node.invalidatedScenes(Node.java:854)
	at javafx.scene.Node.setScenes(Node.java:919)
	at javafx.scene.Parent.scenesChanged(Parent.java:667)
	at javafx.scene.Node.invalidatedScenes(Node.java:853)
	at javafx.scene.Node.setScenes(Node.java:919)
	at javafx.scene.Scene$9.invalidated(Scene.java:1119)
	at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:111)
	at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:146)
	at javafx.scene.Scene.setRoot(Scene.java:1072)
	at javafx.scene.Scene.<init>(Scene.java:347)
	at javafx.scene.Scene.<init>(Scene.java:223)
	at com.wurmonline.client.launcherfx.WurmMain.prepareLaunch(WurmMain.java:240)
	at com.wurmonline.client.launcherfx.WurmMain.start(WurmMain.java:193)
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:863)
	at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)
	at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
	at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
	at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
	at com.sun.glass.ui.gtk.GtkApplication.lambda$null$48(GtkApplication.java:139)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
	at com.sun.javafx.font.LogicalFont.<init>(LogicalFont.java:181)
	at com.sun.javafx.font.LogicalFont.getLogicalFont(LogicalFont.java:113)
	at com.sun.javafx.font.LogicalFont.getLogicalFont(LogicalFont.java:153)
	at com.sun.javafx.font.PrismFontFactory.createFont(PrismFontFactory.java:586)
	at com.sun.javafx.font.PrismFontLoader.loadFont(PrismFontLoader.java:206)
	at javafx.scene.text.Font.<init>(Font.java:319)
	at javafx.scene.text.Font.getDefault(Font.java:86)
	at javafx.scene.CssStyleHelper.<clinit>(CssStyleHelper.java:1528)
	... 24 more

 

Share this post


Link to post
Share on other sites

I think I figured this out. When I first tried to launch, I didn't have a directory of working TTF files in /usr/share/ (I did have some but they seem to be broken). According to the top answer here, that can cause a problem with JavaFX. With that directory, and with at least one TTF font inside it, WU launches.

 

Incidentally the developer in that post suggests OTF files should work, but none of mine do.

Edited by Bugsby

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this