Comments (3)
Ok thanks! I think #1390 should fix that case then, and I can do a version bump once that's ready.
from wasm-tools.
Yes I think this is definitely a bug in the validator where you probably don't have 81 linear memories but 81 aliases to the same linear memory. Do you have an example component you could share? I can reproduce this with:
(component
(core module $m
(memory (export "m") 1)
)
(core instance $i (instantiate $m))
(alias core export $i "m" (core memory))
;; ... repeat that 100 times ...
(alias core export $i "m" (core memory))
)
But I'd also like to confirm with a concrete component you have which doesn't validate if possible too
from wasm-tools.
Sure – here's a link to a component containing a number of python native packages. I ran into the problem when I added pandas
to the component; componentize-py
fails to generate an output component due to the wasmencoder error:
Traceback (most recent call last):
File "/Users/chris/projects/dylibso/li/demo/venv/bin/componentize-py", line 8, in <module>
sys.exit(script())
^^^^^^^^
AssertionError: failed to validate component output
Caused by:
memories count exceeds limit of 100 (at offset 0xebe202a)
(If you need the source to recreate the component, let me know – I've got kind of a mess of submodules set up for testing but can look into cleaning it up if that's helpful. 😅 )
from wasm-tools.
Related Issues (20)
- `wasmparser::validator::ComponentState::validate_and_register_named_types` should return `Result` instead of `bool`
- Is wast parser encoder always removing parsed custom sections? HOT 2
- Transparent `FuncToValidate` type HOT 4
- proposal: wit-parser: create distinct imported and exported TypeDefs, Functions, and Interfaces in a Resolve HOT 9
- Compose example fails
- New crate: `wit-encoder` HOT 5
- `wasmparser`: Add `no-hash-maps` crate feature & support HOT 12
- wit-component README: typo
- Npm package support HOT 7
- `wasm-tools print --skeleton` with no core modules
- `wasmparser`: make `ahash` an optional dependency HOT 8
- wit-component: static Resource function causes Validate to fail
- Export conflicts HOT 4
- Alternative for wasmer inspect HOT 1
- The future of `wasm-tools compose` given `wac` HOT 1
- obsolete comment for `push` HOT 1
- Extract wit from wasm file HOT 5
- wasi-virt throws error in wasm-compose (redirected from wasi-virt to Wasm-tools)
- wit-parser provides poor error messages for a missing closing bracket HOT 2
- wasmparser -> wasm-encoder bridge HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasm-tools.