hi, I'm trying to use the latest from korge-next, ...
# korge
d
hi, I'm trying to use the latest from korge-next, and I am now getting this error, "class com.soywiz.kmem.BufferJvmKt tried to access abstract method java.nio.ByteBuffer.slice(II)Ljava/nio/ByteBuffer; (com.soywiz.kmem.BufferJvmKt is in unnamed module of loader 'app'; java.nio.ByteBuffer is in module java.base of loader 'bootstrap')" any ideas?
d
That usually happens when the libraries are compiled with java 11, and used on java 8
I have just published rc3
the uploaded artifacts are compilted against java8
d
thx (esp for quick reply 🙂
👍 1
I built 2.0.0-rc2 myself from source...so would it be that I built it with the wrong JDK
also, macosX64 target doesn't work..is that still unsupported?
d
mmm
if it is not work, that’s not expected
I plan to check all the targets tomorrow and will fix the remaining stuff before the final release
d
if I use your published rc3...the jvm one works. Must be my building it with an incompatible JDK. I'll check building against your published version of the macosX64
👍 1
is this a to-be-expected warning? "com/soywiz/korgw/GameWindow.kt: [IR VALIDATION] unexpected type: expected kotlin.Short, got kotlin.Char CONST Short type=kotlin.Char value=0"
d
It is just a warning, should work normally
d
macosX64, both debug and release give, "init[a] -- bb init[b] Korui[0] CanvasApplicationEx.IN[0] Segmentation fault: 11"
d
?
it worked for me
d
just to check.....where would the exe expect to find resources? I assumed right beside the exe file
d
message has been deleted
omn windows?
or macos?
on windows just by the exe
d
macos
d
on macOS, when generating the .app, it places them on the right resources folder
d
sorry..its a *.rexe file not .exe on macos
I don't use the korge-plugin...just gradle
d
can you try the hello-world?
d
ok
d
the one from master
taht uses rc3
d
ok
Result: if I run
./gradlew runReleaseExecutableMacosX64
then it seems to work..but after a few seconds crashes, gradle giving error
finished with non-zero exit value 139
d
I tried ./gradlew runJvm
and
d
if I try to run the .kexe direct, I get the same
Segmentation fault: 11
d
./gradlew packageMacosX64AppRELEASE
can you get a coredump to check why that happened?
whcih computer are you using btw?
d
./gradlew packageMacosX64AppRELEASE
when I run the .app, I get the same result....works for a few seconds then crashes. Is it supposed to self terminate ?
I using a macbook
d
no
A segmentation fault is not expected
it does have a touchbar?
d
yes
d
the crash doesn’t provide more information?
d
(unfortunately)
d
yeah, agree
the touchbar is pure shit
d
no....do you know how I get it to give me a core dump?
d
but I was asking because we initially had some issues with touchbar macbooks
but that was fixed a long time ago
d
hmm
d
if it crashes the .app, is not showing a dialog with this application crashed, etc.?
d
message has been deleted
d
Click
report…
then there is a textarea with a lot of text providing some information
a native stacktrace, sometimes with names
d
just looking at it now
d
specially if that’s a debug version
d
I'll send it by email
d
👍
d
then I will have to continue tomorrow. must stop now.
d
okay, no rush. The stacktrace has stuff relateed to touchbar, so…
still not sure if a Kotlin/Native issue, will have to check
d
ah...new info....just noticed the hello-world crashes when I move the mouse
d
doesn’t crash on an imac, I’ll see if I can figure out stuff. I had to disable K/N mimalloc because was giving random crashes, but this looks related to touchbar somehow
d
I see your activity on the kotlin bug report. If there is something you want me to test, let me know.
d
Sure 👍