Skip to content

Reinstalling of Widevine cdm results in crash #587

@neunzehnachtneun

Description

@neunzehnachtneun

https://paste.libreelec.tv/immense-alpaca.log

Because of errors while playing netflix streams, I tried to update and reinstall widevine cdm, which results in crashes.

2025-04-11 10:20:47.937 T:1236    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'FileNotFoundError'>
                                                   Error Contents: [Errno 2] No such file or directory: '/storage/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup/15437.63.0.0'
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/script.module.inputstreamhelper/default.py", line 8, in <module>
                                                       run(sys.argv)
                                                     File "/storage/.kodi/addons/script.module.inputstreamhelper/lib/inputstreamhelper/api.py", line 15, in run
                                                       widevine_install(choose_version=params[2])
                                                     File "/storage/.kodi/addons/script.module.inputstreamhelper/lib/inputstreamhelper/api.py", line 48, in widevine_install
                                                       Helper('mpd', drm='widevine').install_widevine(choose_version=choose_version)
                                                     File "/storage/.kodi/addons/script.module.inputstreamhelper/lib/inputstreamhelper/__init__.py", line 39, in clean_before_after
                                                       result = func(self, *args, **kwargs)
                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/script.module.inputstreamhelper/lib/inputstreamhelper/__init__.py", line 242, in install_widevine
                                                       if self.install_and_finish(*result):
                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/script.module.inputstreamhelper/lib/inputstreamhelper/__init__.py", line 210, in install_and_finish
                                                       install_cdm_from_backup(version)
                                                     File "/storage/.kodi/addons/script.module.inputstreamhelper/lib/inputstreamhelper/widevine/widevine.py", line 32, in install_cdm_from_backup
                                                       remove_old_backups(backup_path())
                                                     File "/storage/.kodi/addons/script.module.inputstreamhelper/lib/inputstreamhelper/widevine/widevine.py", line 197, in remove_old_backups
                                                       remove_tree(os.path.join(bpath, remove_version))
                                                     File "/storage/.kodi/addons/script.module.inputstreamhelper/lib/inputstreamhelper/utils.py", line 360, in remove_tree
                                                       rmtree(compat_path(path))
                                                     File "/usr/lib/python3.11/shutil.py", line 742, in rmtree
                                                     File "/usr/lib/python3.11/shutil.py", line 740, in rmtree
                                                   FileNotFoundError: [Errno 2] No such file or directory: '/storage/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup/15437.63.0.0'
                                                   -->End of Python script error report<--
2025-04-11 10:27:13.137 T:1673    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'zipfile.BadZipFile'>
                                                   Error Contents: File is not a zip file
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/script.module.inputstreamhelper/default.py", line 8, in <module>
                                                       run(sys.argv)
                                                     File "/storage/.kodi/addons/script.module.inputstreamhelper/lib/inputstreamhelper/api.py", line 15, in run
                                                       widevine_install(choose_version=params[2])
                                                     File "/storage/.kodi/addons/script.module.inputstreamhelper/lib/inputstreamhelper/api.py", line 48, in widevine_install
                                                       Helper('mpd', drm='widevine').install_widevine(choose_version=choose_version)
                                                     File "/storage/.kodi/addons/script.module.inputstreamhelper/lib/inputstreamhelper/__init__.py", line 39, in clean_before_after
                                                       result = func(self, *args, **kwargs)
                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/script.module.inputstreamhelper/lib/inputstreamhelper/__init__.py", line 230, in install_widevine
                                                       if not widevine_eula():
                                                              ^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/script.module.inputstreamhelper/lib/inputstreamhelper/widevine/widevine.py", line 53, in widevine_eula
                                                       with ZipFile(compat_path(dl_path)) as archive:
                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/usr/lib/python3.11/zipfile.py", line 1312, in __init__
                                                     File "/usr/lib/python3.11/zipfile.py", line 1379, in _RealGetContents
                                                   zipfile.BadZipFile: File is not a zip file
                                                   -->End of Python script error report<--

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions