OptiGUI

OptiGUI

8M Downloads

[CRASH] OptiGUI crashing on container opening due to usage of deprecated Kotlin library.

Vortigern-The-Grey opened this issue ยท 11 comments

commented

Loader and its version

Fabric Loader 0.17.2

OptiGUI version

2.3.0-beta.7+1.21.6

Steps to reproduce

  1. Updated all my mods to the latest version.
  2. Went into my survival world, to collect iron from iron farm.
  3. Game freezes and/or crashes.

Game logs

Crash Log: https://mclo.gs/fzKwoMS

Anything else

Research indicates that this bug is caused by reliance on the now deprecated experimental Kotlin library kotlinx/datetime, as indicated by this issue, with the proper technical issue being here. The solution appears to be replacing kotlinx.datetime with the corresponding kotlin.time module, as indicated here. In the meanwhile, those affected may wish to downgrade Fabric language Kotlin to a pre-7.0 version. Hope this helps!

commented

Hello, I'm having the same issue. Until a couple of days ago, everything worked great, but today, any time I try to open a chest, Minecraft crashes. I'm running 1.21.7 fabric. Logs https://bytebin.lucko.me/4BlzmRyISd. Thanks!

commented

I'm having the same issue on 1.21.8 fabric.

Crash Log: https://mclo.gs/ngPdhFL

commented

Use Fabric Language Kotlin 1.13.4 for OptiGUI 2.3.x. I added a note about this incompatibility to the Modrinth and CurseForge pages.
I'll keep this issue open until I release the first OptiGUI 3 beta (or patch OptiGUI 2.3.x).
OptiGUI 3 uses java.time instead of kotlinx.datetime, so it shouldn't be affected.

commented

Fixed it in OptiGUI 2.3.0 beta 8 for Minecraft 1.21.6+