After upgrading to kotlin 1.3.30 I get this stackt...
# kotlin-native
j
After upgrading to kotlin 1.3.30 I get this stacktrace on one of my bigger multiplatform modules. Any tips on finding the issue? (Works in JS/JVM and older kotlin native) Is there any way to get more context information? It fails in the
linkTestDebugExecutableMacos
task.
Copy code
* Compiler version info: Konan: 1.2 / Kotlin: 1.3.30
 * Output kind: PROGRAM

e: java.lang.IllegalStateException: org.jetbrains.kotlin.backend.common.descriptors.WrappedPropertyDescriptor@36d848af is not bound
	at org.jetbrains.kotlin.backend.common.descriptors.WrappedDeclarationDescriptor.getOwner(WrappedDescriptors.kt:97)
	at org.jetbrains.kotlin.backend.common.descriptors.WrappedPropertyDescriptor.getName(WrappedDescriptors.kt:741)
	at org.jetbrains.kotlin.backend.konan.lower.PropertyDelegationLowering.createKProperty(DelegationLowering.kt:265)
	at org.jetbrains.kotlin.backend.konan.lower.PropertyDelegationLowering.access$createKProperty(DelegationLowering.kt:44)
	at org.jetbrains.kotlin.backend.konan.lower.PropertyDelegationLowering$lower$1.visitPropertyReference(DelegationLowering.kt:133)
	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitPropertyReference(IrElementTransformerVoid.kt:191)
	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitPropertyReference(IrElementTransformerVoid.kt:24)
	at org.jetbrains.kotlin.ir.expressions.impl.IrPropertyReferenceImpl.accept(IrPropertyReferenceImpl.kt:42)
	at org.jetbrains.kotlin.ir.expressions.IrExpression$DefaultImpls.transform(IrExpression.kt:27)
Is it a library or application?
j
A library. Well I reported an issue to provide more context information on the crash. https://github.com/JetBrains/kotlin-native/issues/2864 But I would still love to hear if it is possible to get more info on where to look.
o
Looks like a problem around de/serialization of delegated properties. Could you please try to minimize your testcase, otherwise it is hard to fix it
j
It took me quite some effort but I found the problematic code! https://github.com/JetBrains/kotlin-native/issues/2873
👍 1
🎉 1