libgdx / packr

Packages your JAR, assets and a JVM for distribution on Windows, Linux and Mac OS X
Apache License 2.0
2.56k stars 171 forks source link

XstartOnFirstThread hangs forever on OSX #217

Closed KanedaFr closed 2 years ago

KanedaFr commented 2 years ago

Before migrating my app to a Lwjgl3 app, I added XstartOnFirstThread JVMargs. Unfortunately, my app hangs forever. I tried with --cli --verbose -- and this is what I have

Passing VM options ...
isZgcSupported()=1, hasJsonValue(jsonRoot, "useZgcIfSupportedOs", sajson::TYPE_TRUE)=1
  # -Xmx1G
  # -XstartOnFirstThread
Passing VM options:
  -Xmx1G
  -XstartOnFirstThread
Starting JVM on main thread (-XstartOnFirstThread found) ...
Creating Java VM ...
Passing command line arguments ...
Loading JAR file ...
Adding 1 classpaths ...
  # desktop-1.0.jar
Invoking static com.willna.twinbee.desktop.DesktopLauncher.main() function ...
Checked for an exception from the main method, exceptionOccurred=0

...then nothing, my app is loaded but nothing If I remove the option, the app launches as expected.

OSX BigSur 11.6.1

KanedaFr commented 2 years ago

issue was in fact libgdx related, see #218 for fix