-
Notifications
You must be signed in to change notification settings - Fork 40
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
HelloGluon.exe fails when downloaded from (Releases Mac and Windows bundles" 0.0.1 Jan 20 2022) when some java distributions are in the PATH. #22
Comments
During an attempt to debug the native exe with Visual Studio, I noticed a bunch of references to dlls in another jvm that was not JAVA_HOME or GRAALVM_HOME. After changing the path to point to the GRAALVM_HOME\bin my rutime problems resolved. This was what I saw in Visual Studio: |
If I remove all java versions from the classpath, the program works as expected and the Visual Studio module load output is much reduced. 'HelloGluon.exe' (Win32): Loaded 'C:\Users\david\Downloads\HelloGluon.exe'. Module was built without symbols. |
If I restore Azul's jvm to the classpath, the HelloGluon.exe crashes with an access violation. The Visual Studio debugging output is as follows: 'HelloGluon.exe' (Win32): Loaded 'C:\Users\david\Downloads\HelloGluon.exe'. Module was built without symbols. The program '[1728] HelloGluon.exe' has exited with code 0 (0x0). |
I see the same issue with my hobby application. I am just experimenting with JavaFX at this time, but it seems to me that this would be a huge problem for anyone attempting to deploy a native compiled Javafx program to the public or within a company. |
The program appears to start but fails silently, The Windows event viewer show the following details. I am seeing the same failure on both my desktop and laptop. Other observations that may be related are that the of the gluon samples at https://github.com/gluonhq/gluon-samples.git, The HelloWorld native executable works but the HelloFX native executable does not. Finally my own application exhibits similar behavior when I build it locally and when I build it with github action on the github runners.
Log Name: Application
Source: Application Error
Date: 1/30/2023 5:31:47 PM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: MEGAJAKE
Description:
Faulting application name: HelloGluon.exe, version: 18.0.0.0, time stamp: 0x61dd7ef9
Faulting module name: HelloGluon.exe, version: 18.0.0.0, time stamp: 0x61dd7ef9
Exception code: 0xc0000005
Fault offset: 0x0000000001ba8566
Faulting process id: 0x3e78
Faulting application start time: 0x01d934faa395b744
Faulting application path: C:\Users\david\Downloads\HelloGluon.exe
Faulting module path: C:\Users\david\Downloads\HelloGluon.exe
Report Id: efa59b26-5ab9-45ed-bb1b-8b206d388f05
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
1000
0
2
100
0
0x80000000000000
62794
Application
MEGAJAKE
HelloGluon.exe
18.0.0.0
61dd7ef9
HelloGluon.exe
18.0.0.0
61dd7ef9
c0000005
0000000001ba8566
3e78
01d934faa395b744
C:\Users\david\Downloads\HelloGluon.exe
C:\Users\david\Downloads\HelloGluon.exe
efa59b26-5ab9-45ed-bb1b-8b206d388f05
The text was updated successfully, but these errors were encountered: