gallery app takes several second to load thumbnails
- /e/ version: /e/OS 1.8.1-s
- Device model(s): FP4
- Device rooted: no
Summary
Gallery app takes several second to load thumbnails.
The problem
Steps to reproduce
Have several folders and pictures, kill the gallery app and reopen gallery it.
What is the current behavior?
Latency is observed.
What is the expected correct behavior?
Image are successfully loaded without latency.
Technical informations
Relevant logs (adb logcat
)
02-10 16:54:55.942 9631 9656 W MediaDetails: Could not read exif from file: /storage/emulated/0/Pictures/Screenshots/Screenshot_20220201-150950_Updater.png
02-10 16:54:55.942 9631 9656 W MediaDetails: java.io.IOException: Invalid exif format : com.android.gallery3d.exif.ExifInvalidFormatException: Invalid JPEG format
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.exif.ExifInterface.readExif(ExifInterface.java:750)
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.exif.ExifInterface.readExif(ExifInterface.java:770)
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.data.MediaDetails.extractExifInfo(MediaDetails.java:135)
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.data.LocalImage.extractDateTaken(LocalImage.java:185)
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.data.LocalImage.updateFromCursor(LocalImage.java:161)
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.data.LocalMediaItem.updateContent(LocalMediaItem.java:94)
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.data.LocalAlbum.loadOrUpdateItem(LocalAlbum.java:166)
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.data.LocalAlbum.getMediaItem(LocalAlbum.java:145)
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.data.LocalMergeAlbum$FetchCache.getItem(LocalMergeAlbum.java:240)
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.data.LocalMergeAlbum.getMediaItem(LocalMergeAlbum.java:132)
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.data.MediaSet.enumerateMediaItems(MediaSet.java:244)
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.data.MediaSet.enumerateTotalMediaItems(MediaSet.java:259)
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.data.MediaSet.enumerateTotalMediaItems(MediaSet.java:264)
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.data.MediaSet.enumerateTotalMediaItems(MediaSet.java:229)
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.data.TimeClustering.run(TimeClustering.java:104)
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.data.ClusterAlbumSet.updateClusters(ClusterAlbumSet.java:122)
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.data.ClusterAlbumSet.reload(ClusterAlbumSet.java:78)
02-10 16:54:55.942 9631 9656 W MediaDetails: at com.android.gallery3d.app.TimeLineDataLoader$ReloadTask.run(TimeLineDataLoader.java:405)
Relevant screenshots