Distributive-Network / PythonMonkey

A Mozilla SpiderMonkey JavaScript engine embedded into the Python VM, using the Python engine to provide the JS host environment.
https://pythonmonkey.io
Other
854 stars 40 forks source link

Future exception was never retrieved #357

Closed philippedistributive closed 5 months ago

philippedistributive commented 5 months ago

Issue type

Bug

How did you install PythonMonkey?

main repo

OS platform and distribution

No response

Python version (python --version)

No response

PythonMonkey version (pip show pythonmonkey)

main

Bug Description

Got this running job-launch.py for the first time after merging the latest changes on futures handling from https://github.com/Distributive-Network/PythonMonkey/pull/156:

Future exception was never retrieved future: <Future finished exception=SpiderMonkeyError('Error in file /home/philippe/Sources/python-launch-job/node_modules/dcp-client/dist/dcp-client-bundle.js line 4125 > eval, on line 90, column 21:\nError: Assertion failure\nStack Trace:\n dcpAssert$$msgAssert@webpack://dcp/./src/common/dcp-assert.js?:90:21\n dcpAssert$$assert@webpack://dcp/./src/common/dcp-assert.js?:125:15\n Connection530$$connectInternal@webpack://dcp/./src/protocol/connection.js?:703:9\n Connection530$$connect@webpack://dcp/./src/protocol/connection.js?:674:10\n Connection530$$hangupHandler@webpack://dcp/./src/protocol/connection.js?:2025:8\n Connection530$$attach/<@webpack://dcp/./src/protocol/connection.js?:628:46\n emit@webpack://dcp/./node_modules/events/events.js?:158:19\n handleDisconnectEvent@webpack://dcp/./src/protocol/transports/socketio.js?:234:14\n useSocket/<@webpack://dcp/./src/protocol/transports/socketio.js?:187:71\n Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20\n onclose@webpack://dcp/./node_modules/@kingsds/socket.io-client/build/cjs/socket.js?:316:14\n Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20\n onclose@webpack://dcp/./node_modules/@kingsds/socket.io-client/build/cjs/manager.js?:342:14\n Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20\n onClose@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/socket.js?:587:18\n onError@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/socket.js?:558:14\n Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20\n onError@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/transport.js?:46:15\n doPoll/<@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/transports/polling.js?:255:18\n Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20\n onError@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/transports/polling.js?:356:14\n create/xhr.onreadystatechange/@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/transports/polling.js?:329:30\n') pythonmonkey.SpiderMonkeyError: Error in file /home/philippe/Sources/python-launch-job/node_modules/dcp-client/dist/dcp-client-bundle.js line 4125 > eval, on line 90, column 21: Error: Assertion failure Stack Trace: dcpAssert$$msgAssert@webpack://dcp/./src/common/dcp-assert.js?:90:21 dcpAssert$$assert@webpack://dcp/./src/common/dcp-assert.js?:125:15 Connection530$$connectInternal@webpack://dcp/./src/protocol/connection.js?:703:9 Connection530$$connect@webpack://dcp/./src/protocol/connection.js?:674:10 Connection530$$hangupHandler@webpack://dcp/./src/protocol/connection.js?:2025:8 Connection530$$attach/<@webpack://dcp/./src/protocol/connection.js?:628:46 emit@webpack://dcp/./node_modules/events/events.js?:158:19 handleDisconnectEvent@webpack://dcp/./src/protocol/transports/socketio.js?:234:14 useSocket/<@webpack://dcp/./src/protocol/transports/socketio.js?:187:71 Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20 onclose@webpack://dcp/./node_modules/@kingsds/socket.io-client/build/cjs/socket.js?:316:14 Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20 onclose@webpack://dcp/./node_modules/@kingsds/socket.io-client/build/cjs/manager.js?:342:14 Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20 onClose@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/socket.js?:587:18 onError@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/socket.js?:558:14 Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20 onError@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/transport.js?:46:15 doPoll/<@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/transports/polling.js?:255:18 Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20 onError@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/transports/polling.js?:356:14 create/xhr.onreadystatechange/<@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/transports/polling.js?:329:30

Warning: keepalive failed for compute groups service Error: Assertion failure dcpAssert$$msgAssert@webpack://dcp/./src/common/dcp-assert.js?:90:21 dcpAssert$$assert@webpack://dcp/./src/common/dcp-assert.js?:125:15 Connection530$$connectInternal@webpack://dcp/./src/protocol/connection.js?:703:9 Connection530$$connect@webpack://dcp/./src/protocol/connection.js?:674:10 Connection530$$hangupHandler@webpack://dcp/./src/protocol/connection.js?:2025:8 Connection530$$attach/<@webpack://dcp/./src/protocol/connection.js?:628:46 emit@webpack://dcp/./node_modules/events/events.js?:158:19 handleDisconnectEvent@webpack://dcp/./src/protocol/transports/socketio.js?:234:14 useSocket/<@webpack://dcp/./src/protocol/transports/socketio.js?:187:71 Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20 onclose@webpack://dcp/./node_modules/@kingsds/socket.io-client/build/cjs/socket.js?:316:14 Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20 onclose@webpack://dcp/./node_modules/@kingsds/socket.io-client/build/cjs/manager.js?:342:14 Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20 onClose@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/socket.js?:587:18 onError@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/socket.js?:558:14 Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20 onError@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/transport.js?:46:15 doPoll/<@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/transports/polling.js?:255:18 Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20 onError@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/transports/polling.js?:356:14 create/xhr.onreadystatechange/<@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/transports/polling.js?:329:30 Connection530$$connect@webpack://dcp/./src/protocol/connection.js?:647:30 Connection530$$hangupHandler@webpack://dcp/./src/protocol/connection.js?:2025:8 Connection530$$attach/<@webpack://dcp/./src/protocol/connection.js?:628:46 emit@webpack://dcp/./node_modules/events/events.js?:158:19 handleDisconnectEvent@webpack://dcp/./src/protocol/transports/socketio.js?:234:14 useSocket/<@webpack://dcp/./src/protocol/transports/socketio.js?:187:71 Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20 onclose@webpack://dcp/./node_modules/@kingsds/socket.io-client/build/cjs/socket.js?:316:14 Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20 onclose@webpack://dcp/./node_modules/@kingsds/socket.io-client/build/cjs/manager.js?:342:14 Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20 onClose@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/socket.js?:587:18 onError@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/socket.js?:558:14 Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20 onError@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/transport.js?:46:15 doPoll/<@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/transports/polling.js?:255:18 Emitter.prototype.emit@webpack://dcp/./node_modules/@socket.io/component-emitter/index.mjs?:140:20 onError@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/transports/polling.js?:356:14 create/xhr.onreadystatechange/<@webpack://dcp/./node_modules/@kingsds/engine.io-client/build/cjs/transports/polling.js?:329:30 sendPromiseRejectWrapper@webpack://dcp/./src/protocol/connection.js?:1154:32 DialogueRegistry$$clear@webpack://dcp/./src/protocol/dialogue-registry.js?:173:24 finalize@webpack://dcp/./src/protocol/connection.js?:502:29 Connection530$$shutdown/<@webpack://dcp/./src/protocol/connection.js?:471:9 Connection530$$a$enqueue@webpack://dcp/./src/protocol/connection.js?:1137:27 Connection530$$send@webpack://dcp/./src/protocol/connection.js?:1201:36 DcpMessage$$send@webpack://dcp/./src/protocol/dcp-message.js?:58:26 Connection530$$keepalive@webpack://dcp/./src/protocol/connection.js?:1244:18 keepAlive@webpack://dcp/./src/dcp-client/compute-groups/index.js?:65:36 addJobToGroups@webpack://dcp/./src/dcp-client/compute-groups/index.js?:458:17 joinComputeGroups@webpack://dcp/./src/dcp-client/job/index.js?:1260:47 exec@webpack://dcp/./src/dcp-client/job/index.js?:955:43 code: 'EASSERT', message: 'Assertion failure'

You can see a manifestation of https://github.com/Distributive-Network/PythonMonkey/issues/325 at the end there

Standalone code to reproduce the issue

No response

Relevant log output or backtrace

No response

Additional info if applicable

No response

What branch of PythonMonkey were you developing on? (If applicable)

No response

philippedistributive commented 5 months ago

See https://stackoverflow.com/a/70126496