0

I am failing to run a native desktop build on a macOS (M2), command:

mvn gluonfx:nativerun

I am using the HelloFx example from the gluon samples project, although have the same issue with independent projects I have tried creating.

I am using a Gluon graalvm:

graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final

The following commands execute correctly:

mvn gluonfx:run
mvn gluonfx:runagent
mvn gluonfx:build

But:

mvn gluonfx:native run

results in a window appearing with

HelloFX quit unexpectedly

and the following logged:

[Tue Feb 28 15:02:27 GMT 2023][INFO] ==================== RUN TASK ====================
[Tue Feb 28 15:02:27 GMT 2023][INFO] [SUB] 2023-02-28 15:02:27.538 HelloFX[1951:40168] Starting Gluon VM...
[Tue Feb 28 15:02:27 GMT 2023][INFO] [SUB] Feb 28, 2023 3:02:27 PM com.sun.javafx.application.PlatformImpl startup
[Tue Feb 28 15:02:27 GMT 2023][INFO] [SUB] WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @4563e9ab'
[Tue Feb 28 15:02:27 GMT 2023][INFO] [SUB] 2023-02-28 15:02:27.632 HelloFX[1951:40139] *** Assertion failure in -[_NSTrackingAreaAKViewHelper removeTrackingRect:], _NSTrackingAreaAKManager.m:1602
[Tue Feb 28 15:02:27 GMT 2023][SEVERE] Process run until end failed with result: 139
Check the log files under /Users/xxxx/Downloads/gluon-samples-master/HelloFX/target/gluonfx/aarch64-darwin/gvm/log
And please check https://docs.gluonhq.com/ for more information.
[Tue Feb 28 15:02:27 GMT 2023][INFO] Logging process [run until end] to file: /Users/xxxx/Downloads/gluon-samples-master/HelloFX/target/gluonfx/log/process-run until end-1677596547634.log

Any advice on how to proceed much appreciated.

jewelsea
  • 150,031
  • 14
  • 366
  • 406
yossi
  • 1
  • I should add, I am using the HelloFx example from the gluon samples project, although have the same issue with independent projects I have tried creating. – yossi Feb 28 '23 at 15:25
  • Can you try adding `21-ea+5` to the GluonFX plugin's configuration? – José Pereda Feb 28 '23 at 15:41
  • See the comments [here](https://stackoverflow.com/q/74630535/1271785) related to the M2 (jewelsea's comments, specifically). You may need to run Java 19 which supports the M2. – pfurbacher Mar 01 '23 at 00:16
  • Thank you both. Jose's suggestion has resolved the issue, but will review the link posted by pfurbacher as well. Thanks again. – yossi Mar 01 '23 at 17:31

0 Answers0