Critical "Not on FX application thread; currentThread = preload" error on startup
As soon as I launch the .jar version of this app on command line, I am met with a "Not on FX application thread; currentThread = preload" Error, which tells me to report it here.
Reproduction Steps Describe the steps to reproduce the behavior: This is exactly what I did.
- Launch the app via command line.
Expected Behavior the app should launch normally without any errors
Screenshots

Environment (please complete the following information):
- OS: Windows 10
- Application Version: 2.4.0
- Java version 17.0.1
Additional Context Full error log: `Beacon Error Report
Version: 3.0.0-alpha.4 Date: 2022-02-05T19:12:19.3217681-05:00 Java Version: 17.0.1 Java Architecture: amd64 Operating System: Windows 10 (10.0)
Stack Trace:
java.lang.IllegalStateException: Not on FX application thread; currentThread = preload
at com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:295)
at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:458)
at javafx.stage.Stage.
Full Console Log
C:\Users\USERNAME\Downloads>java -jar Beacon.jar WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. [19:21:14] [ main] [INFO]: Detected native Bytecode version: 61.0 ____ / __ )___ ____ __________ ____ / __ / _ \/ __ / / __ / __
/ // / __/ // / // /_/ / / / /
//_/_,/_/__// //
[19:21:14] [ main] [INFO]: Application Version: 3.0.0-alpha.4
[19:21:14] [ main] [INFO]: Native Bytecode Version: 61.0
[19:21:14] [ main] [INFO]: Operating System: WINDOWS
[19:21:14] [ main] [INFO]: Persistence Directory: C:\Users\Lowen\AppData\Roaming
[19:21:14] [ main] [INFO]: System Repositories (3): github://dotStart/Beacon#indie.dat, github://dotStart/Beacon#steam.dat, github://dotStart/Beacon#tools.dat
[19:21:14] [ main] [INFO]: Cache duration has been set to PT24H
[19:21:14] [ JavaFX-Launcher] [WARN]: Unsupported JavaFX configuration: classes were loaded from unnamed module @6193932a
[19:21:15] [JavaFX Application Thread] [INFO]: Loading user configuration file
[19:21:15] [JavaFX Application Thread] [INFO]: No prior configuration file located - Assuming defaults
[19:21:15] [JavaFX Application Thread] [INFO]: Displaying splash screen
[19:21:15] [JavaFX Application Thread] [INFO]: Starting preloading process
[19:21:16] [ preload] [INFO]: --- update ---
[19:21:18] [ preload] [INFO]: --- gateway ---
[19:21:18] [ preload] [INFO]: Querying network for compatible internet gateway
[19:21:18] [ preload] [INFO]: Received announcement for device "RBR50 (Gateway)" (NETGEAR Orbi Desktop AC3000 Router) of type urn:schemas-upnp-org:device:InternetGatewayDevice:1 by NETGEAR,Inc. http://www.netgear.com
[19:21:18] [ preload] [INFO]: Device "WANConnectionDevice" is compatible
[19:21:23] [ preload] [ERROR]: Gateway refresh failed
tv.dotstart.beacon.core.upnp.error.ActionFailedException: Device failed to perform action: Action Failed
at tv.dotstart.beacon.core.upnp.ActionExtensionsKt$invoke$3.invoke(ActionExtensions.kt:70) ~[Beacon.jar:?]
at tv.dotstart.beacon.core.upnp.ActionExtensionsKt$invoke$3.invoke(ActionExtensions.kt:52) ~[Beacon.jar:?]
at net.mm2d.upnp.internal.impl.ActionImpl$invokeCustom$1$1.invoke(ActionImpl.kt:86) ~[Beacon.jar:?]
at net.mm2d.upnp.internal.impl.ActionImpl$invokeCustom$1$1.invoke(ActionImpl.kt:22) ~[Beacon.jar:?]
at net.mm2d.upnp.internal.thread.ExecuteFunctionKt$toRunnable$1.run(ExecuteFunction.kt:19) ~[Beacon.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
[19:21:23] [ preload] [ERROR]: Preloading failed - Aborting application startup
java.lang.IllegalStateException: Not on FX application thread; currentThread = preload
at com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:295) ~[Beacon.jar:?]
at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:458) ~[Beacon.jar:?]
at javafx.stage.Stage.
C:\Users\USERNAME\Downloads> `
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.