Comments (9)
I would like to officially "bump" this, as this is happening with my application as well.
from fn-fx.
I found that the same problem occurs when using lein run on mac os sierra with the form example in getting_started, but not with the hello world example or the 3D shapes example.
from fn-fx.
Same here. If you keep mouse clicking of doing events then app stays open. If you stop moving or generating events then app exits. I am using the Hello World app...
from fn-fx.
Same here (but for hello world as well). Regular java program using javafx
-works (tm)
from fn-fx.
I'm also able to randomly reproduce this on Java 11 using lein with-profile +openjfx11 run -m other-examples.todo/-main
, but not reliably - sometimes the app quits if I stop providing input, sometimes I can leave it there, idle, as long as I like. Damnable heisenbugs!!
from fn-fx.
Is it something to do with execution just falling off the end of -main
? I was able to delay the problem hereβthe program stays running until the :quit
event is delivered, then it quits after lack of activity (as before).
(I left out the bit which actually sends the :quit
event in that commit, but it wasn't special in any way.)
Sorry I'm quite new to multithreaded programming and can't work out the root cause.
from fn-fx.
If the application crashes with no error message I would guess it's a platform issue in JavaFX. I do not encounter problems on Linux. However JavaFX 11 does not work well with GTK3, I don't know if it's a bug or GTK3 is simply not supported, but I have to force GTK2 to make it work (done with -Djdk.gtk.version=2
).
from fn-fx.
Am stumbling on the same problem with macOS.
from fn-fx.
I wasn't able to pinpoint why this is happening but the macro start-javafx
is choosing to start the application using the pre Java 9 method even when the running with Java 11.
I've tried running my application by setting javafx.runtime.version
to 11, but then the application hangs at AOT.
This is what my uberjar profile would look like:
{:uberjar {:aot :all
:jvm-opts ["-Djavafx.runtime.version=11"]}
Furthermore, dropping to Java 1.8 Oracle JDK gives me the following error when trying to create an Uberjar (note, I've removed the javafx.runtime.version
property this time):
Syntax error compiling . at (fn_fx/init.clj:16:8).
Syntax error (IllegalArgumentException) compiling . at (fn_fx/init.clj:16:8).
No matching method startup found taking 1 args for class javafx.application.Platform
from fn-fx.
Related Issues (20)
- CompilerException org.reflections.ReflectionsException: Couldn't find subtypes of Object. HOT 4
- Standardise how examples are run
- Auto generate and deploy API docs from master HOT 3
- Use HTML as frontend HOT 2
- Direct support for loading FXML files HOT 3
- Support for WebView HOT 2
- Special handling of :shown property prevents on-showing/on-shown events being triggered.
- Doesn't seem to work with Ubuntu out of the box HOT 14
- Remove sudo:false from TravisCI config file HOT 1
- fn-fx doesn't work on OpenJDK 1.8 HOT 4
- using alternate hiccup syntax for defining dom HOT 10
- UI not updating even though the model differs
- How do you get the selected value from a choice-box HOT 1
- Endless changeloop for sliders HOT 6
- bind functionality HOT 2
- table-cell with button
- (ui/text :fill (ui/color ...)) does not set fill property to said color
- lein uberjar gives an error ClassNotFoundException HOT 1
- Event stop propagation
- Unable to open DISPLAY HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fn-fx.