Skip to content
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

thread '<unnamed>' panicked at 'assertion failed: res.eax == 0' #70

Open
cnyyl opened this issue Sep 23, 2022 · 3 comments
Open

thread '<unnamed>' panicked at 'assertion failed: res.eax == 0' #70

cnyyl opened this issue Sep 23, 2022 · 3 comments
Labels
❓ question Further information is requested

Comments

@cnyyl
Copy link

cnyyl commented Sep 23, 2022

I found a runtime error as follow:

thread '<unnamed>' panicked at 'assertion failed: res.eax == 0', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/raw-cpuid-7.0.4/src/lib.rs:295:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Exception in thread "main" java.lang.RuntimeException: Any
    at org.wasmer.Instance.nativeInstantiate(Native Method)
    at org.wasmer.Instance.<init>(Instance.java:45)

I found this problem both on Windows 11 and Ubuntu 18.04, the JDK version is 1.8, is there anyone can help me to solve this problem?

@cnyyl cnyyl added the ❓ question Further information is requested label Sep 23, 2022
@vikinatora
Copy link

I'm having the same issue on MacOS with Java 17.

@bengesoff
Copy link

Looks like it's possibly related to this, which was fixed in July 2021: gz/rust-cpuid#45. However, wasmer-java's most recent release predates this fix.

From what I can see, this library used to be used by the wasmer project in 1.0.0, which is what wasmer-java depends on. However wasmer is now at version 3.1.1 and the cpuid library is no longer used.

@Tridu33
Copy link

Tridu33 commented Aug 11, 2023

this happens in windows 10

Connected to the target VM, address: '127.0.0.1:6248', transport: 'socket'
thread '<unnamed>' panicked at 'assertion failed: res.eax == 0', C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\raw-cpuid-7.0.4\src\lib.rs:295:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

java.lang.RuntimeException: Any

	at org.wasmer.Instance.nativeInstantiate(Native Method)
	at org.wasmer.Instance.<init>(Instance.java:45)
	at org.mvnsearch.WasmTest.testSimpleWasmCall(WasmTest.java:20)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants