Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Trying to run the jar directly also crashes, but with a different error:

Exception in thread "main" java.lang.ExceptionInInitializerError
at org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:1647)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createGlfwWindow(Lwjgl3Application.java:442)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:391)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:379)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:108)
at com.cairn4.moonbase.desktop.DesktopLauncher.main(DesktopLauncher.java:41)
Caused by: java.lang.IllegalStateException: GLFW windows may only be created on the main thread and that thread must be the first thread in the process. Please run the JVM with -XstartOnFirstThread. For offscreen rendering, make sure another window toolkit (e.g. AWT or JavaFX) is initialized before GLFW.
at org.lwjgl.glfw.EventLoop$OffScreen.<clinit>(EventLoop.java:37)
... 6 more
AL lib: (EE) alc_cleanup: 1 device not closed

Thanks for posting this, think I'm starting to finally get some leads on why the macOS version is being so difficult...

Going to try out a few things over the weekend to see if I can get it launching more reliably.

Since it looks like you at least have a version of Java installed on your machine, see if running this from the Terminal works...

> java -XstartOnFirstThread -jar desktop-1.0.jar

(Assuming that you have the Terminal navigated to the same folder as the jar file)

There might also still be an issue where I'm using a AWT/Swing popup to show crash error messages... but worth trying.

I get the following error:

java(3906,0x7fff99cea340) malloc: *** error for object 0x123b69140: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
[1]    3906 abort      java -XstartOnFirstThread -jar desktop-1.0.jar

Here's the Java version on my machine

java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)