3,056 questions
0
votes
0
answers
49
views
Is it possible to compile C++ that user types to Wasm Client side using web containers
I currently have been trying to use WebContainers + emscripten for my compilation, and i want to know if it is possible, and if not other ways to do it.
hello.js
import { WebContainer } from 'https://...
-1
votes
0
answers
24
views
Google Cloud Run does not load WASM with 500 aborted error [closed]
I am trying to deploy my Godot game, in docker to google cloud run, but even after isolating the issue, the wasm fails to load.
It works on itch.io and locally. How can I get the wasm to load?
0
votes
0
answers
61
views
Fail to load ffmpeg in web assembly in a quasar application [closed]
I built a quasar application and am trying to process a video in ffmpeg in wasm on client side.
Issue
I managed to install the library and set everything up it seems but running ffmpeg.load() I end up ...
2
votes
1
answer
67
views
When importing tables or memories, why should the "actual max size" be less than the "expected max size"?
While looking through the WebAssembly 1.0 specification I got confused by the type rules for matching limits when importing memories or tables (section "4.5.2.1 Limits"). This also goes for ...
2
votes
0
answers
40
views
How to share a single WebAssembly.Memory instance between multiple ESM worker threads in Node.js 22?
I am working with Node.js 22 using native ESM and Worker Threads, I'm trying to share a single WebAssembly.Memory instance across multiple workers to avoid duplicating memory.
// main.mjs
import { ...
0
votes
0
answers
45
views
ASM_CONSTS mismatch when building two wasm modules using Emscripten: one with -msimd128 and one without #25631
I'm attempting to build a wasm module with Emscripten once with -msimd128 -msse2 and have a fallback without. This uses the makeflags
ifeq ($(P_SIMD),1)
LINKFLAGS += -msimd128 -msse2 // later passed ...
2
votes
1
answer
83
views
Building Qt6 WebAssembly GUI with Emscripten fails because of missing GLESv2/EGL
I am trying to build a Qt6 GUI project for WebAssembly using Emscripten.
I managed to build the project successfully with nlohmann_json and spdlog.
Now I also want to add the cpr library to use an ...
0
votes
1
answer
53
views
Problem in compiling c++ codes including FFmpeg libraries using em++ into WebAssembly
When I try to compile FFmpeg to WebAssebly I got wasm-ld-13: error: unknown file type: demux.o, I configure and install FFmpeg (ffmpeg-8.0) using:
emconfigure ./configure \
--prefix=$(pwd)/installed ...
1
vote
0
answers
146
views
How to make a TLS connection from Rust WASM code in WASI?
How do I make an outbound TLS connection (not HTTPS) from within WASM in Rust? Using WASI of course (not inside a browser). I've tried tokio_native_tls and rustls. Both fail to compile, saying that ...
4
votes
2
answers
133
views
Is sample accurate decoding from an arbitrary FLAC seekpoint possible?
Is FLAC decoded PCM guaranteed to start at the sample of an arbitrary seekpoint, if we fetch via HTTP range request from the seekpoints noted offset (on a fixed frame size e.g. 1024)?
I encounter ...
0
votes
0
answers
73
views
emrun "Uncaught DOMException: A network error occurred.", but static webserver works
Trying to learn some webassembly. I've got a minimum hello world:
#include <emscripten.h>
#include <stdlib.h>
#include <stdio.h>
int main() {
printf("hello world");
}
...
0
votes
0
answers
40
views
Issues with OPA/Reg Policy Compilation to WASM
I'm working on a Rego/OPA policy, specifically for checking azure resources diagnostic settings compliant based on specified parameters. However, I'm having several issues when trying to compile my ...
-1
votes
3
answers
316
views
Use Wasm on Vercel Edge
I'm trying to import a .wasm file on Vercel Edge in SvelteKit. The module I'm using is @resvg/resvg-wasm.
When I try like so:
import wasmInline from '@resvg/resvg-wasm/index_bg.wasm?inline';
...
await ...
0
votes
0
answers
101
views
Load of WASM with CSP enforced
TLDR (Conclusion - decision made)
We reached the conclusion confirming unsafe-eval will be required by WASM itself. It's now part of the CSP since there's no way to really mitigate unless
WASM does ...
-1
votes
1
answer
525
views
FFmpeg WASM Compilation with Hardware-Accelerated H.264/HEVC Decoding
I'm working on a media processing SDK with a substantial C++ codebase that currently uses FFmpeg for video decoding on native platforms (Windows/Linux). I need to port this to browsers while ...
0
votes
0
answers
160
views
RuntimeError: unreachable executed from wasm-bindgen
My website has the following JS code running the generated WASM:
import init, {
solve_abrams_strogatz
} from './pkg/langshift.js';
async function run() {
await init();
console.log("...
3
votes
0
answers
166
views
Why isn't wasm heap memory being freed when I return a vector by value?
Could someone please tell me why my WASM used heap size keeps growing every time I call genVector?
Note, this binding is a very simplified reproduction of the problem.
std::vector<uint8_t> ...
2
votes
1
answer
296
views
How to resolve error: "Could not find 'ChartJsInterop.setupChart'" - When using ChartJsBlazor
Im trying to use ChartJsBlazor with my Blazor WebAssemply project in Visual Studio and I've pretty must just copied the guide from the "Getting Started" section (https://github.com/...
1
vote
0
answers
61
views
Failed to run `npm run build` with wasm file in next.js project
I use my wasm package in a next.js app. The wasm package is written in Rust and compiled by wasm-pack. Everything works very well when I start the app by npm run dev. However, when running npm run ...
1
vote
1
answer
48
views
InvalidOperationException: Cannot provide a value for property 'QuestionService' on type 'PWAQuestionWASM.Client.Pages.Questions'
I'm trying to make CRUD work on Blazor Webassembly, but absolutely nothing works.
InvalidOperationException: Cannot provide a value for property 'QuestionService' on type 'PWAQuestionWASM.Client.Pages....
4
votes
1
answer
773
views
(C/C++ DevTools Support (DWARF)) Loaded debug symbols, but didn't find any source files
I am developing a c++ WASM app. I often work with Chrome C/C++ DevTools(DWARF) extension to step into C++ source code during WASM debugging. A few days ago it was working fine. Now when loading WASM ...
2
votes
1
answer
475
views
How to convert .wat text into .wasm binary inside a browser
Surprisingly, wabt depends on fs under the hood, which is obviously not available inside a browser.
I'm working on an online compiler which translates source code into WAT, so precompilation on the ...
1
vote
1
answer
138
views
Using a global Wasmtime Linker object in Rust
Everything in this question is specific to the Wasmtime runtime for running WebAssembly modules. I am trying to build a Rust program that would be able to do a very basic form of dynamic linking ...
114
votes
6
answers
34k
views
Blazor performance
I would like to start using Blazor, despite the fact that it is still at the alpha level.
As I understand it, Blazor uses WebAssembly to compile C# on the client side.
And I have these questions:
Does ...
0
votes
0
answers
92
views
Debug Outlook Web addin created in Blazor WASM
I'm creating an Outlook Web Addin. Implementation is done in Blazor WASM. The addin is working, well, but I'm not able to debug the addin when it is loaded in Outlook or neither in the browser. It is ...