plugin.video.youtube
plugin.video.youtube copied to clipboard
Rapidly playing Youtube videos results in crash
Use a remote like Kore or Yatse to play a Youtube video. While the blue spinner is still displayed in Kodi, use the remote to tell another video to play. Kodi will then crash.
Crash log (including debug log): https://paste.kodi.tv/leqexikeho.kodi
I initially reported this issue to Kodi at https://github.com/xbmc/xbmc/issues/15688
However, I think this may actually be the result of a bug in the YouTube plugin. I came across https://github.com/xbmc/xbmc/issues/16491 which says:
Both will end up accessing the xbmc.Player().play() which causes weird stuff to happen. What you should do is generate a playlist (as you do). Then call the xbmcplugin.setResolvedUrl method and pass the correct and already resolved item of the first item in the playlist.
- https://github.com/xbmc/xbmc/issues/16491#issuecomment-521694919
and
or reference; using player.play() in a plugin is contract breakage and is not supposed to work. you are implementing a file system entry with an expected behavior, not a generic script.
- https://github.com/xbmc/xbmc/issues/16491#issuecomment-521985673
Perhaps the instances of Player().play
at https://github.com/jdf76/plugin.video.youtube/blob/4548c9414839dc56da772b65ff0e5b45ffa56220/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_player.py#L41 should be changed?
I'm aware of the crash but haven't found a way add-on side to resolve it, and pretty sure it's reproducible with other add-ons as well.
btw https://github.com/jdf76/plugin.video.youtube/blob/4548c9414839dc56da772b65ff0e5b45ffa56220/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_player.py#L41-L43 is part of a comment, xbmc.Player().play()
shouldn't be in use anywhere
Will take another look in the next few days as I get a chance. 👍
We're also experiencing this issue. On our free days, we have Kodi running in the background most of the time and YouTube crashing on us a couple times a day. Is there any news on this?