question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

KMP Native: Backend Internal error: Exception during IR lowering

See original GitHub issue

Kotlin 1.4.30 and Kotest 4.4.0

It works with JVM, Android, Linux and Windows targets. But with some Apple targets it is failing. The project only have a shouldDo function.

Stacktrace:

> Task :lib:linkDebugTestIosX64 FAILED
e: Compilation failed: Backend Internal error: Exception during IR lowering
File being compiled: /Users/runner/work/kotest/kotest/kotest-assertions/kotest-assertions-core/src/commonMain/kotlin/io/kotest/matchers/collections/decreasing.kt
The root cause java.lang.AssertionError was thrown at: org.jetbrains.kotlin.ir.overrides.FakeOverrideBuilderStrategy.fakeOverrideMember(IrOverridingUtil.kt:43)

 * Source files: 
 * Compiler version info: Konan: 1.4.30 / Kotlin: 1.4.30
 * Output kind: STATIC_CACHE

e: org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering
File being compiled: /Users/runner/work/kotest/kotest/kotest-assertions/kotest-assertions-core/src/commonMain/kotlin/io/kotest/matchers/collections/decreasing.kt
The root cause java.lang.AssertionError was thrown at: org.jetbrains.kotlin.ir.overrides.FakeOverrideBuilderStrategy.fakeOverrideMember(IrOverridingUtil.kt:43)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
PaulWoitaschekcommented, Feb 14, 2021

This is a compiler bug. I narrowed it down to:

fun a() {
    b<Int> { _, _ -> 0 }
}

fun <T> b(c: Comparator<in T>) {
}

And reported it upstream: https://youtrack.jetbrains.com/issue/KT-44928

0reactions
JavierSegoviaCordobacommented, Mar 1, 2021

Nice, I was going to check it today 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting Backend Internal error: "Exception during IR ...
Why am I getting Backend Internal error: "Exception during IR lowering error" when using Jetpack Compose clickable-Modifier? Ask Question. Asked ...
Read more >
Backend Internal error: Exception during IR lowering - YouTrack
After updating my android app project to new compose versions and implementing the new Material 3, I couldn't build the app because there's...
Read more >
I keep getting "Backend Internal error: Exception during IR ...
I keep getting "Backend Internal error: Exception during IR lowering" when trying to serialize a data class to json string. : r/Kotlin.
Read more >
Android Studio 2022.1.1 Closed Issues
Issue #249181181. Native breakpoints not working since Android Studio 2021.1.1 ... Compose with KMM - Backend Internal error: Exception during IR lowering ......
Read more >
Compose - Kotlinlang Slack
my first day in compose so bear with me The… ... kotlin-native ... BackendException: Backend Internal error: Exception during IR lowering.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found