anxdpanic / plugin.video.youtube

Watch your favorite YouTube content on Kodi
https://ytaddon.panicked.xyz/forum
700 stars 113 forks source link

Youtube addon 7.0 crashes on search using Libreelec 11 x86 legacy build using personal api key. #431

Closed pewkodi closed 7 months ago

pewkodi commented 1 year ago

Context

Please provide any relevant information about your setup

023-03-11 09:46:39.734 T:4635 info : Starting Kodi (20.0 (20.0.0) Git:20.0-Nexus). Platform: Linux x86 64-bit 2023-03-11 09:46:39.734 T:4635 info : Using Release Kodi x64 2023-03-11 09:46:39.735 T:4635 info : Kodi compiled 2023-02-28 by GCC 12.2.0 for Linux x86 64-bit version 6.1.14 (393486) 2023-03-11 09:46:39.735 T:4635 info : Running on LibreELEC (official): 11.0.0, kernel: Linux x86 64-bit version 6.1.14 2023-03-11 09:46:39.735 T:4635 info : FFmpeg version/source: 4.4.1-Kodi


Expected Behavior

Open Youtube addon search for video with a keyword and sees the list and select video.


Current Behavior

What is the current behavior?

YouTube (7.0.0) on N***** (Kodi-20.0) with Python 3.11.2

Youtube 7.0 add is crashing kodi after a search is entered and performed.


2023-03-11 09:46:08.644 T:4588 debug : [plugin.video.youtube] Found cached data for videos |df9YIgbohww, -tl-Y5WXOV4, bm0ShVjk2Bg, Si5auXCYWDI, Dn5IJzWa6nc, rzl0DVNQx3I, Cu8EiqyM6Rk, WUYWMLpvTEo, 2v8ikXVfJLI, xjg_0furrSU| 2023-03-11 09:46:08.659 T:4588 debug : [plugin.video.youtube] Found cached data for channels |UCu59yAFE8fM0sVNTipR4edw| 2023-03-11 09:46:08.661 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=df9YIgbohww| 2023-03-11 09:46:08.661 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=-tl-Y5WXOV4| 2023-03-11 09:46:08.662 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=bm0ShVjk2Bg| 2023-03-11 09:46:08.663 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=Si5auXCYWDI| 2023-03-11 09:46:08.664 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=Dn5IJzWa6nc| 2023-03-11 09:46:08.665 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=rzl0DVNQx3I| 2023-03-11 09:46:08.665 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=Cu8EiqyM6Rk| 2023-03-11 09:46:08.666 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=WUYWMLpvTEo| 2023-03-11 09:46:08.667 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=2v8ikXVfJLI| 2023-03-11 09:46:08.668 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=xjg_0furrSU| 2023-03-11 09:46:08.669 T:4588 debug : [plugin.video.youtube] Shutdown of Kodion after |0.7323| seconds 2023-03-11 09:46:08.669 T:4588 debug : CPythonInvoker(31, /storage/.kodi/addons/plugin.video.youtube/resources/lib/default.py): script successfully run 2023-03-11 09:46:08.670 T:4590 debug : Thread waiting 140308612355776 terminating 2023-03-11 09:46:08.691 T:4417 debug : ------ Window Deinit (DialogBusy.xml) ------ 2023-03-11 09:46:08.696 T:4591 debug : Thread BackgroundLoader start, auto delete: false 2023-03-11 09:46:08.700 T:4417 debug : [Warning] CGUITextureManager::GetTexturePath: could not find texture 'OverlayUnwatched.png' 2023-03-11 09:46:08.704 T:4591 info : Skipped 8 duplicate messages.. 2023-03-11 09:46:08.704 T:4591 debug : Thread BackgroundLoader 140306297116352 terminating 2023-03-11 09:46:08.704 T:4417 debug : [Warning] CGUITextureManager::GetTexturePath: could not find texture 'OverlayUnwatched.png'

############### END LOG FILE ################

############ END kodi CRASH LOG #############

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Setup Personal API key
  2. Search for a video using a keyword
  3. Perform the search

Log

Please include a complete debug log.

023-03-11 09:45:57.517 T:4587 debug : CScriptRunner: running add-on script YouTube('plugin://plugin.video.youtube/kodion/search/list/', '4', '') 2023-03-11 09:45:57.518 T:4588 debug : Thread LanguageInvoker start, auto delete: false 2023-03-11 09:45:57.518 T:4588 debug : initializing python engine. 2023-03-11 09:45:57.518 T:4588 debug : CPythonInvoker(31, /storage/.kodi/addons/plugin.video.youtube/resources/lib/default.py): start processing 2023-03-11 09:45:57.535 T:4588 debug : -->Python Interpreter Initialized<-- 2023-03-11 09:45:57.535 T:4588 debug :

2023-03-11 09:45:57.535 T:4588 debug : CPythonInvoker(31, /storage/.kodi/addons/plugin.video.youtube/resources/lib/default.py): the source file to load is "/storage/.kodi/addons/plugin.video.youtube/resources/lib/default.py" 2023-03-11 09:45:57.535 T:4588 debug : CPythonInvoker(31): default python path: 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31): /usr/lib/python311.zip 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31): /usr/lib/python3.11 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31): /usr/lib/python3.11/lib-dynload 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31): /usr/lib/python3.11/site-packages 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31): adding path: 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31): /storage/.kodi/addons/plugin.video.youtube/resources/lib 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31): /storage/.kodi/addons/script.module.certifi/lib 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31): /storage/.kodi/addons/script.module.chardet/lib 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31): /storage/.kodi/addons/script.module.idna/lib 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31): /storage/.kodi/addons/script.module.infotagger/resources/modules 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31): /storage/.kodi/addons/script.module.inputstreamhelper/lib 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31): /storage/.kodi/addons/script.module.requests/lib 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31): /storage/.kodi/addons/script.module.urllib3/lib 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31): adding args: 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31): plugin://plugin.video.youtube/kodion/search/list/ 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31): 4 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31):
2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31): resume:false 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31, /storage/.kodi/addons/plugin.video.youtube/resources/lib/default.py): entering source directory /storage/.kodi/addons/plugin.video.youtube/resources/lib 2023-03-11 09:45:57.536 T:4588 debug : CPythonInvoker(31, /storage/.kodi/addons/plugin.video.youtube/resources/lib/default.py): instantiating addon using automatically obtained id of "plugin.video.youtube" dependent on version 3.0.1 of the xbmc.python api 2023-03-11 09:45:57.602 T:4417 debug : ------ Window Init (DialogBusy.xml) ------ 2023-03-11 09:45:57.705 T:4417 debug : CGLContextEGL::SwapBuffers: sync check blocking 2023-03-11 09:45:57.720 T:4417 debug : CGLContextEGL::SwapBuffers: sync sleep: 14511 2023-03-11 09:45:57.788 T:4586 info : SEREN (-1): No Premiumize transfers have been created 2023-03-11 09:45:57.793 T:4586 debug : SEREN: Processing Time - 1766ms - runMaintenance 2023-03-11 09:45:57.793 T:4586 debug :

2023-03-11 09:45:57.793 T:4586 debug : CPythonInvoker(30, /storage/.kodi/addons/plugin.video.seren/seren.py): script successfully run 2023-03-11 09:45:57.793 T:4586 debug : onExecutionDone(30, /storage/.kodi/addons/plugin.video.seren/seren.py) 2023-03-11 09:45:57.816 T:4586 debug : . 2023-03-11 09:45:57.901 T:4586 debug : Python interpreter stopped 2023-03-11 09:45:57.901 T:4586 debug : Thread LanguageInvoker 140306305509056 terminating 2023-03-11 09:45:58.088 T:4588 debug : [plugin.video.youtube] send_notification: |check_settings| -> |{"use_httpd": false, "httpd_port": 50152, "whitelist": "", "httpd_address": "0.0.0.0"}| 2023-03-11 09:45:58.089 T:4588 debug : [plugin.video.youtube] JSONStore Load |b'/storage/.kodi/userdata/addon_data/plugin.video.youtube/api_keys.json'| 2023-03-11 09:45:58.090 T:4588 debug : [plugin.video.youtube] JSONStore Load |b'/storage/.kodi/userdata/addon_data/plugin.video.youtube/access_manager.json'| 2023-03-11 09:45:58.091 T:4588 debug : [plugin.video.youtube] User: |0| Using API key set: |own| 2023-03-11 09:45:58.100 T:4588 debug : [plugin.video.youtube] Starting Kodion framework by bromix... 2023-03-11 09:45:58.100 T:4588 info : [plugin.video.youtube] Running: YouTube (7.0.0) on N (Kodi-20.0) with Python 3.11.2 Path: /kodion/search/list/ Params: {} 2023-03-11 09:45:58.106 T:4588 debug : [plugin.video.youtube] Setting content-type: "files" for "/kodion/search/list/" 2023-03-11 09:45:58.107 T:4451 debug : [plugin.video.youtube] onNotification: |check_settings| -> |{"use_httpd": false, "httpd_port": 50152, "whitelist": "", "httpd_address": "0.0.0.0"}| 2023-03-11 09:45:58.111 T:4588 debug : [plugin.video.youtube] Shutdown of Kodion after |0.011| seconds 2023-03-11 09:45:58.111 T:4588 debug : CPythonInvoker(31, /storage/.kodi/addons/plugin.video.youtube/resources/lib/default.py): script successfully run 2023-03-11 09:45:58.111 T:4587 debug : Thread waiting 140308612355776 terminating 2023-03-11 09:45:58.122 T:4417 debug : ------ Window Deinit (DialogBusy.xml) ------ 2023-03-11 09:45:58.124 T:4589 debug : Thread BackgroundLoader start, auto delete: false 2023-03-11 09:45:58.127 T:4417 debug : [Warning] CGUITextureManager::GetTexturePath: could not find texture 'OverlayUnwatched.png' 2023-03-11 09:45:58.128 T:4589 info : Skipped 1 duplicate messages.. 2023-03-11 09:45:58.128 T:4589 debug : Thread BackgroundLoader 140306297116352 terminating 2023-03-11 09:45:59.224 T:4417 debug : CGLContextEGL::SwapBuffers: sync check blocking 2023-03-11 09:45:59.237 T:4417 debug : CGLContextEGL::SwapBuffers: sync sleep: 12782 2023-03-11 09:45:59.968 T:4417 debug : Keyboard: scancode: 0x74, sym: 0x112, unicode: 0x00, modifier: 0x0 2023-03-11 09:45:59.968 T:4417 debug : HandleKey: down (0xf081) pressed, window 10025, action is Down 2023-03-11 09:45:59.972 T:4417 debug : [Warning] CGUITextureManager::GetTexturePath: could not find texture 'OverlayUnwatched.png' 2023-03-11 09:46:00.075 T:4417 debug : Keyboard: scancode: 0x74, sym: 0x112, unicode: 0x00, modifier: 0x0 2023-03-11 09:46:00.158 T:4417 info : Skipped 1 duplicate messages.. 2023-03-11 09:46:00.158 T:4417 debug : HandleKey: down (0xf081) pressed, window 10025, action is Down 2023-03-11 09:46:00.159 T:4417 debug : [Warning] CGUITextureManager::GetTexturePath: could not find texture 'OverlayUnwatched.png' 2023-03-11 09:46:00.258 T:4417 debug : Keyboard: scancode: 0x74, sym: 0x112, unicode: 0x00, modifier: 0x0 2023-03-11 09:46:05.651 T:4417 debug : CGLContextEGL::SwapBuffers: sync check blocking 2023-03-11 09:46:05.655 T:4417 debug : CGLContextEGL::SwapBuffers: sync sleep: 3194 2023-03-11 09:46:07.736 T:4417 debug : Keyboard: scancode: 0x24, sym: 0x0d, unicode: 0x0d, modifier: 0x0 2023-03-11 09:46:07.918 T:4417 debug : Keyboard: scancode: 0x24, sym: 0x0d, unicode: 0x00, modifier: 0x0 2023-03-11 09:46:07.918 T:4417 debug : HandleKey: return (0xf00d) pressed, window 10025, action is Select 2023-03-11 09:46:07.919 T:4417 debug : CGUIMediaWindow::GetDirectory (plugin://plugin.video.youtube/kodion/search/query/?q=masha) 2023-03-11 09:46:07.919 T:4417 debug : ParentPath = [plugin://plugin.video.youtube/kodion/search/list/] 2023-03-11 09:46:07.919 T:4590 debug : Thread waiting start, auto delete: false 2023-03-11 09:46:07.935 T:4584 debug : CAddonDatabase::SetLastUsed[plugin.video.youtube] took 15 ms 2023-03-11 09:46:07.935 T:4590 debug : CScriptRunner: running add-on script YouTube('plugin://plugin.video.youtube/kodion/search/query/', '4', '?q=masha') 2023-03-11 09:46:07.935 T:4590 debug : GetLanguageInvoker - Reusing LanguageInvokerThread 31 for script /storage/.kodi/addons/plugin.video.youtube/resources/lib/default.py 2023-03-11 09:46:07.935 T:4588 debug : initializing python engine. 2023-03-11 09:46:07.936 T:4588 debug : CPythonInvoker(31, /storage/.kodi/addons/plugin.video.youtube/resources/lib/default.py): start processing 2023-03-11 09:46:07.936 T:4588 debug : CPythonInvoker(31): adding args: 2023-03-11 09:46:07.936 T:4588 debug : CPythonInvoker(31): plugin://plugin.video.youtube/kodion/search/query/ 2023-03-11 09:46:07.936 T:4588 debug : CPythonInvoker(31): 4 2023-03-11 09:46:07.936 T:4588 debug : CPythonInvoker(31): ?q=masha 2023-03-11 09:46:07.936 T:4588 debug : CPythonInvoker(31): resume:false 2023-03-11 09:46:07.936 T:4588 debug : CPythonInvoker(31, /storage/.kodi/addons/plugin.video.youtube/resources/lib/default.py): entering source directory /storage/.kodi/addons/plugin.video.youtube/resources/lib 2023-03-11 09:46:07.936 T:4588 debug : CPythonInvoker(31, /storage/.kodi/addons/plugin.video.youtube/resources/lib/default.py): instantiating addon using automatically obtained id of "plugin.video.youtube" dependent on version 3.0.1 of the xbmc.python api 2023-03-11 09:46:07.937 T:4588 debug : [plugin.video.youtube] Starting Kodion framework by bromix... 2023-03-11 09:46:07.937 T:4588 info : [plugin.video.youtube] Running: YouTube (7.0.0) on N (Kodi-20.0) with Python 3.11.2 Path: /kodion/search/query/ Params: {'q': 'masha'} 2023-03-11 09:46:07.949 T:4588 debug : [plugin.video.youtube] Setting content-type: "videos" for "/kodion/search/query/" 2023-03-11 09:46:07.951 T:4588 debug : [plugin.video.youtube] JSONStore Load |b'/storage/.kodi/userdata/addon_data/plugin.video.youtube/access_manager.json'| 2023-03-11 09:46:07.951 T:4588 debug : [plugin.video.youtube] Selecting YouTube config "All" 2023-03-11 09:46:07.955 T:4588 debug : [plugin.video.youtube] User is not logged in 2023-03-11 09:46:07.956 T:4588 debug : [plugin.video.youtube] [data] v3 request: |GET| path: |search| params: |{'q': 'masha', 'part': 'snippet', 'regionCode': 'US', 'hl': 'en_US', 'relevanceLanguage': 'en_US', 'maxResults': '10', 'type': 'video', 'order': 'relevance', 'safeSearch': 'moderate'}| post_data: |None| 2023-03-11 09:46:08.020 T:4417 debug : ------ Window Init (DialogBusy.xml) ------ 2023-03-11 09:46:08.443 T:4417 debug : CGLContextEGL::SwapBuffers: sync check blocking 2023-03-11 09:46:08.455 T:4417 debug : CGLContextEGL::SwapBuffers: sync sleep: 12301 2023-03-11 09:46:08.603 T:4588 debug : [plugin.video.youtube] [data] v3 response: |200| headers: |{'Content-Type': 'application/json; charset=UTF-8', 'Vary': 'Origin, X-Origin, Referer', 'Content-Encoding': 'gzip', 'Date': 'Sat, 11 Mar 2023 14:46:08 GMT', 'Server': 'scaffolding on HTTPServer2', 'Cache-Control': 'private', 'X-XSS-Protection': '0', 'X-Frame-Options': 'SAMEORIGIN', 'X-Content-Type-Options': 'nosniff', 'Alt-Svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000', 'Transfer-Encoding': 'chunked'}| 2023-03-11 09:46:08.644 T:4588 debug : [plugin.video.youtube] Found cached data for videos |df9YIgbohww, -tl-Y5WXOV4, bm0ShVjk2Bg, Si5auXCYWDI, Dn5IJzWa6nc, rzl0DVNQx3I, Cu8EiqyM6Rk, WUYWMLpvTEo, 2v8ikXVfJLI, xjg_0furrSU| 2023-03-11 09:46:08.659 T:4588 debug : [plugin.video.youtube] Found cached data for channels |UCu59yAFE8fM0sVNTipR4edw| 2023-03-11 09:46:08.661 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=df9YIgbohww| 2023-03-11 09:46:08.661 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=-tl-Y5WXOV4| 2023-03-11 09:46:08.662 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=bm0ShVjk2Bg| 2023-03-11 09:46:08.663 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=Si5auXCYWDI| 2023-03-11 09:46:08.664 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=Dn5IJzWa6nc| 2023-03-11 09:46:08.665 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=rzl0DVNQx3I| 2023-03-11 09:46:08.665 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=Cu8EiqyM6Rk| 2023-03-11 09:46:08.666 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=WUYWMLpvTEo| 2023-03-11 09:46:08.667 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=2v8ikXVfJLI| 2023-03-11 09:46:08.668 T:4588 debug : [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=xjg_0furrSU| 2023-03-11 09:46:08.669 T:4588 debug : [plugin.video.youtube] Shutdown of Kodion after |0.7323| seconds 2023-03-11 09:46:08.669 T:4588 debug : CPythonInvoker(31, /storage/.kodi/addons/plugin.video.youtube/resources/lib/default.py): script successfully run 2023-03-11 09:46:08.670 T:4590 debug : Thread waiting 140308612355776 terminating 2023-03-11 09:46:08.691 T:4417 debug : ------ Window Deinit (DialogBusy.xml) ------ 2023-03-11 09:46:08.696 T:4591 debug : Thread BackgroundLoader start, auto delete: false 2023-03-11 09:46:08.700 T:4417 debug : [Warning] CGUITextureManager::GetTexturePath: could not find texture 'OverlayUnwatched.png' 2023-03-11 09:46:08.704 T:4591 info : Skipped 8 duplicate messages.. 2023-03-11 09:46:08.704 T:4591 debug : Thread BackgroundLoader 140306297116352 terminating 2023-03-11 09:46:08.704 T:4417 debug : [Warning] CGUITextureManager::GetTexturePath: could not find texture 'OverlayUnwatched.png'

############### END LOG FILE ################

############ END kodi CRASH LOG #############


Additional Information

Please provide any additional information that may be helpful.

This was a upgrade from libreelec 10.5 to 11 and not a fresh install. This is a Intel NUC x86 libreelec build. display is running at 1080p 60 Hz.

This was the legacy build with chrome browser add-on compatibilty.


pewkodi commented 1 year ago

I updated to the latest version and this still failed. I added the latest unofficial testing repo and installed the latest alpha version. The alpha version works.

https://github.com/anxdpanic/plugin.video.youtube/releases/download/7.x.x-dev/plugin.video.youtube-7.0.2.alpha1.zip

I am sure what changed.

filkint commented 1 year ago

I installed the alpha version via the link, subscriptions do not work.

Traace commented 1 year ago

For me Kodi doesn't crash, but the youtube plugins gives a error. Using latest stable version of youtube plugin and latest kodi nightly.