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

DCP-client: Exception in callback JSFunctionProxy.timerJobWrapper and Spidermonkey uncaught exception: out of memory #324

Closed philippedistributive closed 6 months ago

philippedistributive commented 7 months ago

Issue type

Bug

How did you install PythonMonkey?

None

OS platform and distribution

No response

Python version (python --version)

No response

PythonMonkey version (pip show pythonmonkey)

latest main

Bug Description

If we leave the process/program open after launching job-launch.py successfully we eventually get this:

Exception in callback JSFunctionProxy.timerJobWrapper(<_UnixSelecto...e debug=False>, 323717, 0.06, 0) handle: <TimerHandle when=2439657.3498943453 JSFunctionProxy.timerJobWrapper(<_UnixSelecto...e debug=False>, 323717, 0.06, 0)> Traceback (most recent call last): File "/home/philippe/.pyenv/versions/3.11.7/lib/python3.11/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) pythonmonkey.SpiderMonkeyError: uncaught exception: out of memory

See also https://stackoverflow.com/questions/25903625/error-handling-out-of-memory-exception-in-browser for a start, there may be others

2 different people got this on their own workstations

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 7 months ago

no repro this morning

philippedistributive commented 7 months ago

saw it this morning

philippedistributive commented 6 months ago

program now exits on its own so error is invalidated