Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Critical "Not on FX application thread; currentThread = preload" error on startup #36

Open
DogLoverPink opened this issue Feb 6, 2022 · 1 comment

Comments

@DogLoverPink
Copy link

DogLoverPink commented Feb 6, 2022

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.

  1. Launch the app via command line.

Expected Behavior
the app should launch normally without any errors

Screenshots
image

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.(Stage.java:254)
at javafx.stage.Stage.(Stage.java:240)
at javafx.scene.control.HeavyweightDialog$1.(HeavyweightDialog.java:52)
at javafx.scene.control.HeavyweightDialog.(HeavyweightDialog.java:52)
at javafx.scene.control.Dialog.(Dialog.java:268)
at com.jfoenix.controls.JFXAlert.(JFXAlert.java:76)
at com.jfoenix.controls.JFXAlert.(JFXAlert.java:73)
at tv.dotstart.beacon.ui.util.AlertFunctionsKt.dialog(AlertFunctions.kt:44)
at tv.dotstart.beacon.ui.util.AlertFunctionsKt.dialog$default(AlertFunctions.kt:43)
at tv.dotstart.beacon.ui.util.AlertFunctionsKt.actionErrorDialog(AlertFunctions.kt:74)
at tv.dotstart.beacon.ui.exposure.PortExposureProvider.refresh(PortExposureProvider.kt:92)
at tv.dotstart.beacon.ui.exposure.PortExposureProvider$Preloader.load(PortExposureProvider.kt:151)
at tv.dotstart.beacon.ui.preload.Preloader$preload$1.invoke(Preloader.kt:86)
at tv.dotstart.beacon.ui.preload.Preloader$preload$1.invoke(Preloader.kt:66)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)
`

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.(Stage.java:254) ~[Beacon.jar:?]
at javafx.stage.Stage.(Stage.java:240) ~[Beacon.jar:?]
at javafx.scene.control.HeavyweightDialog$1.(HeavyweightDialog.java:52) ~[Beacon.jar:?]
at javafx.scene.control.HeavyweightDialog.(HeavyweightDialog.java:52) ~[Beacon.jar:?]
at javafx.scene.control.Dialog.(Dialog.java:268) ~[Beacon.jar:?]
at com.jfoenix.controls.JFXAlert.(JFXAlert.java:76) ~[Beacon.jar:?]
at com.jfoenix.controls.JFXAlert.(JFXAlert.java:73) ~[Beacon.jar:?]
at tv.dotstart.beacon.ui.util.AlertFunctionsKt.dialog(AlertFunctions.kt:44) ~[Beacon.jar:?]
at tv.dotstart.beacon.ui.util.AlertFunctionsKt.dialog$default(AlertFunctions.kt:43) ~[Beacon.jar:?]
at tv.dotstart.beacon.ui.util.AlertFunctionsKt.actionErrorDialog(AlertFunctions.kt:74) ~[Beacon.jar:?]
at tv.dotstart.beacon.ui.exposure.PortExposureProvider.refresh(PortExposureProvider.kt:92) ~[Beacon.jar:?]
at tv.dotstart.beacon.ui.exposure.PortExposureProvider$Preloader.load(PortExposureProvider.kt:151) ~[Beacon.jar:?]
at tv.dotstart.beacon.ui.preload.Preloader$preload$1.invoke(Preloader.kt:86) [Beacon.jar:?]
at tv.dotstart.beacon.ui.preload.Preloader$preload$1.invoke(Preloader.kt:66) [Beacon.jar:?]
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30) [Beacon.jar:?]

C:\Users\USERNAME\Downloads>
`

@stale
Copy link

stale bot commented Mar 9, 2022

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.

@stale stale bot added the stale Feature/Issue has been abandoned label Mar 9, 2022
@stale stale bot removed the stale Feature/Issue has been abandoned label Mar 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants