Skip to content

Stuck on loading spinner, socket.timeout #1142

@J-Man775

Description

@J-Man775

Expected Behavior

Searching show/movies and torrents works as normal.

Current Behavior

Very often Elementum is stuck on loading a long time before timing out, making it hard to use the addon.

Possible Solution

Steps to Reproduce (for bugs)

  1. Use burst and enable a bunch of trackers.
  2. Find a show/movie.
  3. Press (movie/episode) to let it search torrents, close the list
  4. Repeat step 3 until it essentially gets stuck on the loading spinner (should happen quite fast)

Context

It often does this, needing to restart kodi for it to fix itself, doing this 4 times in a row gets annoying.

Your Environment

  • Version used: 0.1.11 & master branch
  • Environment name and version: 21.2 (Omega), Windows and Linux (LibreELEC)
  • Operating System and version: Tested on Windows 10 & LibreELEC
  • Link to Kodi debug log: (win10)
2025-06-16 21:43:24.978 T:18260   error <general>: Traceback (most recent call last):
                                                   
2025-06-16 21:43:24.978 T:18260   error <general>: 
2025-06-16 21:43:24.978 T:18260   error <general>:   File "C:\Users\-\AppData\Roaming\Kodi\addons\plugin.video.elementum\resources\site-packages\elementum\navigation.py", line 369, in run
                                                       data = _json(url)
                                                   
2025-06-16 21:43:24.978 T:18260   error <general>: 
2025-06-16 21:43:24.978 T:18260   error <general>:   File "C:\Users\-\AppData\Roaming\Kodi\addons\plugin.video.elementum\resources\site-packages\elementum\navigation.py", line 194, in _json
                                                       with closing(urllib_request.urlopen(url)) as response:
                                                   
2025-06-16 21:43:24.978 T:18260   error <general>: 
2025-06-16 21:43:24.978 T:18260   error <general>:   File "C:\Program Files\Kodi\system\python\Lib\urllib\request.py", line 222, in urlopen
                                                       return opener.open(url, data, timeout)
                                                   
2025-06-16 21:43:24.978 T:18260   error <general>: 
2025-06-16 21:43:24.978 T:18260   error <general>:   File "C:\Program Files\Kodi\system\python\Lib\urllib\request.py", line 525, in open
                                                       response = self._open(req, data)
                                                   
2025-06-16 21:43:24.978 T:18260   error <general>: 
2025-06-16 21:43:24.978 T:18260   error <general>:   File "C:\Program Files\Kodi\system\python\Lib\urllib\request.py", line 542, in _open
                                                       result = self._call_chain(self.handle_open, protocol, protocol +
                                                   
2025-06-16 21:43:24.978 T:18260   error <general>: 
2025-06-16 21:43:24.978 T:18260   error <general>:   File "C:\Program Files\Kodi\system\python\Lib\urllib\request.py", line 502, in _call_chain
                                                       result = func(*args)
                                                   
2025-06-16 21:43:24.978 T:18260   error <general>: 
2025-06-16 21:43:24.978 T:18260   error <general>:   File "C:\Program Files\Kodi\system\python\Lib\urllib\request.py", line 1383, in http_open
                                                       return self.do_open(http.client.HTTPConnection, req)
                                                   
2025-06-16 21:43:24.978 T:18260   error <general>: 
2025-06-16 21:43:24.978 T:18260   error <general>:   File "C:\Program Files\Kodi\system\python\Lib\urllib\request.py", line 1358, in do_open
                                                       r = h.getresponse()
                                                   
2025-06-16 21:43:24.978 T:18260   error <general>: 
2025-06-16 21:43:24.978 T:18260   error <general>:   File "C:\Program Files\Kodi\system\python\Lib\http\client.py", line 1348, in getresponse
                                                       response.begin()
                                                   
2025-06-16 21:43:24.978 T:18260   error <general>: 
2025-06-16 21:43:24.978 T:18260   error <general>:   File "C:\Program Files\Kodi\system\python\Lib\http\client.py", line 316, in begin
                                                       version, status, reason = self._read_status()
                                                   
2025-06-16 21:43:24.978 T:18260   error <general>: 
2025-06-16 21:43:24.978 T:18260   error <general>:   File "C:\Program Files\Kodi\system\python\Lib\http\client.py", line 277, in _read_status
                                                       line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
                                                   
2025-06-16 21:43:24.978 T:18260   error <general>: 
2025-06-16 21:43:24.978 T:18260   error <general>:   File "C:\Program Files\Kodi\system\python\Lib\socket.py", line 669, in readinto
                                                       return self._sock.recv_into(b)
                                                   
2025-06-16 21:43:24.978 T:18260   error <general>: 
2025-06-16 21:43:24.978 T:18260   error <general>: socket.timeout: timed out
                                                   
2025-06-16 21:43:24.978 T:18260   error <general>: 
2025-06-16 21:43:24.978 T:18260   debug <general>: [plugin.video.elementum] None
2025-06-16 21:43:24.978 T:18260   debug <general>: CPythonInvoker(12, C:\Users\-\AppData\Roaming\Kodi\addons\plugin.video.elementum\navigation.py): script successfully run
2025-06-16 21:43:24.978 T:18260   debug <general>: CPythonInvoker::onExecutionDone(12, C:\Users\-\AppData\Roaming\Kodi\addons\plugin.video.elementum\navigation.py)

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