Skip to content

Node compatibility issue - Loading WASM failed #85

@sebastianwessel

Description

@sebastianwessel

@sebastianwessel Unfortunately, it doesn't fix it completely. The error changed, but it is still failing with 2.3.1.
It might make sense to run some tests based on my script from #68.
(or you can just run it manually before release)


Aborted(Assertion failed: list_empty(&rt->gc_obj_list), at: ../../vendor/quickjs-ng/quickjs.c,1954,JS_FreeRuntime)
/home/sergii/work/installer-services-automations/node_modules/@jitl/quickjs-ng-wasmfile-release-sync/dist/emscripten-module.mjs:15
function M(a){c.onAbort?.(a);a="Aborted("+a+")";B(a);D=!0;E=1;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");f(a);throw a;}var ma=a=>a.startsWith("data:application/octet-stream;base64,"),A=a=>a.startsWith("file://"),N;function na(a){if(a==N&&C)return new Uint8Array(C);if(z)return z(a);throw"both async and sync fetching of the wasm failed";}function oa(a){return C?Promise.resolve().then(()=>na(a)):y(a).then(b=>new Uint8Array(b),()=>na(a))}
                                                                ^


RuntimeError: Aborted(Assertion failed: list_empty(&rt->gc_obj_list), at: ../../vendor/quickjs-ng/quickjs.c,1954,JS_FreeRuntime). Build with -sASSERTIONS for more info.
    at M (/home/sergii/work/installer-services-automations/node_modules/@jitl/quickjs-ng-wasmfile-release-sync/dist/emscripten-module.mjs:15:65)
    at b (/home/sergii/work/installer-services-automations/node_modules/@jitl/quickjs-ng-wasmfile-release-sync/dist/emscripten-module.mjs:22:315)
    at wasm://wasm/001d15c2:wasm-function[661]:0x334d7
    at wasm://wasm/001d15c2:wasm-function[919]:0x4d354
    at QuickJSFFI.c._QTS_FreeRuntime (/home/sergii/work/installer-services-automations/node_modules/@jitl/quickjs-ng-wasmfile-release-sync/dist/emscripten-module.mjs:30:95)
    at _Lifetime.disposer (/home/sergii/work/installer-services-automations/node_modules/quickjs-emscripten-core/src/module.ts:336:16)
    at _Lifetime.dispose (/home/sergii/work/installer-services-automations/node_modules/quickjs-emscripten-core/src/lifetime.ts:177:12)
    at _Scope.dispose (/home/sergii/work/installer-services-automations/node_modules/quickjs-emscripten-core/src/lifetime.ts:341:18)
    at QuickJSRuntime.dispose (/home/sergii/work/installer-services-automations/node_modules/quickjs-emscripten-core/src/runtime.ts:130:23)
    at _Scope.dispose (/home/sergii/work/installer-services-automations/node_modules/quickjs-emscripten-core/src/lifetime.ts:341:18)

Originally posted by @sergii-kamenskyi in #82

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions