Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

OSError: [Errno 75] Value too large for defined data type #532

Closed
hashtag-24 opened this issue Jul 3, 2018 · 2 comments
Closed

OSError: [Errno 75] Value too large for defined data type #532

hashtag-24 opened this issue Jul 3, 2018 · 2 comments

Comments

@hashtag-24
Copy link

hashtag-24 commented Jul 3, 2018

So, searches for subtitles always come up empty, whatever the settings used.
I tried updating manually to 2.5.7.2663 but problem persists.
Went on to check the logs and found the following error times and times again :

2018-07-03 15:55:32,139 (-4f200b90) :  CRITICAL (agentkit:1078) - Exception in the update function of agent named 'Sub-Zero Subtitles (TV, 2.5.7.2663 DEV)', called with guid 'com.plexapp.agents.thetvdb://xxxxxx/1/14?lang=en' (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-fd05be322/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1076, in _update
    agent.update(obj, media, lang, **kwargs)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Code/__init__.py", line 221, in update
    scanned_video_part_map = scan_videos(videos, providers=providers)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Code/support/scanning.py", line 120, in scan_videos
    skip_hashing=skip_hashing)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Code/support/scanning.py", line 91, in scan_video
    only_one=config.only_one)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Libraries/Shared/subzero/video.py", line 25, in set_existing_languages
    only_one=only_one).values())
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Libraries/Shared/subliminal_patch/core.py", line 630, in search_external_subtitles
    only_one=only_one))
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Libraries/Shared/subliminal_patch/core.py", line 558, in _search_external_subtitles
    for entry in scandir(dirpath):
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Libraries/Shared/scandir.py", line 553, in scandir_python
    raise posix_error(path)
OSError: [Errno 75] Value too large for defined data type: u'/data/tvshows/My Show/Season 1'

scandir.py shows :

440.          readdir_r = libc.readdir_r
...
...
552.          if readdir_r(dir_p, entry, result):
553.                     raise posix_error(path)

I should probably add that :

  • plex is running in a docker container (image from lsioarmhf/plex)
  • physical host is an ODROID XU4 (armv7l) running Arch linux

I am suspecting a different libc implementation from most systems, but if anyone is willing to give me a hand in patching this bit of code for it to work on my system I would be forever grateful :)

@pannal
Copy link
Owner

pannal commented Jul 13, 2018

Can you try the current develop branch? I've added fallbacks for scandir errors there.

@hashtag-24
Copy link
Author

Awesome, seems fixed :)
Thanks a lot!

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

No branches or pull requests

2 participants