New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
skin migration and addon compatibility checking #10335
Conversation
nice one, thx! |
awesome. Very much appreciated :) |
jenkins build this please |
builds now;) |
@tamland it seems indeed to mark skins incompatible and switches to default skin. However is does this check before it fetches data from the newer repo which does compatible skins/addons. So now all current installed versions are marked "disabled" while it should probably first fetch the updates before just hitting everything disabled and the users needs to get everything sorted again. Additionally users are now still able to enable "incompatible" add-ons again while this should not be possible? |
Hm, I think we have to make a choice to either accept that it doesn't automatically updates, or don't do any disabling, only warn about it. Auto updating everything before startup is not an option; this can take far too long time. What you're seeing with tvtunes is expected. There's an update for it that is marked broken, but it's not incompatible or have unmet dependencies in any way. These are completely different things previously mushed together. |
Well if it's marked broken it should certainly be disabled. To me incompatible and broken are the same and disabled is the way to go without option to re-enable unless a fixed version is found. Leaving user with a warning and don't disable doesn't sound like an option cause that will leave it in broken state. Forcing the user to go and hunt down Addons that do have working update but the Addon is disabled isn't a very good option as well. Edit: |
I've added this PR in my test builds. In my test builds I include the Kodi Game repository. This repository is being reported as incompatible: However, this popup is appearing every time Kodi is started - is this expected behaviour? |
i've tested this and it all appears to work fine on my end. kodi waits at the splash screen while the selected skin is being updated. nothing ends up disabled at my end, except the re-touched skin, which is correct. |
Seems my auto update setting was off for whatever reason, Sorry for that confusion. |
yeah, i got the crashes as well. the crashlog seems to indicate the skin helper addon is causing issues. i think what happens is the skin helper addon is started (as a service) before the skin has loaded, because kodi is still busy downloading the krypton version of the skin you're using. result: crash-boom-bang. |
edit: it's not the addon itself thats evaluating the skin setting... it's kodi reading the context menu section of the skin helper addon.xml file |
9f09b75
to
ba1c029
Compare
jenkins build this please |
Ok, the amount of unrelated fixes is piling up!, but as far as I can test it doesn't crash now. |
@MilhouseVH I can only guess but probably it's reenabled or cant be disabled for some reason (eg it's a required system addon).
The 'marked broken' stuff is not touched here. It should still show popups (all 50 of them). It just wont be part of this startup process because logically they are completely different things.
And if user have a lot of skins and addons installed, a slow connection or the mirrors are slow? It's not hard to imagine an update like that is going to take an hour. That's just an unacceptable wait time. I think we need to pick our battles here. If an upgrade require some manual intervention, so be it. Any sort of migration we do is always going to be an 80% solution. I'd rather see the 'hunt down addons' and re-enabled process made easier and do the safe thing (it already lists all problem addons so there should be no surprises to the user). |
The Edit: Add note to clarify inability to disable this add-on. Also to add that the best option would be to ship a compatible add-on, we included this repo to facilitate testing but clearly things aren't progressing in that direction so dropping the repo will be best, at least in the short-term. It's not this PR's fault if we ship a broken add-on. I'll drop it from my own builds starting from tonight, and if |
Changed it to not include failed ones in the dialog, just log a warning. Should be ok in this case. |
…on initialization will be unloaded in 'reload' after update
…installs have finished
6a2944e
to
5573eb9
Compare
jenkins build this please |
Looks like non relevant fail on linux. Just to be sure... |
So, beta 2 or beta 3? |
I don't see beta2 happening this week and we have several days of devcon. I'd say merge :) |
Afaics this commit causes a segfault when starting Kodi. The segfault also occurs when Kodi is started with an empty home directory so I guess the choice of addons installed does not play a role here. System is Linux, kernel 3.18.36 i686, uClibc, gcc 4.9.2, cross-compiled using buildroot,
|
@tamland Same happens on my phone/tablet. |
http://flightgear-devel.narkive.com/ytqWx9LM/static-array-of-std-string-valid Probably compiler dependent. |
Could very well be, just move it into the class as a non-static member variable and we should be fine for beta |
maybe fix android crash after #10335
@tamland with this PR there's something wrong with storing the skin settings. The log is not really interesting but you can easily reproduce by disabling a main menu item in Estuary and than doing a skin reload on the Home screen. Each reload hides/shows the disabled menu item. |
ping @tamland |
This adds compatibility checks for addons on startup, replacing the weird repository workarounds current in place. It will now checks all installed addons and disable them/notify.
Similarly, the skin (special treatment because it breaks every release, and it's critical that it works) will be auto-updated, or if that fails fallback to default skin, preventing incompatible skins from being loaded.