2018-03-04, 11:22
Hello,
I am occasionally get error from some addons that uses ctypes import.
generally the error is
I think the error comes from python itself, because it searches for _reset_cache and seems dont find it or raise an error there. Is that can be fixed?
I am occasionally get error from some addons that uses ctypes import.
generally the error is
python:EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.MemoryError'>
Traceback (most recent call last):
File "U:\Users\UserMgr0\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalState\addons\script.skin.helper.service\service.py", line 10, in <module>
from resources.lib.main_service import MainService
File "U:\Users\UserMgr0\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalState\addons\script.skin.helper.service\resources\lib\main_service.py", line 15, in <module>
from webservice import WebService
File "U:\Users\UserMgr0\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalState\addons\script.skin.helper.service\resources\lib\webservice.py", line 11, in <module>
import cherrypy
File "U:\Users\UserMgr0\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalState\addons\script.module.cherrypy\lib\cherrypy\__init__.py", line 76, in <module>
from cherrypy import _cprequest
File "U:\Users\UserMgr0\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalState\addons\script.module.cherrypy\lib\cherrypy\_cprequest.py", line 10, in <module>
from cherrypy import _cpreqbody, _cpconfig
File "U:\Users\UserMgr0\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalState\addons\script.module.cherrypy\lib\cherrypy\_cpreqbody.py", line 135, in <module>
import cheroot.server
File "U:\Users\UserMgr0\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalState\addons\script.module.cherrypy\lib\cheroot\server.py", line 1199, in <module>
from ctypes import windll, WinError
File "S:\Program Files\WindowsApps\XBMCFoundation.Kodi_17.9.110.70_x64__4n2hpmxwrvr6p\system\python\Lib\ctypes\__init__.py", line 552, in <module>
_reset_cache()
File "S:\Program Files\WindowsApps\XBMCFoundation.Kodi_17.9.110.70_x64__4n2hpmxwrvr6p\system\python\Lib\ctypes\__init__.py", line 276, in _reset_cache
CFUNCTYPE(c_int)(lambda: None)
MemoryError
I think the error comes from python itself, because it searches for _reset_cache and seems dont find it or raise an error there. Is that can be fixed?