Skip to content

[Native Image, WASM] StackWalker.walk is not implemented #11121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
handicraftsman opened this issue May 2, 2025 · 1 comment
Open

[Native Image, WASM] StackWalker.walk is not implemented #11121

handicraftsman opened this issue May 2, 2025 · 1 comment
Assignees
Labels
bug wasm-backend Issues related to the Wasm backend of GraalVM.

Comments

@handicraftsman
Copy link

Describe the issue
It is the same as in #1172

My first test after seeing https://www.youtube.com/watch?v=Z2SWSIThHXY was running a Spring Boot (web-less; yes, I know, not very efficient), yet I am getting next:

Steps to reproduce the issue
Generate a blank Spring Boot app (no starter-web/webflux).
I am using Gradle Kotlin for the build script, so I have added next to build.gradle.kts:

graalvmNative {
  binaries["main"].buildArgs.add("--tool:svm-wasm")
}

Then ./gradlew.bat nativeCompile

Describe GraalVM and your environment:
java version "25" 2025-09-16 LTS
Java(TM) SE Runtime Environment Oracle GraalVM 25-dev+20.1 (build 25+20-LTS-jvmci-b01)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 25-dev+20.1 (build 25+20-LTS-jvmci-b01, mixed mode, sharing)

Windows 11 x64

More details

demo.js:266 Exception in thread "main" java.lang.UnsupportedOperationException: StackWalker.walk
writeLine @ demo.js:266Understand this error
demo.js:266 	at genBacktrace (http://localhost:8000/demo.js:1229:12)
writeLine @ demo.js:266Understand this error
demo.js:266 	at genBacktrace (http://localhost:8000/demo.js:1299:32)
writeLine @ demo.js:266Understand this error
demo.js:266 	at wasm://wasm/051f4022:wasm-function[20624]:0x640f94
writeLine @ demo.js:266Understand this error
demo.js:266 	at wasm://wasm/051f4022:wasm-function[20633]:0x64261e
writeLine @ demo.js:266Understand this error
demo.js:266 	at wasm://wasm/051f4022:wasm-function[30455]:0x8f0f74
writeLine @ demo.js:266Understand this error
demo.js:266 	at wasm://wasm/051f4022:wasm-function[30424]:0x8eeb65
writeLine @ demo.js:266Understand this error
demo.js:266 	at wasm://wasm/051f4022:wasm-function[31769]:0x932cb6
writeLine @ demo.js:266Understand this error
demo.js:266 	at doRun (http://localhost:8000/demo.js:1195:22)
writeLine @ demo.js:266Understand this error
demo.js:266 	at wasmRun (http://localhost:8000/demo.js:912:9)
@fniephaus
Copy link
Member

Thanks for the report. The Wasm backend is a preview feature so it's expected that a large number of JDK operations are not supported yet. I hope we can share some updates on this soon.

@fniephaus fniephaus added the wasm-backend Issues related to the Wasm backend of GraalVM. label May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug wasm-backend Issues related to the Wasm backend of GraalVM.
Projects
None yet
Development

No branches or pull requests

3 participants