GithubHelp home page GithubHelp logo

Comments (3)

alexcrichton avatar alexcrichton commented on June 2, 2024 1

Ok thanks! I think #1390 should fix that case then, and I can do a version bump once that's ready.

from wasm-tools.

alexcrichton avatar alexcrichton commented on June 2, 2024

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.

chrisdickinson avatar chrisdickinson commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.