kordlib/kord

`MessageStickerType` Initialization Deadlock

MrPowerGamerBR opened this issue · 0 comments

Sometimes, randomly, my application threads gets stuck on waiting on the Class initialization monitor for dev.kord.common.entity.MessageStickerType, which seems to indicate that there is a deadlock.

The application is deserializing Gateway Events on multiple threads.

Thread dump of the application: kord-messagestickertype-deadlock-jstack.txt

Example code that triggers the bug:

fun main() {
    val a = thread {
        println(MessageStickerType)
    }

    val b = thread {
        println(MessageStickerType.APNG)
    }
}