(1.1-alpha2) Bugs: Repo sync error loop; showing apps not installed as installed.
- Device OS and version: RR/Lineage 14.1 (Android 7.1.2; Google Security Patch: 12/5/17)
- Device model/manufacturer: Samsung S5 kltevzw (G900V) - Unlocked Bootloader with TWRP installed.
- F-Droid version (in the About screen): 1.1-alpha2
- F-Droid privileged extension version (if installed): Version: 0.2.7
What did you do?
I updated F-Droid from 1.1-alpha1 (no issues) to 1.1-alpha2 (start of the issues.)
What did you expect to see?
Same good old F-Droid plus "panic" feature added and other fixes as mentioned in the changelog.
What did you see instead?
F-Droid 1.1-alpha2 installed fine, then I noticed it kept (trying to) update the repos over and over (I had it set to once daily and then I disabled auto-update of repos.)
I launched F-Droid to check on it and looked in my installed (manage apps) area where I was puzzled to see my installed apps weren't listed and I found many apps I don't have (and have never had) installed. Granted: they might be apps I've downloaded (but never installed) in F-Droid before I added the privilege extension.
F-Droid kept trying to update the repos again and again; I noticed "Guardian Project" repos seemed to fail, so I disabled those. After disabling those it stopped recycling the same repo update over and over, but still many apps I've never installed show up in my manage app area. I disabled "F-Droid Archive" repo, ran repo sync, and this mostly fixed it. All my installed apps are shown again, in addition to 4 apps I've never installed show up in the managed app area.
I tried switching to XML and back, this made no little difference.
I am going back to F-Droid 1.1-alpha1... F-Droid will not let me revert backwards, so I will do an uninstall and reinstall to the older version. F-Droid 1.1-alpha2 has bugs!
Edit: 2-08-18: I have kept alpha2 and set F-Droid settings to use old XML format AND also unchecked the boxes to save install history, as well as stopping automatic updates (never used auto installation.)
Doing the above seems to have "fixed" the issue- but the main problem remains when using the 'new'/non-XML index (which is it's normal setting.)
Update 2-09-18: F-Droid was behaving normally for a day with it set to XML (save install history and automatic updates have remained disabled.) That is until last night, when F-Droid started to loop the same (XML) updates over and over. However, the issue with my apps showing in history seems to have been cleared up by unchecking the non-default setting of saving install history on legacy XML updates at least.
I will get and post a logcat of when F-Droid does the sync looping as soon as I find the time to reproduce the error in a controlled environment/with few apps running that may skew results. I will try and post it by tomorrow.
Update 2-10-18: Having time to play with this issue a little more, I have found the issue happens with or without "Force old index format" active or not. I have posted a Logcat of the issue happening with and without the older XML index format. Also posted a screenshot showing a toast popup error from F-Droid whilst repo syncing with either one of the two Guardian Project repos active.
