You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building a wasm project using wasm-bindgen and wasm-pack. I initialized the project with wasm-pack and I run the build inside a docker image as I need to deploy this across platforms. The build seems to succeed without issue. I can see the set of relevant bg files and the wasm file itself is 202kb.
However when I run wasm-metering on it, it fails while trying to parse the first bytes opcode as shown. When I run xxd on the file it appears to have code although the hex dump is quite large and difficult to read. How can I inspect what is happening during the file generation to figure out what's going on?
`/usr/local/aomodule/src/node/node_modules/wasm-json-toolkit/wasm2json.js:591
let [type, name] = fullName.split('.')
^
TypeError: Cannot read properties of undefined (reading 'split')
at _exports.parseOp (/usr/local/aomodule/src/node/node_modules/wasm-json-toolkit/wasm2json.js:591:31)
at Object.code (/usr/local/aomodule/src/node/node_modules/wasm-json-toolkit/wasm2json.js:559:29)
at _exports.parse (/usr/local/aomodule/src/node/node_modules/wasm-json-toolkit/wasm2json.js:621:42)
at module.exports [as wasm2json] (/usr/local/aomodule/src/node/node_modules/wasm-json-toolkit/wasm2json.js:7:19)
at exports.meterWASM (/usr/local/aomodule/src/node/node_modules/wasm-metering/index.js:219:22)
at Object. (/usr/local/aomodule/src/node/apply-metering.cjs:6:48)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am building a wasm project using wasm-bindgen and wasm-pack. I initialized the project with wasm-pack and I run the build inside a docker image as I need to deploy this across platforms. The build seems to succeed without issue. I can see the set of relevant bg files and the wasm file itself is 202kb.
However when I run wasm-metering on it, it fails while trying to parse the first bytes opcode as shown. When I run xxd on the file it appears to have code although the hex dump is quite large and difficult to read. How can I inspect what is happening during the file generation to figure out what's going on?
`/usr/local/aomodule/src/node/node_modules/wasm-json-toolkit/wasm2json.js:591
let [type, name] = fullName.split('.')
^
TypeError: Cannot read properties of undefined (reading 'split')
at _exports.parseOp (/usr/local/aomodule/src/node/node_modules/wasm-json-toolkit/wasm2json.js:591:31)
at Object.code (/usr/local/aomodule/src/node/node_modules/wasm-json-toolkit/wasm2json.js:559:29)
at _exports.parse (/usr/local/aomodule/src/node/node_modules/wasm-json-toolkit/wasm2json.js:621:42)
at module.exports [as wasm2json] (/usr/local/aomodule/src/node/node_modules/wasm-json-toolkit/wasm2json.js:7:19)
at exports.meterWASM (/usr/local/aomodule/src/node/node_modules/wasm-metering/index.js:219:22)
at Object. (/usr/local/aomodule/src/node/apply-metering.cjs:6:48)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)`
Beta Was this translation helpful? Give feedback.
All reactions