Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Out of bounds call_indirect (evaluating 'getWasmTableEntry(_)(t, e, E, a, r)') #2211

Open
capaj opened this issue Dec 25, 2024 · 1 comment

Comments

@capaj
Copy link

capaj commented Dec 25, 2024

Running in bun 1.42 I am getting

# Unhandled error between tests
-------------------------------
1 | import{a as b_}from"./chunk-Y4PL6ZOT.js";import{e as A_,h as D_,i as m_,j as p_,k as d_,l as u_,m as v_,n as O_,o as l_,p as k_,q as f_,r as w_,s as Z_,t as g_,u as q_,v as j_}from"./chunk-5L6BPGXX.js";import{a as F_,b as P_,c as s_,d as q,e as S_}from"./chunk-J3WW5J5P.js";import"./chunk-STOZMFXW.js";import{c as C_,d as K,e as Z,f as h,g as B,h as J,j as y}from"./chunk-BTBUZ646.js";y();y();y();var J_=new Error("timeout while waiting for mutex to become available"),W_=new Error("mutex already locked"),X_=new Error("request for lock canceled"),z_=function(_,t,e,E){function a(r){return r instanceof e?r:new e(function(s){s(r)})}return new(e||(e=Promise))(function(r,s){function S(l){try{n(E.next(l))}catch(c){s(c)}}function o(l){try{n(E.throw(l))}catch(c){s(c)}}function n(l){l.done?r(l.value):a(l.value).then(S,o)}n((E=E.apply(_,t||[])).next())})},c_=class{constructor(t,e=X_){this._value=t,this._cancelError=e,this._weightedQueues=[],this._weightedWaiters=[]}acquire(t=1){if(t<=0)throw new Error(`invalid weight ${t}:  | ... truncated 
2 | `));if(!_)return null;FS_stdin_getChar_buffer=intArrayFromString(_,!0)}return FS_stdin_getChar_buffer.shift()},TTY={ttys:[],init(){},shutdown(){},register(_,t){TTY.ttys[_]={input:[],output:[],ops:t},FS.registerDevice(_,TTY.stream_ops)},stream_ops:{open(_){var t=TTY.ttys[_.node.rdev];if(!t)throw new FS.ErrnoError(43);_.tty=t,_.seekable=!1},close(_){_.tty.ops.fsync(_.tty)},fsync(_){_.tty.ops.fsync(_.tty)},read(_,t,e,E,a){if(!_.tty||!_.tty.ops.get_char)throw new FS.ErrnoError(60);for(var r=0,s=0;s<E;s++){var S;try{S=_.tty.ops.get_char(_.tty)}catch{throw new FS.ErrnoError(29)}if(S===void 0&&r===0)throw new FS.ErrnoError(6);if(S==null)break;r++,t[e+s]=S}return r&&(_.node.timestamp=Date.now()),r},write(_,t,e,E,a){if(!_.tty||!_.tty.ops.put_char)throw new FS.ErrnoError(60);try{for(var r=0;r<E;r++)_.tty.ops.put_char(_.tty,t[e+r])}catch{throw new FS.ErrnoError(29)}return E&&(_.node.timestamp=Date.now()),r}},default_tty_ops:{get_char(_){return FS_stdin_getChar()},put_char(_,t){t===null||t===10?(out(UTF8ArrayToString(_.o | ... truncated 
3 | ${S}`),0}},__dlopen_js=_=>dlopenInternal(_,{loadAsync:!1});__dlopen_js.sig="pp";var __dlsym_js=(_,t,e)=>{t=UTF8ToString(t);var E,a,r=LDSO.loadedLibsByHandle[_];if(!r.exports.hasOwnProperty(t)||r.exports[t].stub)return dlSetError(`Tried to lookup unknown symbol "${t}" in dynamic lib: ${r.name}`),0;if(a=Object.keys(r.exports).indexOf(t),E=r.exports[t],typeof E=="function"){var s=getFunctionAddress(E);s?E=s:(E=addFunction(E,E.sig),HEAPU32[e>>2]=a)}return E};__dlsym_js.sig="pppp";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;__emscripten_get_now_is_monotonic.sig="i";var runtimeKeepaliveCounter=0,__emscripten_runtime_keepalive_clear=()=>{noExitRuntime=!1,runtimeKeepaliveCounter=0};__emscripten_runtime_keepalive_clear.sig="v";var __emscripten_system=_=>{if(ENVIRONMENT_IS_NODE){if(!_)return 1;var t=UTF8ToString(_);if(!t.length)return 0;var e=require("child_process"),E=e.spawnSync(t,[],{shell:!0,stdio:"inherit"}),a=(s,S)=>s<<8|S;if(E.status===null){var r=s=>{switch(s){case"SIGHUP":return 1 | ... truncated 

RuntimeError: Out of bounds call_indirect (evaluating 'getWasmTableEntry(_)(t, e, E, a, r)')
      at <?>.wasm-function[5368]
      at <?>.wasm-function[2364]
      at <?>.wasm-function[2289]
      at <?>.wasm-function[1055]
      at <?>.wasm-function[1825]
      at <?>.wasm-function[2921]
      at <?>.wasm-function[3894]
      at invoke_viiiii (/home/capaj/work-repos/bun-crypto-bot/node_modules/.pnpm/@[email protected]/node_modules/@electric-sql/pglite/dist/index.js:3:2415116)
      at <?>.wasm-function[4520]
      at <?>.wasm-function[4519]

I can build a repo with a repro if anyone is interested

@balegas
Copy link
Contributor

balegas commented Jan 6, 2025

Can you provide more context about what you're trying to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants