utopia-rise / godot-kotlin-jvm

Godot Kotlin JVM Module
MIT License
576 stars 39 forks source link

Crash when Entry IDs do not match. #539

Closed RobertZenz closed 4 months ago

RobertZenz commented 9 months ago

If the Entry ID in godot.registration.Entry is out of sync with the build, for whatever reason, Godot crashes anytime it tries to reference a script.

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.1.2.stable.custom_build (399c9dc393f6f84c0b4e4d4117906c70c048ecf2)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] java/jdk-11.0.14.1+1//lib/server/libjvm.so(+0xc6ec8a) [0x7f772b6a5c8a] (??:0)
[2] java/jdk-11.0.14.1+1//lib/server/libjvm.so(JVM_handle_linux_signal+0x272) [0x7f772b6ab6e2] (??:0)
[3] java/jdk-11.0.14.1+1//lib/server/libjvm.so(+0xc665a8) [0x7f772b69d5a8] (??:0)
[4] /lib/x86_64-linux-gnu/libpthread.so.0(+0x153c0) [0x7f774fee73c0] (??:0)
[5] godot.linuxbsd.editor.x86_64(+0x140c39e) [0x55f895ff139e] (??:0)
[6] godot.linuxbsd.editor.x86_64(+0x56f1995) [0x55f89a2d6995] (??:0)
[7] godot.linuxbsd.editor.x86_64(+0x1572f66) [0x55f896157f66] (??:0)
[8] godot.linuxbsd.editor.x86_64(+0x1573128) [0x55f896158128] (??:0)
[9] godot.linuxbsd.editor.x86_64(+0x15742bd) [0x55f8961592bd] (??:0)
[10] godot.linuxbsd.editor.x86_64(+0x571f735) [0x55f89a304735] (??:0)
[11] godot.linuxbsd.editor.x86_64(+0x32e2d8e) [0x55f897ec7d8e] (??:0)
[12] godot.linuxbsd.editor.x86_64(+0x12174c2) [0x55f895dfc4c2] (??:0)
[13] godot.linuxbsd.editor.x86_64(+0x57159a7) [0x55f89a2fa9a7] (??:0)
[14] godot.linuxbsd.editor.x86_64(+0x5458516) [0x55f89a03d516] (??:0)
[15] godot.linuxbsd.editor.x86_64(+0x545ae5f) [0x55f89a03fe5f] (??:0)
[16] godot.linuxbsd.editor.x86_64(+0x54585b1) [0x55f89a03d5b1] (??:0)
[17] godot.linuxbsd.editor.x86_64(+0x575ca2f) [0x55f89a341a2f] (??:0)
[18] godot.linuxbsd.editor.x86_64(+0x575e58a) [0x55f89a34358a] (??:0)
[19] godot.linuxbsd.editor.x86_64(+0x5760146) [0x55f89a345146] (??:0)
[20] godot.linuxbsd.editor.x86_64(+0x231ff97) [0x55f896f04f97] (??:0)
[21] godot.linuxbsd.editor.x86_64(+0x245adec) [0x55f89703fdec] (??:0)
[22] godot.linuxbsd.editor.x86_64(+0x2486167) [0x55f89706b167] (??:0)
[23] godot.linuxbsd.editor.x86_64(+0x54585b1) [0x55f89a03d5b1] (??:0)
[24] godot.linuxbsd.editor.x86_64(+0x57219fb) [0x55f89a3069fb] (??:0)
[25] godot.linuxbsd.editor.x86_64(+0x32e367e) [0x55f897ec867e] (??:0)
[26] godot.linuxbsd.editor.x86_64(+0x25a446f) [0x55f89718946f] (??:0)
[27] godot.linuxbsd.editor.x86_64(+0x25ba624) [0x55f89719f624] (??:0)
[28] godot.linuxbsd.editor.x86_64(+0x25ba7e8) [0x55f89719f7e8] (??:0)
[29] godot.linuxbsd.editor.x86_64(+0x54585b1) [0x55f89a03d5b1] (??:0)
[30] godot.linuxbsd.editor.x86_64(+0x545ae5f) [0x55f89a03fe5f] (??:0)
[31] godot.linuxbsd.editor.x86_64(+0x54585b1) [0x55f89a03d5b1] (??:0)
[32] godot.linuxbsd.editor.x86_64(+0x349b9d4) [0x55f8980809d4] (??:0)
[33] godot.linuxbsd.editor.x86_64(+0x335970d) [0x55f897f3e70d] (??:0)
[34] godot.linuxbsd.editor.x86_64(+0x3369614) [0x55f897f4e614] (??:0)
[35] godot.linuxbsd.editor.x86_64(+0x338dcca) [0x55f897f72cca] (??:0)
[36] godot.linuxbsd.editor.x86_64(+0x3391b0a) [0x55f897f76b0a] (??:0)
[37] godot.linuxbsd.editor.x86_64(+0x33d3a7d) [0x55f897fb8a7d] (??:0)
[38] godot.linuxbsd.editor.x86_64(+0x33edcf1) [0x55f897fd2cf1] (??:0)
[39] godot.linuxbsd.editor.x86_64(+0x54585b1) [0x55f89a03d5b1] (??:0)
[40] godot.linuxbsd.editor.x86_64(+0xc9c43a) [0x55f89588143a] (??:0)
[41] godot.linuxbsd.editor.x86_64(+0x53d91c3) [0x55f899fbe1c3] (??:0)
[42] godot.linuxbsd.editor.x86_64(+0x53dc36d) [0x55f899fc136d] (??:0)
[43] godot.linuxbsd.editor.x86_64(+0xc9e9f8) [0x55f8958839f8] (??:0)
[44] godot.linuxbsd.editor.x86_64(+0xc74190) [0x55f895859190] (??:0)
[45] godot.linuxbsd.editor.x86_64(+0xc62e31) [0x55f895847e31] (??:0)
[46] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f774fbb20b3] (??:0)
[47] godot.linuxbsd.editor.x86_64(+0xc7168e) [0x55f89585668e] (??:0)
-- END OF BACKTRACE --
================================================================

While that mismatch should not occur, I guess it shouldn't crash either in that case.

Reproducing is rather easy:

  1. Have an existing project that works.
  2. Go into godot.registration.Entry and change the ID.
  3. Rebuild the project.
chippmann commented 6 months ago

I cannot reproduce this issue. Changing the id, rebuilding and rerunning the editor and game works fine for me. Could you check that again on the current release?

RobertZenz commented 4 months ago

Neither can I, seems to have been fixed in the meantime. Thanks for checking it out.