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.

NoSuchMethodError JvmIrUtilsKt.isInlineParameter while compiling for iOS

See original GitHub issue

Hello. I’m playing with the new Darwin targets of Compose and Decompose. It builds locally just fine on my MacBook Air M1. However the build fails on CI (GitHub Actions). Because of that I couldn’t find the causing code yet.

Kotlin version: 1.6.10 Compose version: 1.2.0-alpha01-dev662 CI run: link

I have fixed a branch for this crash: compose-ios-crash-1

Error message:

e: java.lang.NoSuchMethodError: 'boolean org.jetbrains.kotlin.backend.jvm.ir.JvmIrUtilsKt.isInlineParameter(org.jetbrains.kotlin.ir.declarations.IrValueParameter)'
Stack trace
> Task :extensions-compose-jetbrains:compileKotlinIosArm64
e: Compilation failed: 'boolean org.jetbrains.kotlin.backend.jvm.ir.JvmIrUtilsKt.isInlineParameter(org.jetbrains.kotlin.ir.declarations.IrValueParameter)'

 * Source files: Children.kt, SubscribeAsState.kt, ChildAnimation.kt, ChildAnimator.kt, DefaultChildAnimation.kt, DefaultChildAnimator.kt, Direction.kt, EmptyChildAnimation.kt, Fade.kt, Scale.kt, Slide.kt, LifecycleComposableBuilder.kt
 * Compiler version info: Konan: 1.6.10 / Kotlin: 1.6.10
 * Output kind: LIBRARY

e: java.lang.NoSuchMethodError: 'boolean org.jetbrains.kotlin.backend.jvm.ir.JvmIrUtilsKt.isInlineParameter(org.jetbrains.kotlin.ir.declarations.IrValueParameter)'
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitFunctionAccess(IrInlineReferenceLocator.kt:72)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitFunctionAccess(IrInlineReferenceLocator.kt:39)
	at org.jetbrains.kotlin.ir.visitors.IrElementVisitor$DefaultImpls.visitCall(IrElementVisitor.kt:77)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitCall(IrInlineReferenceLocator.kt:39)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitCall(IrInlineReferenceLocator.kt:39)
	at org.jetbrains.kotlin.ir.expressions.impl.IrCallImpl.accept(IrCallImpl.kt:47)
	at org.jetbrains.kotlin.ir.expressions.IrBlockBody.acceptChildren(IrBody.kt:57)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitElement(IrInlineReferenceLocator.kt:42)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitElement(IrInlineReferenceLocator.kt:39)
	at org.jetbrains.kotlin.ir.visitors.IrElementVisitor$DefaultImpls.visitBody(IrElementVisitor.kt:46)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitBody(IrInlineReferenceLocator.kt:39)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitBody(IrInlineReferenceLocator.kt:39)
	at org.jetbrains.kotlin.ir.visitors.IrElementVisitor$DefaultImpls.visitBlockBody(IrElementVisitor.kt:48)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitBlockBody(IrInlineReferenceLocator.kt:39)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitBlockBody(IrInlineReferenceLocator.kt:39)
	at org.jetbrains.kotlin.ir.expressions.IrBlockBody.accept(IrBody.kt:54)
	at org.jetbrains.kotlin.ir.declarations.IrFunction.acceptChildren(IrFunction.kt:58)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitDeclaration(IrInlineReferenceLocator.kt:47)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitDeclaration(IrInlineReferenceLocator.kt:39)
	at org.jetbrains.kotlin.ir.visitors.IrElementVisitor$DefaultImpls.visitFunction(IrElementVisitor.kt:33)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitFunction(IrInlineReferenceLocator.kt:39)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitFunction(IrInlineReferenceLocator.kt:39)
	at org.jetbrains.kotlin.ir.visitors.IrElementVisitor$DefaultImpls.visitSimpleFunction(IrElementVisitor.kt:34)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitSimpleFunction(IrInlineReferenceLocator.kt:39)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitSimpleFunction(IrInlineReferenceLocator.kt:39)
	at org.jetbrains.kotlin.ir.declarations.IrSimpleFunction.accept(IrSimpleFunction.kt:28)
	at org.jetbrains.kotlin.ir.declarations.impl.IrFileImpl.acceptChildren(IrFileImpl.kt:84)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitElement(IrInlineReferenceLocator.kt:42)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitElement(IrInlineReferenceLocator.kt:39)
	at org.jetbrains.kotlin.ir.visitors.IrElementVisitor$DefaultImpls.visitPackageFragment(IrElementVisitor.kt:26)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitPackageFragment(IrInlineReferenceLocator.kt:39)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitPackageFragment(IrInlineReferenceLocator.kt:39)
	at org.jetbrains.kotlin.ir.visitors.IrElementVisitor$DefaultImpls.visitFile(IrElementVisitor.kt:27)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitFile(IrInlineReferenceLocator.kt:39)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitFile(IrInlineReferenceLocator.kt:39)
	at org.jetbrains.kotlin.ir.declarations.impl.IrFileImpl.accept(IrFileImpl.kt:81)
	at org.jetbrains.kotlin.ir.declarations.impl.IrModuleFragmentImpl.acceptChildren(IrModuleFragmentImpl.kt:40)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitElement(IrInlineReferenceLocator.kt:42)

	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitElement(IrInlineReferenceLocator.kt:39)
> Task :extensions-compose-jetbrains:compileKotlinIosArm64 FAILED
	at org.jetbrains.kotlin.ir.visitors.IrElementVisitor$DefaultImpls.visitModuleFragment(IrElementVisitor.kt:25)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitModuleFragment(IrInlineReferenceLocator.kt:39)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator.visitModuleFragment(IrInlineReferenceLocator.kt:39)
	at org.jetbrains.kotlin.ir.declarations.impl.IrModuleFragmentImpl.accept(IrModuleFragmentImpl.kt:37)
	at androidx.compose.compiler.plugins.kotlin.lower.IrInlineReferenceLocator$Companion.scan(IrInlineReferenceLocator.kt:124)
	at androidx.compose.compiler.plugins.kotlin.lower.AbstractComposeLowering.lower(AbstractComposeLowering.kt:176)
	at androidx.compose.compiler.plugins.kotlin.lower.ComposerLambdaMemoization.lower(ComposerLambdaMemoization.kt:375)
	at androidx.compose.compiler.plugins.kotlin.ComposeIrGenerationExtension.generate(ComposeIrGenerationExtension.kt:126)
	at org.jetbrains.kotlin.backend.konan.PsiToIrKt.psiToIr$lambda-14(PsiToIr.kt:173)
	at org.jetbrains.kotlin.psi2ir.Psi2IrTranslator.generateModuleFragment(Psi2IrTranslator.kt:88)
	at org.jetbrains.kotlin.backend.konan.PsiToIrKt.psiToIr(PsiToIr.kt:178)
	at org.jetbrains.kotlin.backend.konan.ToplevelPhasesKt$psiToIrPhase$1.invoke(ToplevelPhases.kt:119)
	at org.jetbrains.kotlin.backend.konan.ToplevelPhasesKt$psiToIrPhase$1.invoke(ToplevelPhases.kt:117)
	at org.jetbrains.kotlin.backend.common.phaser.PhaseBuildersKt$namedOpUnitPhase$1.invoke(PhaseBuilders.kt:96)
	at org.jetbrains.kotlin.backend.common.phaser.PhaseBuildersKt$namedOpUnitPhase$1.invoke(PhaseBuilders.kt:94)
	at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.invoke(CompilerPhase.kt:96)
	at org.jetbrains.kotlin.backend.common.phaser.CompositePhase.invoke(PhaseBuilders.kt:29)
	at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.invoke(CompilerPhase.kt:96)
	at org.jetbrains.kotlin.backend.common.phaser.CompilerPhaseKt.invokeToplevel(CompilerPhase.kt:43)
	at org.jetbrains.kotlin.backend.konan.KonanDriverKt.runTopLevelPhases(KonanDriver.kt:34)
	at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:81)
	at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:37)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:92)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:44)
	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:98)
	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:76)
	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:45)
	at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(CLITool.kt:227)
	at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit$default(CLITool.kt:225)
	at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMain(CLITool.kt:214)
	at org.jetbrains.kotlin.cli.bc.K2Native$Companion$main$1.invoke(K2Native.kt:380)
	at org.jetbrains.kotlin.cli.bc.K2Native$Companion$main$1.invoke(K2Native.kt:379)
	at org.jetbrains.kotlin.util.UtilKt.profileIf(Util.kt:22)
	at org.jetbrains.kotlin.util.UtilKt.profile(Util.kt:16)
	at org.jetbrains.kotlin.cli.bc.K2Native$Companion.main(K2Native.kt:379)
	at org.jetbrains.kotlin.cli.bc.K2NativeKt.main(K2Native.kt:633)
	at org.jetbrains.kotlin.cli.utilities.MainKt$main$1.invoke(main.kt:60)
	at org.jetbrains.kotlin.cli.utilities.MainKt$main$1.invoke(main.kt:60)
	at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:17)
	at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:60)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
IlyaGulyacommented, Apr 24, 2022

UPD: Problem is gone with kotlin 1.6.20 and compose-jb 0.0.0-on-rebase-12-apr-2022-dev668

0reactions
arkivanovcommented, Apr 30, 2022

Works fine with 1.2.0-alpha01-dev675, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

NoSuchMethodError JvmIrUtilsKt.isInlineParameter while ...
NoSuchMethodError JvmIrUtilsKt.isInlineParameter while compiling for iOS #2007. Hello. I'm playing with the new Darwin targets of Compose and Decompose.
Read more >
JVM / IR: "NoSuchMethodError: 'org.jetbrains.kotlin.descriptors ...
When I try to build your sample project, I get a completely different error (see below) so I was unable to reproduce. However,...
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