Greetings,
I am working on a few addons, and recently I am running into a very strange situation.
Most of these addons are loaded by keystrokes to save time.
So, I press F8 and my interface comes up. Then after a period of time ranging from instantly to multiple seconds I do not use the mouse or keyboard, and my add on closes.
Reviewing my added logs, it indicates that ACTION_PREVIOUS_MENU was caught, which is a close.
It’s not completely consistent, as sometimes it doesn’t happen at all., or while I am interacting with the interface.
Here’s an excerpt from my launching my addon with F8, and it instantly closing. Included kodi logs, and the logs from my own addon (HFXML)
11:15:03 T:139696020469824 DEBUG: ------ Window Init (/home/pi/.kodi/addons/script.program.handsfree/resources/skins/default/720p/handsfreefull.xml) ------
11:15:03 T:139696020469824 INFO: Loading skin file: /home/pi/.kodi/addons/script.program.handsfree/resources/skins/default/720p/handsfreefull.xml, load type: LOAD_ON_GUI_INIT
11:15:03 T:139696020469824 DEBUG: Load /home/pi/.kodi/addons/script.program.handsfree/resources/skins/default/720p/handsfreefull.xml: 34.04ms
11:15:03 T:139696020469824 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/ImageLib-x86_64-linux.so)
11:15:03 T:139696020469824 DEBUG: Loading: /opt/kodi/lib/kodi/system/ImageLib-x86_64-linux.so
11:15:03 T:139696020469824 DEBUG: Alloc resources: 54.81ms (34.18 ms skin load)
11:15:03 T:139696020469824 DEBUG: CGUIMediaWindow::GetDirectory ()
11:15:03 T:139696020469824 DEBUG: ParentPath = []
11:15:03 T:139694193145600 NOTICE: HFXML: Loading: 'connected_device', 'SAMSUNG-SM-G930V'
11:15:03 T:139694193145600 NOTICE: HFXML: BT connected device: SAMSUNG-SM-G930V
11:15:03 T:139696020469824 DEBUG: ProcessMouse: trying mouse action rightclick
11:15:03 T:139694193145600 NOTICE: HFXML: Main area
11:15:03 T:139696020469824 DEBUG: ProcessMouse: unknown mouse command 57361
11:15:04 T:139694193145600 NOTICE: HFXML: Loading: 'connected_device', 'SAMSUNG-SM-G930V'
11:15:04 T:139694193145600 NOTICE: HFXML: Connecting to DBUS...
11:15:04 T:139694193145600 NOTICE: HFXML: Connected to DBUS...
11:15:04 T:139694193145600 NOTICE: HFXML: Connected with Ofono via DBUS
11:15:04 T:139694193145600 NOTICE: HFXML: Action: 10
11:15:04 T:139694193145600 NOTICE: HFXML: ENDING. prev menu
11:15:04 T:139694193145600 NOTICE: HFXML: Action: 101
11:15:04 T:139694193145600 INFO: CPythonInvoker(40, /home/pi/.kodi/addons/script.program.handsfree/addon.py): script successfully run
11:15:04 T:139694193145600 INFO: CPythonInvoker(40, /home/pi/.kodi/addons/script.program.handsfree/addon.py): waiting on thread 139694473996032