gluonfx-maven-plugin
gluonfx-maven-plugin copied to clipboard
Win10 native app fails to initialize on another machine
When Win10 native app is built, it runs properly on the original machine. But on different machine (also Win 10 64-bit), the window is not shown.
I've put log messages into my code and only path
is printed to stdout
so apparently start
method is not reached:
public static void main(String[] args) {
path = Paths.get(args[0]);
System.out.println(path);
try {
launch(args);
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
public void start(Stage primaryStage) {
System.out.println("here0");
try {
In WinDbg I can see the list of loaded modules (very reduced comparing the original machine), the last one before the fail is:
ModLoad: 00007ff9`33bd0000 00007ff9`33be2000 C:\Windows\SYSTEM32\kernel.appcore.dll
In the Event Viewer there is corresponding entry "Application error"
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>100</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2022-01-07T15:11:34.8005128Z" />
<EventRecordID>37096</EventRecordID>
<Correlation />
<Execution ProcessID="0" ThreadID="0" />
<Channel>Application</Channel>
<Computer>DESKTOP-A7EP53H</Computer>
<Security />
</System>
<EventData>
<Data>jet-browser.exe</Data>
<Data>17.0.0.0</Data>
<Data>61d857a2</Data>
<Data>jet-browser.exe</Data>
<Data>17.0.0.0</Data>
<Data>61d857a2</Data>
<Data>c0000005</Data>
<Data>00000000019625b6</Data>
<Data>6e74</Data>
<Data>01d803d8db78697e</Data>
<Data>C:\_db\jet-browser.exe</Data>
<Data>C:\_db\jet-browser.exe</Data>
<Data>b6fe1252-0fac-4e58-93f7-42593910c754</Data>
<Data />
<Data />
</EventData>
</Event>
It tells this failed because of 0xc0000005, which is: Application Error 0xc0000005 (Access Violation) error is usually caused by your computer not being able to correctly process the files and settings required to run a particular program or installation. Despite the error showing when you try and use particular pieces of software, it has many different causes including faulty RAM problems, errors with the files of your PC and issues with the settings of your PC.
Not sure if '00000000019625b6' marked as error shift (not sure if correct term in English) provides some additional details.
I can reproduce it with the CI sample from https://github.com/gluonhq/hello-gluon-ci/actions/runs/2116216341. It starts loading, but closes before showing anything. Running it as a console app to see errors yields:
> EditBin /Subsystem:console HelloGluon.exe
> HelloGluon.exe
Main
Jun 07, 2022 10:29:54 PM com.sun.javafx.application.PlatformImpl startup
WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @741a8937'
>
I ran into the same problem as you. I tested on several computers of my colleagues. Some of them worked well and some of them didn't