{"action":"created","issue":{"url":"https://api.github.com/repos/pannal/Sub-Zero.bundle/issues/532","repository_url":"https://api.github.com/repos/pannal/Sub-Zero.bundle","labels_url":"https://api.github.com/repos/pannal/Sub-Zero.bundle/issues/532/labels{/name}","comments_url":"https://api.github.com/repos/pannal/Sub-Zero.bundle/issues/532/comments","events_url":"https://api.github.com/repos/pannal/Sub-Zero.bundle/issues/532/events","html_url":"https://github.com/pannal/Sub-Zero.bundle/issues/532","id":337928128,"node_id":"MDU6SXNzdWUzMzc5MjgxMjg=","number":532,"title":"OSError: [Errno 75] Value too large for defined data type","user":{"login":"hashtag-24","id":37346057,"node_id":"MDQ6VXNlcjM3MzQ2MDU3","avatar_url":"https://avatars0.githubusercontent.com/u/37346057?v=4","gravatar_id":"","url":"https://api.github.com/users/hashtag-24","html_url":"https://github.com/hashtag-24","followers_url":"https://api.github.com/users/hashtag-24/followers","following_url":"https://api.github.com/users/hashtag-24/following{/other_user}","gists_url":"https://api.github.com/users/hashtag-24/gists{/gist_id}","starred_url":"https://api.github.com/users/hashtag-24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashtag-24/subscriptions","organizations_url":"https://api.github.com/users/hashtag-24/orgs","repos_url":"https://api.github.com/users/hashtag-24/repos","events_url":"https://api.github.com/users/hashtag-24/events{/privacy}","received_events_url":"https://api.github.com/users/hashtag-24/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-03T14:37:06Z","updated_at":"2018-07-13T00:09:22Z","closed_at":null,"author_association":"NONE","body":"So, searches for subtitles always come up empty, whatever the settings used.\r\nI tried updating manually to 2.5.7.2663 but problem persists.\r\nWent on to check the logs and found the following error times and times again :\r\n\r\n```\r\n2018-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):\r\n  File \"/usr/lib/plexmediaserver/Resources/Plug-ins-fd05be322/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py\", line 1076, in _update\r\n    agent.update(obj, media, lang, **kwargs)\r\n  File \"/config/Library/Application Support/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Code/__init__.py\", line 221, in update\r\n    scanned_video_part_map = scan_videos(videos, providers=providers)\r\n  File \"/config/Library/Application Support/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Code/support/scanning.py\", line 120, in scan_videos\r\n    skip_hashing=skip_hashing)\r\n  File \"/config/Library/Application Support/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Code/support/scanning.py\", line 91, in scan_video\r\n    only_one=config.only_one)\r\n  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\r\n    only_one=only_one).values())\r\n  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\r\n    only_one=only_one))\r\n  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\r\n    for entry in scandir(dirpath):\r\n  File \"/config/Library/Application Support/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Libraries/Shared/scandir.py\", line 553, in scandir_python\r\n    raise posix_error(path)\r\nOSError: [Errno 75] Value too large for defined data type: u'/data/tvshows/My Show/Season 1'\r\n```\r\n\r\nscandir.py shows : \r\n\r\n```\r\n440.          readdir_r = libc.readdir_r\r\n...\r\n...\r\n552.          if readdir_r(dir_p, entry, result):\r\n553.                     raise posix_error(path)\r\n```\r\n\r\nI should probably add that :\r\n- plex is running in a docker container (image from lsioarmhf/plex)\r\n- physical host is an ODROID XU4 (armv7l) running Arch linux\r\n\r\nI 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 :)\r\n"},"comment":{"url":"https://api.github.com/repos/pannal/Sub-Zero.bundle/issues/comments/404687528","html_url":"https://github.com/pannal/Sub-Zero.bundle/issues/532#issuecomment-404687528","issue_url":"https://api.github.com/repos/pannal/Sub-Zero.bundle/issues/532","id":404687528,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDY4NzUyOA==","user":{"login":"pannal","id":1359593,"node_id":"MDQ6VXNlcjEzNTk1OTM=","avatar_url":"https://avatars3.githubusercontent.com/u/1359593?v=4","gravatar_id":"","url":"https://api.github.com/users/pannal","html_url":"https://github.com/pannal","followers_url":"https://api.github.com/users/pannal/followers","following_url":"https://api.github.com/users/pannal/following{/other_user}","gists_url":"https://api.github.com/users/pannal/gists{/gist_id}","starred_url":"https://api.github.com/users/pannal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pannal/subscriptions","organizations_url":"https://api.github.com/users/pannal/orgs","repos_url":"https://api.github.com/users/pannal/repos","events_url":"https://api.github.com/users/pannal/events{/privacy}","received_events_url":"https://api.github.com/users/pannal/received_events","type":"User","site_admin":false},"created_at":"2018-07-13T00:09:22Z","updated_at":"2018-07-13T00:09:22Z","author_association":"OWNER","body":"Can you try the current develop branch? I've added fallbacks for scandir errors there."}}
{"actor":{"display_login":"pannal"}}