Migrated service add-on is seg faulting kodi 19.0
#2
I've added log commands around blocks of code and through a process of elimination I've narrowed it down to a requests.post command:

custom_headers = { 'user-agent': xbmc.getUserAgent(), 'Content-Type': 'application/json' }
log.info("Snapshot 2")
r = requests.post(url=register_endpoint, data=json.dumps(data_to_submit), headers=custom_headers, timeout=_request_timeout)
log.info("Snapshot 2a")

Steps to reproduce:

1) Start Kodi with add-on uninstalled
2) Install add-on using "Install from zip file"
3) In the log file it prints "Snapshot 2" and "Snapshot 2a" (plus later logs) - i.e. the requests.post command works correctly
4) Exit and restart Kodi
5) Add-on is started and last log line is "Snapshot 2" then Kodi crashes, implying the requests.post command is causing the crash
Reply


Messages In This Thread
RE: Migrated service add-on is seg faulting kodi 19.0 - by djbloc - 2021-05-09, 19:54


Logout Mark Read Team Forum Stats Members Help
Migrated service add-on is seg faulting kodi 19.00
This forum uses Lukasz Tkacz MyBB addons.