You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this is all work in progress, but I thought I'd report this anyway. ZipFile is broken and tries to access the UNIX filesystem rather than the virtual filesystem, probably because of this mess in OpenJDK.
Exception in thread "main" java.lang.UnsupportedOperationException: UnmanagedMemorySupport.malloc not supported
at genBacktrace (/home/purplesyringa/mc/decompiler/target/decompiler.js:1229:12)
at genBacktrace (/home/purplesyringa/mc/decompiler/target/decompiler.js:1299:32)
at _Unsafe_allocateMemory___J_J (wasm://wasm/027eb0e6:wasm-function[6614]:0x21e215)
at _NativeBuffer___strictfp___I_V (wasm://wasm/027eb0e6:wasm-function[9281]:0x2cba97)
at _UnixNativeDispatcher_copyToNativeBuffer___UnixPath_NativeBuffer (wasm://wasm/027eb0e6:wasm-function[9258]:0x2cacf6)
at _UnixNativeDispatcher_stat___UnixPath_UnixFileAttributes_V (wasm://wasm/027eb0e6:wasm-function[9300]:0x2cc988)
at _UnixFileAttributes_get___UnixPath_Z_UnixFileAttributes (wasm://wasm/027eb0e6:wasm-function[9324]:0x2cde4e)
at _UnixFileAttributeViews$Basic_readAttributes___BasicFileAttributes (wasm://wasm/027eb0e6:wasm-function[8873]:0x2ae558)
at func.bridge._BasicFileAttributeView.readAttributes___BasicFileAttributes (wasm://wasm/027eb0e6:wasm-function[2320]:0x14d1b2)
Using the latest version of GraalVM can resolve many issues.
Describe the Issue
I know this is all work in progress, but I thought I'd report this anyway.
ZipFile
is broken and tries to access the UNIX filesystem rather than the virtual filesystem, probably because of this mess in OpenJDK.Using the latest version of GraalVM can resolve many issues.
GraalVM Version
Operating System and Version
Linux axolotl 6.13.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 07 Mar 2025 20:19:00 +0000 x86_64 GNU/Linux
Troubleshooting Confirmation
Run Command
native-image --tool:svm-wasm -g <...> && node <...>
Expected Behavior
The attributes are requested from the virtual filesystem.
Actual Behavior
OpenJDK tries to invoke the native
stat
syscall.Steps to Reproduce
Create a Java project, include the code snippet as the main class, build targeting WASM, try to run.
Additional Context
No response
Run-Time Log Output and Error Messages
No response
The text was updated successfully, but these errors were encountered: