Skip to content

[BUG] Unraid / ClickAndLoad / libmini_racer.so: Out of memory #70

@Staufahrer

Description

@Staufahrer

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Running :latest within Unraid.

Using the ClickAndLoad Addon to add new downloads to Pyload leads to an error message.

The out of memory message seems to be misleading, because the system sits at 4GB out of 32GB and even adding "--memory=2G" to PyLoad does not change anything. This affects atleast 2 different NAS / Docker / PyLoad installations in different houses.

[2025-08-23 19:54:38] DEBUG pyload ADDON ClickNLoad: Connection from 192.168.178.10:54650
Process Process-2:
Traceback (most recent call last):
File "/lsiopy/lib/python3.12/site-packages/pyload/core/utils/misc.py", line 33, in _run_js
File "/lsiopy/lib/python3.12/site-packages/py_mini_racer/_mini_racer.py", line 56, in init
dll = init_mini_racer(ignore_duplicate_init=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lsiopy/lib/python3.12/site-packages/py_mini_racer/_dll.py", line 273, in init_mini_racer
_dll_handle = _dll_handle_context_manager.enter()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/contextlib.py", line 137, in enter
File "/lsiopy/lib/python3.12/site-packages/py_mini_racer/_dll.py", line 241, in _open_dll
handle = _build_dll_handle(dll_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lsiopy/lib/python3.12/site-packages/py_mini_racer/_dll.py", line 40, in _build_dll_handle
handle = ctypes.CDLL(dll_path)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/ctypes/init.py", line 379, in init
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: Error loading shared library /lsiopy/lib/python3.12/site-packages/py_mini_racer/libmini_racer.so: Out of memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
File "/usr/lib/python3.12/multiprocessing/process.py", line 108, in run
File "/lsiopy/lib/python3.12/site-packages/pyload/core/utils/misc.py", line 40, in _run_js
File "/usr/lib/python3.12/multiprocessing/queues.py", line 94, in put
File "/usr/lib/python3.12/multiprocessing/queues.py", line 192, in _start_thread
File "/usr/lib/python3.12/threading.py", line 994, in start
RuntimeError: can't start new thread
running script in process with PID: 280

Expected Behavior

Download of ClickAndLoad content/files should be added to Queue and download should start.

Steps To Reproduce

  1. From a Windows client redirect the ClickAndLoad data to Pyload, a.e. with "netsh interface portproxy add v4tov4 listenport=9666 listenaddress=127.0.0.1 connectport=9666 connectaddress=YourPyLoadIPHere".

  2. In-PyLoad Logs will show the connection/transfer attempt:
    2025-08-23 19:54:38 DEBUG pyload ADDON ClickNLoad: Connection from YourClientIP:RandomPort

  3. Console will show the already mentioned "libmini_racer.so: Out of memory" error.

Environment

- OS: Unraid 7.1.4
- How docker service was installed: Unraid Apps

CPU architecture

x86-64

Docker creation

docker run
  -d
  --name='pyload-ng'
  --net='bridge'
  --pids-limit 2048
  -e TZ="Europe/Berlin"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="NAS"
  -e HOST_CONTAINERNAME="pyload-ng"
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'UMASK'='022'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:8000]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver-ls-logo.png'
  -p '8000:8000/tcp'
  -p '9666:9666/tcp'
  -v '/mnt/user/Media/Downloads_PyLoad/':'/downloads':'rw'
  -v '/mnt/cache/appdata/pyload-ng':'/config':'rw' 'lscr.io/linuxserver/pyload-ng:latest'

The command finished successfully!

Container logs

Linuxserver.io version: 0.5.0b3.dev92-ls189
Build-date: 2025-08-21T18:37:58+00:00
───────────────────────────────────────
    
[custom-init] No custom files found, skipping...
[2025-08-23 18:00:15]  INFO                pyload  *** Welcome to pyLoad 0.5.0 ***
[2025-08-23 18:00:15]  WARNING             pyload  Download folder was specified from the commandline
[2025-08-23 18:00:15]  DEBUG               pyload  Indexing plugins...
[2025-08-23 18:00:15]  INFO                pyload  Activated addons: ClickNLoad, ExternalScripts, ExtractArchive
[2025-08-23 18:00:15]  INFO                pyload  Deactivate addons: AndroidPhoneNotify, AntiCaptcha, AntiStandby, AntiVirus, AppriseNotify, BypassCaptcha, Captcha9Kw, Checksum, CloudFlareDdos, DeathByCaptcha, DeleteFinished, DiscordNotifier, DownloadScheduler, ExpertDecoders, HotFolder, IRC, ImageTyperz, JustPremium, LinkFilter, LogMarker, MergeFiles, MultiHome, PushBullet, PushOver, RestartFailed, SkipRev, TransmissionRPC, UpdateManager, WindowsPhoneNotify, XFileSharing, XMPP
[2025-08-23 18:00:16]  DEBUG               pyload  Starting core...
[2025-08-23 18:00:16]  DEBUG               pyload  Debug level: TRACE
[2025-08-23 18:00:16]  DEBUG               pyload  Setup language...
[2025-08-23 18:00:16]  DEBUG               pyload  Setup permissions...
[2025-08-23 18:00:16]  INFO                pyload  User directory: /config
[2025-08-23 18:00:16]  INFO                pyload  Cache directory: /tmp/pyLoad
[2025-08-23 18:00:16]  INFO                pyload  Storage directory: /downloads
[2025-08-23 18:00:16]  INFO                pyload  Storage free space: 1.98 TiB
[2025-08-23 18:00:16]  DEBUG               pyload  Setup network...
[2025-08-23 18:00:16]  INFO                pyload  Activating accounts...
[2025-08-23 18:00:18]  INFO                pyload  Activating plugins...
[2025-08-23 18:00:18]  DEBUG               pyload  ADDON ExternalScripts: No script found under folder `pyload_start`
[2025-08-23 18:00:18]  DEBUG               pyload  ADDON ExtractArchive: Found HjSplit 0.02 | Found UnRar 7.13 | Found SevenZip 24.09 | Found UnZip 3.12.11 | Found UnTar 3.12.11
[2025-08-23 18:00:18]  INFO          pyload.webui  Starting webserver: http://0.0.0.0:8000
[2025-08-23 18:00:18]  DEBUG               pyload  *** pyLoad is up and running ***
[ls.io-init] done.
[2025-08-23 18:00:21]  DEBUG               pyload  ADDON ClickNLoad: Backend found on http://127.0.0.1:8000
[2025-08-23 18:00:21]  INFO                pyload  ADDON ClickNLoad: Proxy listening on 0.0.0.0:9666
[2025-08-23 19:54:38]  DEBUG               pyload  ADDON ClickNLoad: Connection from 192.168.101.10:54650
Process Process-2:
Traceback (most recent call last):
  File "/lsiopy/lib/python3.12/site-packages/pyload/core/utils/misc.py", line 33, in _run_js
  File "/lsiopy/lib/python3.12/site-packages/py_mini_racer/_mini_racer.py", line 56, in __init__
    dll = init_mini_racer(ignore_duplicate_init=True)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lsiopy/lib/python3.12/site-packages/py_mini_racer/_dll.py", line 273, in init_mini_racer
    _dll_handle = _dll_handle_context_manager.__enter__()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/contextlib.py", line 137, in __enter__
  File "/lsiopy/lib/python3.12/site-packages/py_mini_racer/_dll.py", line 241, in _open_dll
    handle = _build_dll_handle(dll_path)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lsiopy/lib/python3.12/site-packages/py_mini_racer/_dll.py", line 40, in _build_dll_handle
    handle = ctypes.CDLL(dll_path)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/ctypes/__init__.py", line 379, in __init__
    self._handle = _dlopen(self._name, mode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: Error loading shared library /lsiopy/lib/python3.12/site-packages/py_mini_racer/libmini_racer.so: Out of memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
  File "/usr/lib/python3.12/multiprocessing/process.py", line 108, in run
  File "/lsiopy/lib/python3.12/site-packages/pyload/core/utils/misc.py", line 40, in _run_js
  File "/usr/lib/python3.12/multiprocessing/queues.py", line 94, in put
  File "/usr/lib/python3.12/multiprocessing/queues.py", line 192, in _start_thread
  File "/usr/lib/python3.12/threading.py", line 994, in start
RuntimeError: can't start new thread
running script in process with PID: 280

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions