drinfernoo / plugin.program.autowidget

AutoWidget is a program add-on for Kodi, designed to give a more dynamic and interesting experience to using skin widgets.
73 stars 17 forks source link

[Bug] error on startup and widgets not loading #129

Closed blakie1225 closed 2 years ago

blakie1225 commented 2 years ago

On startup I get an error pop up for auto widget and widgets never load, they just say loading content. Shortcuts do seem to work though.

I’m on Xbox series x kodi 19.4 using titan binge and venom

drinfernoo commented 2 years ago

I'll need a full log if anything 🤔

blakie1225 commented 2 years ago

https://paste.kodi.tv/puculocozu

drinfernoo commented 2 years ago

You know, I'm not really sure why this would be happening 🤔 The assertion that's erroring is based on a widget ID that should come from one of the cache files, which shouldn't ever be malformed, but it could happen. Can you try clearing your cache from AutoWidget's Settings or Tools -> Clear Cache?

Hawkedon commented 2 years ago

Hi @drinfernoo, I got this issue too, seems it's due to the Xbox access restriction for some os python package functionality.

@blakie1225

Edit: After debugging the addon with Web-PDB, I finally figured out the problem for Xbox. Just removing the three assertions at the beginning of cache_and_update method will fix the crash. The widget_id variable is None due to the yield statement. The assertion test will fail for the variable, but on PC (what I tested), the execution of it will be ignored.

blakie1225 commented 2 years ago

Could I get the zip file with the edits you made?

djay commented 2 years ago

probably fixed by https://github.com/drinfernoo/plugin.program.autowidget/pull/108/commits/a25131cb1bdf02846671cce88543acb8abfc0ffa