Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[KODI-19] RecursionError: maximum recursion depth exceeded #26

Closed
mxraw opened this issue Jan 21, 2021 · 7 comments
Closed

[KODI-19] RecursionError: maximum recursion depth exceeded #26

mxraw opened this issue Jan 21, 2021 · 7 comments

Comments

@mxraw
Copy link

mxraw commented Jan 21, 2021

Playing any video fails with

2021-01-21 19:43:50.025 T:1862    ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'RecursionError'>
                                                   Error Contents: maximum recursion depth exceeded
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.bitchute/main.py", line 4, in <module>
                                                       kodi_bitchute.plugin.run()
                                                     File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 130,
in run
                                                       self._dispatch(self.path)
                                                     File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 141,
in _dispatch
                                                       view_func(**kwargs)
                                                     File "/storage/.kodi/addons/plugin.video.bitchute/kodi_bitchute.py", line 67, in play_now
                                                       play_video(item_val)
                                                     File "/storage/.kodi/addons/plugin.video.bitchute/kodi_bitchute.py", line 291, in play_video
                                                       v = bitchute_access.get_video(video_id)
                                                     File "/storage/.kodi/addons/plugin.video.bitchute/bitchute_access.py", line 570, in get_video
                                                       return pickle.loads(data_cache.cacheFunction(_get_video, cookies, video_id))
                                                     File "/storage/.kodi/addons/script.common.plugin.cache/resources/lib/storage_server/StorageServer.py", line 623, in cacheFunction
                                                       ret_val = funct(*args)
                                                     File "/storage/.kodi/addons/plugin.video.bitchute/bitchute_access.py", line 449, in _get_video
                                                       return (pickle.dumps(video))
                                                   RecursionError: maximum recursion depth exceeded
                                                   -->End of Python script error report<--
@winsomehax
Copy link
Owner

winsomehax commented Jan 21, 2021 via email

@winsomehax
Copy link
Owner

KODI19 has been updated. Can you download it and give it a try.

@mxraw
Copy link
Author

mxraw commented Jan 22, 2021

Doesn't seem to change a thing, still throws the error above when trying to play a video.

@winsomehax
Copy link
Owner

Very strange. Python 3 fails on that 'pickle' call. Anyway... I've pushed a change to KODI 19. Can you try it and let me know if it works without and error now.

If it does I will synchronise with it the testing branch

@winsomehax
Copy link
Owner

BTW a quick tip with this... the Bitchute login is cached for 24 hours, and any data from bitchute is cached for 15 minutes. If you use a new version it's a good idea to wait 15 minutes before you test... as you can get strange errors otherwise and KODI's front-end architecture is really hard work to deal with.

To be honest, I'm building up a real dislike for Kodi. I'm sure the low-level stuff is great, but the user-interface and add-on stuff is hot garbage with an atrocious workflow (rant over!)

@winsomehax
Copy link
Owner

Can you give this a try now. It's to do with Python 3, unicode and pickle. I think it's sorted now and in a way that works pre and post KODI 19

@mxraw
Copy link
Author

mxraw commented Feb 5, 2021

Sorry for the delay. Playing videos works now. Thanks!

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

No branches or pull requests

2 participants