2016-01-26, 05:21
Hi,
I'm getting the error "Attempt to use invalid handle -1" in my log file when using cetain parts of my plugin and am having a tough time working out why. I get the error when choosing a file contained within a folder or when invoking the search within the addon.
Snippet of the error when selecting a file:
When calling the plugin with the search option:
Plugin code:
Anyone have any ideas as to why I'm getting the error? Thanks in advance.
I'm getting the error "Attempt to use invalid handle -1" in my log file when using cetain parts of my plugin and am having a tough time working out why. I get the error when choosing a file contained within a folder or when invoking the search within the addon.
Snippet of the error when selecting a file:
Code:
14:07:38 T:12760 DEBUG: CInputManager::OnKey: return (0xf00d) pressed, action is Select
14:07:38 T:12760 DEBUG: XFILE::CPluginDirectory::RunScriptWithParams - calling plugin Hyper Launcher('plugin://plugin.hyper.launcher/','-1','?rom_path=C%3A%5Cemulation%5Croms%5CAtari+-+2600&launcher_script=C%3A%5CUsers%5Ctw%5CAppData%5CRoaming%5CKodi%5Cuserdata%5Caddon_data%5Cplugin.hyper.launcher%5Clauncher_scripts%5Crocketlauncher.bat&filename=3-D+Tic-Tac-Toe+%28USA%29&game_name=3-D+Tic-Tac-Toe+%28USA%29&foldername=Atari+2600&mode=file')
14:07:38 T:760 DEBUG: Thread LanguageInvoker start, auto delete: false
14:07:38 T:760 INFO: initializing python engine.
14:07:38 T:760 DEBUG: CPythonInvoker(9, C:\Users\tw\AppData\Roaming\Kodi\addons\plugin.hyper.launcher\default.py): start processing
14:07:38 T:760 DEBUG: -->Python Interpreter Initialized<--
14:07:38 T:760 DEBUG: CPythonInvoker(9, C:\Users\tw\AppData\Roaming\Kodi\addons\plugin.hyper.launcher\default.py): the source file to load is "C:\Users\tw\AppData\Roaming\Kodi\addons\plugin.hyper.launcher\default.py"
14:07:38 T:760 DEBUG: CPythonInvoker(9, C:\Users\tw\AppData\Roaming\Kodi\addons\plugin.hyper.launcher\default.py): setting the Python path to C:\Users\tw\AppData\Roaming\Kodi\addons\plugin.hyper.launcher;C:\Program Files (x86)\Kodi\system\python\DLLs;C:\Program Files (x86)\Kodi\system\python\Lib;C:\Program Files (x86)\Kodi\python27.zip;C:\Program Files (x86)\Kodi\system\python\lib\plat-win;C:\Program Files (x86)\Kodi\system\python\lib\lib-tk;C:\Program Files (x86)\Kodi;C:\Program Files (x86)\Kodi\system\python;C:\Program Files (x86)\Kodi\system\python\lib\site-packages
14:07:38 T:760 DEBUG: CPythonInvoker(9, C:\Users\tw\AppData\Roaming\Kodi\addons\plugin.hyper.launcher\default.py): entering source directory C:\Users\tw\AppData\Roaming\Kodi\addons\plugin.hyper.launcher
14:07:38 T:760 DEBUG: CPythonInvoker(9, C:\Users\tw\AppData\Roaming\Kodi\addons\plugin.hyper.launcher\default.py): instantiating addon using automatically obtained id of "plugin.hyper.launcher" dependent on version 2.1.0 of the xbmc.python api
14:07:38 T:760 WARNING: Attempt to use invalid handle -1
When calling the plugin with the search option:
Code:
14:18:48 T:13420 DEBUG: ------ Window Deinit (DialogContextMenu.xml) ------
14:18:48 T:13420 DEBUG: XFILE::CPluginDirectory::RunScriptWithParams - calling plugin Hyper Launcher('plugin://plugin.hyper.launcher/','-1','?mode=search&addon_handle=3')
14:18:48 T:4808 DEBUG: Thread LanguageInvoker start, auto delete: false
14:18:48 T:4808 INFO: initializing python engine.
14:18:48 T:4808 DEBUG: CPythonInvoker(9, C:\Users\tw\AppData\Roaming\Kodi\addons\plugin.hyper.launcher\default.py): start processing
14:18:48 T:4808 DEBUG: -->Python Interpreter Initialized<--
14:18:48 T:4808 DEBUG: CPythonInvoker(9, C:\Users\tw\AppData\Roaming\Kodi\addons\plugin.hyper.launcher\default.py): the source file to load is "C:\Users\tw\AppData\Roaming\Kodi\addons\plugin.hyper.launcher\default.py"
14:18:48 T:4808 DEBUG: CPythonInvoker(9, C:\Users\tw\AppData\Roaming\Kodi\addons\plugin.hyper.launcher\default.py): setting the Python path to C:\Users\tw\AppData\Roaming\Kodi\addons\plugin.hyper.launcher;C:\Program Files (x86)\Kodi\system\python\DLLs;C:\Program Files (x86)\Kodi\system\python\Lib;C:\Program Files (x86)\Kodi\python27.zip;C:\Program Files (x86)\Kodi\system\python\lib\plat-win;C:\Program Files (x86)\Kodi\system\python\lib\lib-tk;C:\Program Files (x86)\Kodi;C:\Program Files (x86)\Kodi\system\python;C:\Program Files (x86)\Kodi\system\python\lib\site-packages
14:18:48 T:4808 DEBUG: CPythonInvoker(9, C:\Users\tw\AppData\Roaming\Kodi\addons\plugin.hyper.launcher\default.py): entering source directory C:\Users\tw\AppData\Roaming\Kodi\addons\plugin.hyper.launcher
14:18:48 T:4808 DEBUG: CPythonInvoker(9, C:\Users\tw\AppData\Roaming\Kodi\addons\plugin.hyper.launcher\default.py): instantiating addon using automatically obtained id of "plugin.hyper.launcher" dependent on version 2.1.0 of the xbmc.python api
14:18:48 T:4808 WARNING: Attempt to use invalid handle -1
14:18:48 T:4808 DEBUG: aaasearch
Plugin code:
Code:
See post #2
Anyone have any ideas as to why I'm getting the error? Thanks in advance.