Skip to content
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

OS/X javafx application fails to launch with strangefx #25

Open
mik3hall opened this issue Sep 9, 2023 · 2 comments
Open

OS/X javafx application fails to launch with strangefx #25

mik3hall opened this issue Sep 9, 2023 · 2 comments

Comments

@mik3hall
Copy link

mik3hall commented Sep 9, 2023

javafx application including the strangefx jar seems to hang on launch. It seems to be automatically trying to start a jdk internal thread - com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable
The application has done nothing related at this time that I am aware of.

"main" #1 [8963] prio=5 os_prio=31 cpu=139.74ms elapsed=24.69s tid=0x00007fd8ab00b000 nid=8963 waiting on condition [0x000070000a332000]
java.lang.Thread.State: WAITING (parking)
at jdk.internal.misc.Unsafe.park(java.base@20/Native Method)
- parking to wait for <0x000000070fd2be68> (a java.util.concurrent.CountDownLatch$Sync)
at java.util.concurrent.locks.LockSupport.park(java.base@20/Unknown Source)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(java.base@20/Unknown Source)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(java.base@20/Unknown Source)
at java.util.concurrent.CountDownLatch.await(java.base@20/Unknown Source)
at com.sun.javafx.application.LauncherImpl.launchApplication(javafx.graphics@19/Unknown Source)
at com.sun.javafx.application.LauncherImpl.launchApplication(javafx.graphics@19/Unknown Source)
at javafx.application.Application.launch(javafx.graphics@19/Unknown Source)
at us.hall.qcapp.QuantumJava.main(QuantumJava.java:77)
at java.lang.invoke.LambdaForm$DMH/0x0000000800080400.invokeStatic(java.base@20/LambdaForm$DMH)
at java.lang.invoke.LambdaForm$MH/0x0000000800101400.invoke(java.base@20/LambdaForm$MH)
at java.lang.invoke.Invokers$Holder.invokeExact_MT(java.base@20/Invokers$Holder)
at jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(java.base@20/Unknown Source)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(java.base@20/Unknown Source)
at java.lang.reflect.Method.invoke(java.base@20/Unknown Source)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(javafx.graphics@19/Unknown Source)
at com.sun.javafx.application.LauncherImpl.launchApplication(javafx.graphics@19/Unknown Source)
at java.lang.invoke.LambdaForm$DMH/0x0000000800002400.invokeStatic(java.base@20/LambdaForm$DMH)
at java.lang.invoke.LambdaForm$MH/0x0000000800003c00.invoke(java.base@20/LambdaForm$MH)
at java.lang.invoke.LambdaForm$MH/0x0000000800080000.invokeExact_MT(java.base@20/LambdaForm$MH)
at jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(java.base@20/Unknown Source)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(java.base@20/Unknown Source)
at java.lang.reflect.Method.invoke(java.base@20/Unknown Source)
at sun.launcher.LauncherHelper$FXHelper.main(java.base@20/Unknown Source)

"QuantumRenderer-0" #20 [29187] daemon prio=5 os_prio=31 cpu=50.61ms elapsed=24.57s tid=0x00007fd8ac813400 nid=29187 waiting on condition [0x000070000b56c000]
java.lang.Thread.State: WAITING (parking)
at jdk.internal.misc.Unsafe.park(java.base@20/Native Method)
- parking to wait for <0x000000070fcb67f0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park(java.base@20/Unknown Source)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(java.base@20/Unknown Source)
at java.util.concurrent.ForkJoinPool.unmanagedBlock(java.base@20/Unknown Source)
at java.util.concurrent.ForkJoinPool.managedBlock(java.base@20/Unknown Source)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@20/Unknown Source)
at java.util.concurrent.LinkedBlockingQueue.take(java.base@20/Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@20/Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@20/Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@20/Unknown Source)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(javafx.graphics@19/Unknown Source)
at java.lang.Thread.runWith(java.base@20/Unknown Source)
at java.lang.Thread.run(java.base@20/Unknown Source)

@mik3hall
Copy link
Author

I was able to render from an application that wasn't javafx.

@mik3hall
Copy link
Author

This can be closed. It appears to be my code.
To start I was going to set up an app version of the book code. A textarea to show system.out and a menu with all the examples and chapter separators. If I add the menubar it hangs. I'm not that familiar with javafx so am probably doing something wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant