Skip to content

Question: Using custom build of starlingmonkey #110

Open
@karthik2804

Description

I am attempting to use the engine produced by a debug build of the PR that refactors fetch.

My understanding is that it should be sufficient to pass the engine argument to the componentize function as below:

const { component, imports } = await componentize(source, {
    sourceName: basename(src),
    witPath: resolve(args.witPath),
    worldName: args.triggerType,
    engine: "./starlingmonkey/cmake-build-debug/starling.wasm",
    disable features: [],
});

I run into the following error.

thread '<unnamed>' panicked at crates/spidermonkey-embedding-splicer/src/splice.rs:119:80:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm://wasm/01874b72:1


RuntimeError: unreachable
    at __rust_start_panic (wasm://wasm/01874b72:wasm-function[6443]:0x372beb)
    at rust_panic (wasm://wasm/01874b72:wasm-function[6431]:0x37262c)
    at _ZN3std9panicking20rust_panic_with_hook17hc97f08b908247b1dE (wasm://wasm/01874b72:wasm-function[6430]:0x37255f)
    at _ZN3std9panicking19begin_panic_handler28_$u7b$$u7b$closure$u7d$$u7d$17hdd638bdaba0c6bccE (wasm://wasm/01874b72:wasm-function[6418]:0x3718f7)
    at _ZN3std10sys_common9backtrace26__rust_end_short_backtrace17h5b392607309abb6aE (wasm://wasm/01874b72:wasm-function[6417]:0x37185d)
    at rust_begin_unwind (wasm://wasm/01874b72:wasm-function[6425]:0x371f36)
    at _ZN4core9panicking9panic_fmt17h9fec598e5939a913E (wasm://wasm/01874b72:wasm-function[6588]:0x38040f)
    at _ZN4core9panicking5panic17h711f5cad5118a4ddE (wasm://wasm/01874b72:wasm-function[6599]:0x381c2f)
    at _ZN30spidermonkey_embedding_splicer6splice27synthesize_import_functions17hd2a9a03ce4744861E (wasm://wasm/01874b72:wasm-function[106]:0x2a36b)
    at _ZN30spidermonkey_embedding_splicer6splice6splice17h5faa7a23aef7cffbE (wasm://wasm/01874b72:wasm-function[105]:0x25dbf)

Is there some trick to getting this to work? or is the current state of the PR incompatible?
Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions