NyCodeGHG / omsi-launcher

Make eCitaro go ZZZZ ZZZZ <electrical noise> with less lag
GNU General Public License v3.0
11 stars 2 forks source link

Failed to Launch JVM error #77

Open Playrex opened 2 years ago

Playrex commented 2 years ago

Hi, When I launch omsi-launcher, two errors appear : the first is "Failed to launch JVM" and the second one is "Child process exited with code 1"

Is there a way to solve these errors ?

image image

DRSchlaubi commented 2 years ago

Could you please attach your %APPDATA%/omsi-launcher/logs/latest.log file

DRSchlaubi commented 2 years ago

Could you try downloading the latest release directly from here? https://github.com/NyCodeGHG/omsi-launcher/releases/download/v0.7.0/omsi-launcher-0.7.0.msi

DRSchlaubi commented 2 years ago

Looks like 0.6.4 is broken, 0.7.0 can be downloaded from the link above until https://github.com/microsoft/winget-pkgs/pull/75387 gets merged

Playrex commented 2 years ago

I have only one file into logs folder. It's logFile.log logFile.log

Playrex commented 2 years ago

With the latest release I've the same error :(

Maybe I did something wrong...

DRSchlaubi commented 2 years ago

DId you try downloading 0.7.0

Playrex commented 2 years ago

Yes, I downloaded and installed it with your link but nothing change

DRSchlaubi commented 2 years ago

Could you please send us your <instancesFolder>/instances.json And your %APPDATA%/omsi-launcher/config.json

Playrex commented 2 years ago

This is the link to the config.json file : https://drive.google.com/file/d/1zLBxBAM8l5UiDSuVU6m6EOYUP_ZYsT6P/view?usp=sharing

For the instances.json, I don't know where to found it. In the omsi-launcher folder, I don't have an intancesFolder.

DRSchlaubi commented 2 years ago

Delete the config.json and try again

Playrex commented 2 years ago

Okay

I did it and the config.json is recreated and the errors appears again just after.

DRSchlaubi commented 2 years ago

Delete the config.json again and reinstall

Playrex commented 2 years ago

The same :(

DRSchlaubi commented 2 years ago

Unfortunately, that's all Ican do. Maybe @NyCodeGHG has an idea

NyCodeGHG commented 2 years ago

i have no idea why this could happen. i'm sorry

DRSchlaubi commented 2 years ago

The last thing you could try is

Luca00711 commented 2 years ago

I have the same problem.

I have found the problem in the source code.

The Problem is the lateinit property config in config/ConfigReader.kt: 23. When there is no LauncherConfigFile the function gets returned in line 32 then the error happends cause the property config is not going to initialize.

With this error the config.json file get created, but just empty (EOF). So at the next start only the error Failed to launch JVM appears cause the json is not parseable.

NyCodeGHG commented 2 years ago

@Luca00711 thank you. I've pushed a fix. @Playrex update to 0.7.1 and let us know if it's working for you. We are not able to release right now because Sectigo is still processing our code signing certificate request.

DRSchlaubi commented 2 years ago

Currently, we're still waiting for Sectigo to renew our certificate, as they're still processing our request after 2 weeks now

NyCodeGHG commented 2 years ago

@Playrex you can try this version, but windows will cry because it's not signed https://cdn.discordapp.com/attachments/809316998689456168/1022134643216109659/omsi-launcher-0.7.1.msi

Playrex commented 2 years ago

Hi, Okay, I will try this evening. I will tell you if it works.

DRSchlaubi commented 2 years ago

The update is now out on the usual channels as well

Playrex commented 2 years ago

Okay, So, now I don't have the JVM error but I still have the Child process error image

DRSchlaubi commented 2 years ago

could you delete the config.json again?

Playrex commented 2 years ago

Okay, I did it and the error continue to appear. But the config.json is no longer created when I start the program.

DRSchlaubi commented 2 years ago

The last thing you could try is

Try this