Open VladislavSumin opened 8 months ago
Do you have a project with a reproducer, by any chance? It's hard to tell what happened from the stacktrace alone.
Yes, I have a project with 100 percent reproduction. You need to rollback to the specified commit and call gradle :client:wasm:wasmJsBrowserDevelopmentRun
. It crashes immediately at the start, you don’t need to do anything additional. If you roll back one more commit earlier, kotlin-beta01 will be there and everything works.
Repo: https://github.com/VladislavSumin/vs-control
Revision: c2257bc76d9a8ad68f1460e361dadb511593b1fa
I'm receiving the same error
dereferencing a null pointer
RuntimeError: dereferencing a null pointer
at
I'm also receiving a similar error with serialization and WASM when using Beta4
I was able to reproduce the error, but it seems it is connected to Kotlin/WASM itself. Has anyone reported it to the YouTrack?
It seems to be fixed with Kotlin version 2.0.0-Beta5, and I no longer receive the error. If you want to use 2.0.0-Beta5, compose compiler 1.5.11-kt-2.0.0-Beta5 works.
@VladislavSumin Can you confirm that using 2.0.0-Beta5 indeed solves the issue?
@sandwwraith Yes I get the same error with the kotlin version Beta5
The kotlin-serialization library crashes with a null pointer exception when initializing the Serializer in the code of a third-party library compiled with an older version of kotlin. When using such Serializers directly in the code, there is no crash.
wasm stack trace
``` Primitives.kt:79 Uncaught (in promise) RuntimeError: dereferencing a null pointer atEnvironment