https://kotlinlang.org logo
Title
x

xxfast

05/02/2023, 11:25 PM
Hello. I'm seeing this runtime crash. Anyone seen this before?
Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)
I'm using compose-multiplatform 1.4 w/ kotlin 1.8.20, reproducer here
Doesn't looks like it is crashing with kotlin 1.8.21, so this workaround works for now
// TODO: Remove once a compiler with support for >1.8.21 available
compose {
  kotlinCompilerPlugin.set(dependencies.compiler.forKotlin("1.8.20"))
  kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.8.21")
}
l

Landry Norris

05/03/2023, 2:06 AM
That's going to be a missed null pointer. I've seen this before with odd constructor ordering.
n

Nikita Lipsky

05/03/2023, 7:45 PM
We have reproduced the issue and found the root cause (unfortunately the bug still persists in Kotlin 1.8.21 and is not reproduced by a lucky coincidence)
x

xxfast

05/03/2023, 9:24 PM
Is there an issue for this on the issue tracker? Also, I didn't run into this once I bumped to 1.8.21 but I mightve been extremely lucky
n

Nikita Lipsky

05/03/2023, 9:33 PM