App stops working when I rotate the device

Hi . I created my own repo and used that for the only default on the F-droid app. When I rotate the device a couple times I can no longer view the icons. What’s going on?

Did you rotate while it was refreshing the index?

Yes that seems to be the issue. Is there a way to restore the icons?

It’s happening quite often

Pull to refresh repos should fix it.

Thank you ,but the icons are still not coming back.

Try a clean data, resetup for F-Droid.

Also, after that, try to reproduce the issue.

What device? Android version?

Hi, the clearing the data worked to get the icons back. Here is a copy of the logs when I rotate the device.Thank you again for your assistance.

08-26 14:41:51.845 7538-7538/org.fdroid.fdroid.debug W/ResourceType: Attempt to retrieve bag 0x0103003e which is invalid or in a cycle.

08-26 14:41:51.894 7538-7538/org.fdroid.fdroid.debug W/PhoneWindow: Previously focused view reported id 2131296303 during save, but can’t be found during restore.

08-26 14:41:51.914 7538-7577/org.fdroid.fdroid.debug D/UpdateService: manually requested or forced update

08-26 14:41:51.938 7538-7562/org.fdroid.fdroid.debug I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0

[Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1

[Mali]max_allowed_dequeued_buffers=3

08-26 14:41:51.940 7538-7577/org.fdroid.fdroid.debug D/DBHelper: Removing all index tables, they will be recreated next time F-Droid updates.

08-26 14:41:52.028 7538-7577/org.fdroid.fdroid.debug D/DBHelper: Clearing repo etags, so next update will not be skipped with “Repos up to date”.

08-26 14:41:52.030 7538-7577/org.fdroid.fdroid.debug D/DBHelper: Ensuring indexes exist for fdroid_package

08-26 14:41:52.032 7538-7577/org.fdroid.fdroid.debug D/DBHelper: Ensuring indexes exist for fdroid_app

08-26 14:41:52.039 7538-7577/org.fdroid.fdroid.debug D/DBHelper: Ensuring indexes exist for fdroid_apk

08-26 14:41:52.043 7538-7577/org.fdroid.fdroid.debug D/DBHelper: Ensuring indexes exist for fdroid_appPrefs

08-26 14:41:52.044 7538-7577/org.fdroid.fdroid.debug D/DBHelper: Ensuring indexes exist for fdroid_installedApp

Ensuring indexes exist for fdroid_repo

08-26 14:41:52.108 7538-7538/org.fdroid.fdroid.debug D/Preferences: Invalidating preference ‘triedEmptyUpdate’.

08-26 14:41:52.304 7538-7577/org.fdroid.fdroid.debug D/CRLSetManager: getInstance binder: android.os.BinderProxy@13b0aed0

08-26 14:41:52.510 7538-7577/org.fdroid.fdroid.debug D/HttpDownloader: https://thesafecell.com/fdroid/repo/index-v1.jar is cached, not downloading

08-26 14:41:52.511 7538-7577/org.fdroid.fdroid.debug D/UpdateService: Not checking app details or compatibility, because repos were up to date.

08-26 14:41:52.517 7538-7538/org.fdroid.fdroid.debug D/Preferences: Invalidating preference ‘lastUpdateCheck’.

08-26 14:41:52.517 7538-7577/org.fdroid.fdroid.debug I/UpdateService: Updating repo(s) complete, took 0 seconds to complete.

08-26 14:41:52.932 7538-7538/org.fdroid.fdroid.debug W/ResourceType: Attempt to retrieve bag 0x0103003e which is invalid or in a cycle.

08-26 14:41:52.974 7538-7538/org.fdroid.fdroid.debug D/MainActivity: We haven’t done an update yet. Forcing repo update.

08-26 14:41:52.974 7538-7538/org.fdroid.fdroid.debug D/Preferences: Invalidating preference ‘triedEmptyUpdate’.

08-26 14:41:52.981 7538-7538/org.fdroid.fdroid.debug W/PhoneWindow: Previously focused view reported id 2131296303 during save, but can’t be found during restore.

08-26 14:41:53.012 7538-7562/org.fdroid.fdroid.debug I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0

[Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1

[Mali]max_allowed_dequeued_buffers=3

08-26 14:41:53.127 7538-7566/org.fdroid.fdroid.debug D/UpdateService: manually requested or forced update

08-26 14:41:53.376 7538-7566/org.fdroid.fdroid.debug D/CRLSetManager: getInstance binder: android.os.BinderProxy@13b0aed0

08-26 14:41:53.599 7538-7566/org.fdroid.fdroid.debug D/HttpDownloader: downloading https://thesafecell.com/fdroid/repo/index-v1.jar (is resumable: false)

08-26 14:41:53.599 7538-7566/org.fdroid.fdroid.debug D/Downloader: Downloading from stream

08-26 14:41:53.785 7538-7566/org.fdroid.fdroid.debug D/CRLSetManager: getInstance binder: android.os.BinderProxy@13b0aed0

08-26 14:41:54.306 7538-7538/org.fdroid.fdroid.debug W/ResourceType: Attempt to retrieve bag 0x0103003e which is invalid or in a cycle.

08-26 14:41:54.341 7538-7538/org.fdroid.fdroid.debug W/PhoneWindow: Previously focused view reported id 2131296303 during save, but can’t be found during restore.

08-26 14:41:54.346 7538-7606/org.fdroid.fdroid.debug D/UpdateService: Downloading https://thesafecell.com/fdroid/repo/index-v1.jar(2062/-1)

08-26 14:41:54.348 7538-7566/org.fdroid.fdroid.debug D/Downloader: Finished downloading from stream

08-26 14:41:54.367 7538-7566/org.fdroid.fdroid.debug D/IndexV1Updater: [0ms] Starting to process index-v1.json

08-26 14:41:54.369 7538-7566/org.fdroid.fdroid.debug D/UpdateService: Processing https://thesafecell.com/fdroid/repo/index-v1.jar(8000/4270)

08-26 14:41:54.375 7538-7562/org.fdroid.fdroid.debug I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0

[Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1

[Mali]max_allowed_dequeued_buffers=3

08-26 14:41:54.527 7538-7566/org.fdroid.fdroid.debug D/IndexV1Updater: [160ms] Finished processing index-v1.json. Now verifying certificate…

08-26 14:41:54.528 7538-7566/org.fdroid.fdroid.debug D/IndexV1Updater: [161ms] Certificate verified. Now saving to database…

08-26 14:41:54.541 7538-7566/org.fdroid.fdroid.debug D/IndexV1Updater: [174ms] Saved to database, but only a temporary table. Now persisting to database…

08-26 14:41:54.541 7538-7566/org.fdroid.fdroid.debug D/UpdateService: Committing https://thesafecell.com/fdroid/repo/index-v1.jar(0/-1)

08-26 14:41:54.543 7538-7566/org.fdroid.fdroid.debug E/SQLiteLog: (1) no such table: temp_update_db.temp_fdroid_app

08-26 14:41:54.589 7538-7566/org.fdroid.fdroid.debug D/RepoPersister: Flushing details of up to 50 apps/packages to the database.

08-26 14:41:54.696 7538-7566/org.fdroid.fdroid.debug D/AppProvider: Deciding on which metadata should take priority for each package.

08-26 14:41:54.702 7538-7566/org.fdroid.fdroid.debug D/AppProvider: Calculating whether apps are compatible, based on whether any of their apks are compatible

08-26 14:41:54.704 7538-7566/org.fdroid.fdroid.debug D/AppProvider: Calculating suggested versions for all NON-INSTALLED apps which specify an upstream version code.

08-26 14:41:54.706 7538-7566/org.fdroid.fdroid.debug D/AppProvider: Calculating suggested versions for all apps which don’t specify an upstream version code.

08-26 14:41:54.708 7538-7566/org.fdroid.fdroid.debug D/AppProvider: Updating icon paths for apps belonging to repos with version >= 11

Using icons dir ‘/icons-160/’

08-26 14:41:54.749 7538-7566/org.fdroid.fdroid.debug D/RepoProvider: Updated repo. Notifying provider change: ‘content://org.fdroid.fdroid.debug.data.RepoProvider/2’.

08-26 14:41:54.753 7538-7566/org.fdroid.fdroid.debug D/IndexV1Updater: [386ms] Persited to database.

08-26 14:41:54.754 7538-7566/org.fdroid.fdroid.debug D/IndexV1Updater: Repo Push Requests: {uninstall=[Ljava.lang.String;@837e61c, install=[Ljava.lang.String;@1d91b225}

08-26 14:41:54.772 7538-7566/org.fdroid.fdroid.debug I/UpdateService: Updating repo(s) complete, took 1 seconds to complete.

08-26 14:41:54.794 7538-7538/org.fdroid.fdroid.debug D/Preferences: Invalidating preference ‘lastUpdateCheck’.

08-26 14:41:55.709 7538-7538/org.fdroid.fdroid.debug W/ResourceType: Attempt to retrieve bag 0x0103003e which is invalid or in a cycle.

08-26 14:41:55.752 7538-7538/org.fdroid.fdroid.debug W/PhoneWindow: Previously focused view reported id 2131296303 during save, but can’t be found during restore.

08-26 14:41:55.782 7538-7562/org.fdroid.fdroid.debug I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0

[Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1

[Mali]max_allowed_dequeued_buffers=3

So you’ve reproduced it? You’ve rotated it and they’re gone?

Sorry I forgot to mention that I’m using an Amazon Fire tablet api 22, but I also have the problem on my emulator api 25

With these logs open an issue here: https://gitlab.com/fdroid/fdroidclient/issues

Do mentions what devices, Android version and exact steps.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.