https://kotlinlang.org logo
#korge
Title
# korge
d

Dave

11/17/2020, 7:20 PM
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

Deactivated User

11/17/2020, 7:21 PM
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

Dave

11/17/2020, 7:23 PM
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

Deactivated User

11/17/2020, 7:32 PM
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

Dave

11/17/2020, 7:36 PM
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

Deactivated User

11/17/2020, 7:47 PM
It is just a warning, should work normally
d

Dave

11/17/2020, 7:48 PM
macosX64, both debug and release give, "init[a] -- bb init[b] Korui[0] CanvasApplicationEx.IN[0] Segmentation fault: 11"
d

Deactivated User

11/17/2020, 7:48 PM
?
it worked for me
d

Dave

11/17/2020, 7:48 PM
just to check.....where would the exe expect to find resources? I assumed right beside the exe file
d

Deactivated User

11/17/2020, 7:49 PM
message has been deleted
omn windows?
or macos?
on windows just by the exe
d

Dave

11/17/2020, 7:49 PM
macos
d

Deactivated User

11/17/2020, 7:49 PM
on macOS, when generating the .app, it places them on the right resources folder
d

Dave

11/17/2020, 7:49 PM
sorry..its a *.rexe file not .exe on macos
I don't use the korge-plugin...just gradle
d

Deactivated User

11/17/2020, 7:50 PM
can you try the hello-world?
d

Dave

11/17/2020, 7:50 PM
ok
d

Deactivated User

11/17/2020, 7:50 PM
the one from master
taht uses rc3
d

Dave

11/17/2020, 7:56 PM
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

Deactivated User

11/17/2020, 8:02 PM
I tried ./gradlew runJvm
and
d

Dave

11/17/2020, 8:02 PM
if I try to run the .kexe direct, I get the same
Segmentation fault: 11
d

Deactivated User

11/17/2020, 8:02 PM
./gradlew packageMacosX64AppRELEASE
can you get a coredump to check why that happened?
whcih computer are you using btw?
d

Dave

11/17/2020, 8:04 PM
./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

Deactivated User

11/17/2020, 8:04 PM
no
A segmentation fault is not expected
it does have a touchbar?
d

Dave

11/17/2020, 8:05 PM
yes
d

Deactivated User

11/17/2020, 8:05 PM
the crash doesn’t provide more information?
d

Dave

11/17/2020, 8:05 PM
(unfortunately)
d

Deactivated User

11/17/2020, 8:05 PM
yeah, agree
the touchbar is pure shit
d

Dave

11/17/2020, 8:05 PM
no....do you know how I get it to give me a core dump?
d

Deactivated User

11/17/2020, 8:05 PM
but I was asking because we initially had some issues with touchbar macbooks
but that was fixed a long time ago
d

Dave

11/17/2020, 8:05 PM
hmm
d

Deactivated User

11/17/2020, 8:06 PM
if it crashes the .app, is not showing a dialog with this application crashed, etc.?
d

Dave

11/17/2020, 8:06 PM
message has been deleted
d

Deactivated User

11/17/2020, 8:06 PM
Click
report…
then there is a textarea with a lot of text providing some information
a native stacktrace, sometimes with names
d

Dave

11/17/2020, 8:07 PM
just looking at it now
d

Deactivated User

11/17/2020, 8:07 PM
specially if that’s a debug version
d

Dave

11/17/2020, 8:07 PM
I'll send it by email
d

Deactivated User

11/17/2020, 8:07 PM
👍
d

Dave

11/17/2020, 8:10 PM
then I will have to continue tomorrow. must stop now.
d

Deactivated User

11/17/2020, 8:11 PM
okay, no rush. The stacktrace has stuff relateed to touchbar, so…
still not sure if a Kotlin/Native issue, will have to check
d

Dave

11/17/2020, 8:13 PM
ah...new info....just noticed the hello-world crashes when I move the mouse
d

Deactivated User

11/17/2020, 8:14 PM
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

Dave

11/18/2020, 8:09 PM
I see your activity on the kotlin bug report. If there is something you want me to test, let me know.
d

Deactivated User

11/18/2020, 10:20 PM
Sure 👍
2 Views