Getting "Internal Compiler Error" when building Wa...
# webassembly
j
Getting "Internal Compiler Error" when building Wasm based Compose for Web client in Confetti sample after updating to Kotlin 2.1.0-Beta2.....more info in 🧵
🙏 1
Copy code
> Task :compose-web:compileProductionExecutableKotlinWasmJs FAILED
e: java.lang.NullPointerException
	at org.jetbrains.kotlin.backend.wasm.ir2wasm.WasmCompiledModuleFragment.createTryGetAssociatedObjectFunction(WasmCompiledModuleFragment.kt:384)
	at org.jetbrains.kotlin.backend.wasm.ir2wasm.WasmCompiledModuleFragment.linkWasmCompiledFragments(WasmCompiledModuleFragment.kt:216)
	at org.jetbrains.kotlin.backend.wasm.WasmCompilerKt.compileWasm-quGr1d0(wasmCompiler.kt:163)
	at org.jetbrains.kotlin.cli.js.K2JSCompiler.doExecute(K2JSCompiler.kt:490)
	at org.jetbrains.kotlin.cli.js.K2JSCompiler.doExecute(K2JSCompiler.kt:105)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:102)
	at org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.kt:316)
	at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1554)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
	at java.rmi/sun.rmi.transport.Transport$1.run(Unknown Source)
	at java.rmi/sun.rmi.transport.Transport$1.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.rmi/sun.rmi.transport.Transport.serviceCall(Unknown Source)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
I've updated Kotlin version but nothing else yet so maybe some other dependencies need to be updated
fyi @bashor
Tried a different sample (ClimateTrace) and getting different internal error....I'm guessing there probably is some other dependencies that need to be updated first?
probably ksp at least
b
@John O'Reilly thanks for trying, could you please file an issue?
also might be worth trying clean build
j
Yeah, made sure you to do a clean before hand
👍 1
Where do I file the issue again?
b
j
Any particular labels/categories etc?
b
Subsystems: Backend.Wasm
or just add
K/Wasm
to the title
s
Fyi, we changed how composable function types are remapped under the hood in Compose, theoretically any internal errors might be related
e
@bashor has the team considered (or is already) using some community libraries/apps as automated test cases?
👌 1
i
🙏 1
p
Same here
🙏 1
b
@Pau Marzo did you use production build?
p