korlibs / korge

KorGE Game Engine. Multiplatform Kotlin Game Engine
https://korge.org/
Other
2.55k stars 125 forks source link

runJvm fails with "klogger.properties (No such file or directory) #30

Closed utgarda closed 4 years ago

utgarda commented 5 years ago

Trying runJvm, which fails in a similar way to what's described at https://forum.soywiz.com/topic/19/compilation-error-in-project-template/2

runJs and packageJvmFatJar run fine, can see it in browser and can run the fat jar.



> Configure project :
Kotlin Multiplatform Projects are an experimental feature.

> Task :runJvm FAILED
configureLoggerFromProperties:
Couldn't load Klogger configuration LocalVfs[/home/etsvigun/devenv/kotlin/korge-hello-world-master/klogger.properties] : /home/etsvigun/devenv/kotlin/korge-hello-world-master/klogger.properties (No such file or directory)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fe774c2683a, pid=10681, tid=0x00007fe773b4f700
#
# JRE version: OpenJDK Runtime Environment (8.0_212-b01) (build 1.8.0_212-b01)
# Java VM: OpenJDK 64-Bit Server VM (25.212-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [ld-linux-x86-64.so.2+0xa83a]  check_match+0xa
#
# Core dump written. Default location: /home/etsvigun/devenv/kotlin/korge-hello-world-master/core or core.10681
#
# An error report file with more information is saved as:
# /home/etsvigun/devenv/kotlin/korge-hello-world-master/hs_err_pid10681.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/
#

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':runJvm'.
> Process 'command '/usr/lib/jvm/java-8-openjdk/bin/java'' finished with non-zero exit value 134```

See the stacktraces attached: `./gradlew runJvm --stacktrace &> runJvm.stacktrace`

[runJvm.stacktrace.gz](https://github.com/korlibs/korge/files/3027288/runJvm.stacktrace.gz)
workanator commented 5 years ago

As a quick fix I did $ touch klogger.properties in the root folder of the project and that helped.

soywiz commented 4 years ago

Korge 1.4.2 shouldn't report missing klogger.properties