phil65 / plugin.program.autocompletion

Plugin to provide autocompletion for the virtual keyboard (needs skin support)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Options not populating in keyboard.

jmurph116 opened this issue · comments

Using the latest RC3 nightly build on my Xiaomi MI Box and noticing on multiple skins that when I go to select a suggested auto complete that it won't populate in my keyboard. So for instance if I start typing "how I met" and click "how I met your mother" nothing happens. Sometimes it will work, other times it won't even when I do multiple short and long presses.

Exact steps to reproduce? Which skin? Debug log?

I have the same issue on Kodi Krypton RC version on multiple skins including Estuary. However the problem only occurs for me on Android not Windows. If I repeatedly press the Select key on Android it will sometimes transfer the selected text to the keyboard (maybe after 20 attempts). Below is what I see in the log on Android when it fails.

12:21:01.290 T:18446744072360848272 DEBUG: OnKey: return (0xf00d) pressed, trying keyboard action 7 12:21:01.309 T:18446744072360848272 DEBUG: StartScript - calling plugin AutoCompletion for virtual keyboard('plugin://plugin.program.autocompletion/','226','?info=selectautocomplete&&id=the fast and the furious') 12:21:01.309 T:18446744071917353872 DEBUG: Thread LanguageInvoker start, auto delete: false 12:21:01.309 T:18446744071917353872 INFO: initializing python engine. 12:21:01.310 T:18446744071917353872 DEBUG: CPythonInvoker(354, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.program.autocompletion/plugin.py): start processing 12:21:01.330 T:18446744071916313488 DEBUG: Thread scriptobs start, auto delete: false 12:21:01.351 T:18446744071917353872 DEBUG: -->Python Interpreter Initialized<-- 12:21:01.351 T:18446744071917353872 DEBUG: CPythonInvoker(354, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.program.autocompletion/plugin.py): the source file to load is "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.program.autocompletion/plugin.py" 12:21:01.354 T:18446744071917353872 DEBUG: CPythonInvoker(354, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.program.autocompletion/plugin.py): setting the Python path to /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.program.autocompletion:/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.autocompletion/lib:/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.simplejson/lib:/:/data/app/org.xbmc.kodi-1/base.apk/assets/python2.7/lib/python27.zip:/data/app/org.xbmc.kodi-1/base.apk/assets/python2.7/lib/python2.7:/data/app/org.xbmc.kodi-1/base.apk/assets/python2.7/lib/python2.7/plat-linux2:/data/app/org.xbmc.kodi-1/base.apk/assets/python2.7/lib/python2.7/lib-tk:/data/app/org.xbmc.kodi-1/base.apk/assets/python2.7/lib/python2.7/lib-old:/data/app/org.xbmc.kodi-1/base.apk/assets/python2.7/lib/python2.7/lib-dynload 12:21:01.354 T:18446744071917353872 DEBUG: CPythonInvoker(354, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.program.autocompletion/plugin.py): entering source directory /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.program.autocompletion 12:21:01.354 T:18446744071917353872 DEBUG: CPythonInvoker(354, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.program.autocompletion/plugin.py): instantiating addon using automatically obtained id of "plugin.program.autocompletion" dependent on version 2.24.0 of the xbmc.python api 12:21:01.531 T:18446744072360848272 DEBUG: ------ Window Init (DialogBusy.xml) ------ 12:21:01.598 T:18446744071917353872 DEBUG: version 1.0.1 started 12:21:01.599 T:18446744071917353872 DEBUG: finished 12:21:01.600 T:18446744071917353872 INFO: CPythonInvoker(354, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.program.autocompletion/plugin.py): script successfully run 12:21:01.602 T:18446744072360848272 DEBUG: ------ Window Deinit (DialogBusy.xml) ------ 12:21:01.603 T:18446744071916313488 DEBUG: Thread scriptobs 18446744071916313488 terminating 12:21:01.604 T:18446744072360848272 ERROR: PlayMedia could not play media: plugin://plugin.program.autocompletion/?info=selectautocomplete&&id=the fast and the furious 12:21:01.605 T:18446744072360848272 DEBUG: Keyboard: scancode: 0x17, sym: 0x000d, unicode: 0x0000, modifier: 0x0 12:21:01.865 T:18446744071917353872 INFO: Python script stopped 12:21:01.865 T:18446744071917353872 DEBUG: Thread LanguageInvoker 18446744071917353872 terminating 12:21:03.232 T:18446744072360848272 DEBUG: Keyboard: scancode: 0x17, sym: 0x000d, unicode: 0x0000, modifier: 0x0

Any update?

I also am having the same trouble. When you type in a item to begin searching, it will bring up suggestions, but it will take many clicks on the suggestion to get it to accept the copy. Running on android 5.1 2GB/8GB boxes. Tested in Estuary skin. When I first tried using turning on debug logging in Etsuary skin to debug, autocompletion addon would not attempt to work at all. Exited kodi, re-entered a couple time and it appeared finally, but still takes numerous clicks to get it to transfer suggestions. Also tried in MQ7 mod skin with same results.

Attaching debug log

kodi.txt

Any update on this? I am having the same issue on amazon firestick, kodi 17, mimic skin.

Any update on this?I am having the same issue on amazon firestick, kodi 17.

Awesome! Thank you! Works for me. I haven't tested extensively, but I will update if I find any issues.

Thank you random4sk for posting, works great for me as well.

@randomt4sk what other enhancements have you made?

I just want to add this, I have since added Nvidea Shields and they work fine, still issues with certian android boxes though

Hi, any update on this? I'm having the same issue on Chromecast with Google TV.