-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Explain details of compile #9953
Comments
Would you be able to paste any details of snippets or commands you're running? You refer to Otherwise to answer your question here: no, a |
Soource code https://github.com/guest271314/native-messaging-webassembly/blob/main/nm_javy.js
|
This is how the binary is executed https://github.com/guest271314/native-messaging-webassembly/blob/main/nm_c_wasm.sh
|
@alexcrichton I realize it's perhaps a bit much to reproduce exactly the steps I describe above. Just something I noticed and shared here. This is what I'm talking about re Undoubtedly this current live Linux session I'm running now will freeze up at some point then I'll have the The reason I know that this is happening with
|
Ideally to help investigate this further on our end we'd need information such as steps to reproduce (e.g. exact commands, but we probably don't need to reproduce your entire environment exactly) along with logs/errors/etc that you're seeing. Without that the best we can to is piece together this from what you've listed here. I can again reiterate though that |
The linked repository includes complete source code and instructions. I'm using The running a live Linux USB/CD is perhaps somewhat involved, though possible. I don't know why what I describe happens. |
@guest271314 Alex had asked for
You say only "fails to run"; could you show us what the actual error is? Given that we know how our system is meant to operate -- |
Here's the current I understand how you expect the compilation to work. That's what I expect, too. Nonetheless I've encountered similar cases in different runtimes that also expected the same, and people have filed bugs to fix what is broken. Not saying that's what's going on here. I don't look forward to my system freezing and starting a new live Linux session,. Though I've done it a few thousand times now. I have a startup script that basically gets me right back to where I am now. The only way for me to reproduce this is to reboot the machine and run the code. Would that help you analyze what's going on here? |
@cfallin Alright, here's what connecting to the working
looks like from the browser.
I want to make I'm checking everything when I turn off and turn back on this machine.
I don't think I'm missing any particulars about what I need to do after I reboot and test from Chromium Dev Channel. Anything particular I should do that I didn't list above? |
Hi @guest271314 -- unfortunately you didn't provide the information that I asked for. To reiterate from above:
In other words, please copy and paste from a shell session where you run
Please copy and paste the hash of the wasmtime binary and your cwasm file both in the case that execution works and the case that execution doesn't, to verify that they are the same. I cannot offer any more advice until you provide the information above. Thanks! |
I did. I posted code and screenshots of Chromium browser DevTools => Sources => Snippets where I run the code from. Native Messaging protocol (see https://github.com/guest271314/NativeMessagingHosts?tab=readme-ov-file#native-messaging-documentation) provides a communication channel over IPC between the browser and native applications. So the screenshot is literally be executing
from the browser. Sending JSON, getting JSON back in the form of a plain JavaScript object in the browser. In the above screenshot I'm benchmarking C, C++, Rust, JavaScript, Python, WASM in the form of JavaScript compiled to WASM with The benchmark is testing the speed to send 1 MB from the browser console to the Native Messaging hosts, and the hosts sending back 1 MB back to the browser. In other Native Messaging hosts I do other stuff, like stream real-time audio to the browser from the native application. Above I'm just testing the relative speed of different JavaScript runtimes and programming languages, and WASM, and C and C++ and JavaScript compiled to WASM, and that WASM compiled to Compare the first using Got it working. Recompiled during previous session. Made sure I am using newest Turned off machine. Turned machine back on. Ran startup script. Tested on Chromium Version 134.0.6949.0 (Developer Build) (64-bit). Thanks. |
I'm running a live Linux USB. If/when that temporary file system freezes during one of my experiments I lose that live session. I store my experiments and applications on a different USB.
Every time I use
wasmtime compile file.wasm
that producesf.cwasm
, and I lose the current filesystem, when I launch another live Linux sessionwasmtime file.cwasm
fails to run.That behaviour reminds me of how
and
work to compile executables. When the source file system is no more the executable doesn't work anymore. The executable expectes the source files to be referenced on the file system.
COuld be something else in
wasmtime
. Don't know. I know what I describe above has happened multiple times when I try to run that same.,cwasm
file produced bywasmtime
that executed before I didn't have the exact same file system to execute that file on.What's going on with the output of
wasmtime compile
here?The text was updated successfully, but these errors were encountered: