godot-kotlin-jvm icon indicating copy to clipboard operation
godot-kotlin-jvm copied to clipboard

Editor crashes when *.gdj files are added to Godot project root

Open liza-kl opened this issue 1 year ago • 4 comments

Hello :)

I'm on a MacOS Sonoma 14.3 / ARM64, using the editor from the latest release (0.8.1, but I tried this also with 0.8.0)

  • I created a Kotlin Project (with the Godot Kotlin/JVM project wizard),
  • Also storing the Godot Project files in there (as proposed in the Getting Started Project Structure)
  • The Godot editor is fine until I run./gradlew build. Then, the *.gdj files are created. This is the moment the editor crashes. When I remove the contents in the gdj folder in the Kotlin project, the editor is okay again and not crashing.
  • I also tried to keep the Kotlin project out of the Godot project and manually add the *.gdj scripts, but it crashed.

A little help would be highly appreciated!

liza-kl avatar Jan 28 '24 14:01 liza-kl

Hello ! Can you start app from a terminal by executing Contents/MacOS/Godot exe inside editor app to check if there is any log ?

piiertho avatar Jan 29 '24 08:01 piiertho

Hello ! Can you start app from a terminal by executing Contents/MacOS/Godot exe inside editor app to check if there is any log ?

Hello :) It worked indeed by starting it from the Contents/MacOS/Godot. However, it asked every time (about 12? times per startup) for permissions for the Documents folder. After moving the whole project to the home directory, it stopped asking and works for now (also executing the basic "Hello World" script)

liza-kl avatar Jan 29 '24 08:01 liza-kl

I think this is because your JAVA_HOME env variable is not defined using launchctl, and so is available in terminal only.
You really should embed a JVM in your project. On our side we should add a warn popup for this error.

piiertho avatar Jan 29 '24 11:01 piiertho

After executing launchctl setenv JAVA_HOME </path/to/jdk> I am now able to start the Godot Engine from the Applications folder and nothing is crashing :)

liza-kl avatar Jan 29 '24 20:01 liza-kl