FossifyOrg / Gallery

Browse your memories without any interruptions with this photo and video gallery
https://www.fossify.org
GNU General Public License v3.0
1.78k stars 61 forks source link

Freezing when scrolling in the new version #301

Closed Pushkin31 closed 2 months ago

Pushkin31 commented 2 months ago

Checklist

Affected app version

1.2.0

Affected Android/Custom ROM version

Android 14, oxygenOS 14

Affected device model

OnePlus 12

How did you install the app?

GitHub releases

Steps to reproduce the bug

  1. Open the application
  2. Open any folder with many media files (photos+videos)
  3. Scroll

Expected behavior

Scrolling without freezing, file previews load quickly

Actual behavior

When scrolling, the application freezes, it takes a long time to load file previews. Until all previews in the folder are loaded, it does not open any photo/video

Screenshots/Screen recordings

Log file crash-org-fossify-gallery-22_09-12-46-12_347.zip

Additional information

No response

naveensingh commented 2 months ago

Thanks for the logs!

Is anyone else able to reproduce this?

Aga-C commented 2 months ago

Exactly how many files do you have in a folder where you experience this problem?

Pushkin31 commented 2 months ago

Exactly how many files do you have in a folder where you experience this problem?

It can also freeze on the main screen. Freezing occurred in a folder with more than 700 media. Previews load slowly even in a folder with 80 media, but scrolling does not slow down

naveensingh commented 2 months ago

I can reproduce this 'occasionally' on a Samsung device.

BluePixel4k commented 2 months ago

Is anyone else able to reproduce this?

I also notice this bug frequently. (Pixel 8 with GrapheneOS (A14))

AdityaMishra135 commented 2 months ago

Yes, I'm also facing this.

Aadesh001 commented 2 months ago

Facing this on Nothing Phone 2 (Nothing OS 2.6, Android 14) frequently

naveensingh commented 2 months ago

It might help if anyone would share the file exported by Gallery => Settings => Export settings.

Pushkin31 commented 2 months ago

It might help if anyone would share the file exported by Gallery => Settings => Export settings.

I am attaching the file

gallery-settings_2024_09_23_11_29_44.txt

Aadesh001 commented 2 months ago

gallery-settings_2024_09_23_13_27_43.txt

This is mine

nexxus-vi commented 2 months ago

+1 on Pixel 7 - 14 (AP2A.240705.004) gallery-settings_2024_09_23_15_39_23.txt

Mape6 commented 2 months ago

+1 Pixel 7a I killed the app, cleaned the cache and started the app again. The first thumbnails are generated quickly and after some the process slows down quickly.

naveensingh commented 2 months ago

Seems to be caused by JPEG XL support added in https://github.com/FossifyOrg/Gallery/pull/253

If you guys are up for testing, here's an APK with that change reverted: gallery-8-foss-release.apk.zip

Please remove the .zip extension from the filename, thanks!

vivident4004 commented 2 months ago

+1 Pixel 7a I killed the app, cleaned the cache and started the app again. The first thumbnails are generated quickly and after some the process slows down quickly.

Exactly this, and it struggles to the point of freezing especially with animated media (.mp4, .mov, .webp) when trying to load or create thumbnails. Here's my settings file: gallery-settings_2024_09_24_14_39_29.txt

Mape6 commented 2 months ago

Seems to be caused by JPEG XL support added in #253

If you guys are up for testing, here's an APK with that change reverted: gallery-8-foss-release.apk.zip

Please remove the .zip extension from the filename, thanks!

That version works perfectly.

naveensingh commented 2 months ago

@Mape6 Thanks for testing!

vivident4004 commented 2 months ago

Seems to be caused by JPEG XL support added in #253

If you guys are up for testing, here's an APK with that change reverted: gallery-8-foss-release.apk.zip

Please remove the .zip extension from the filename, thanks!

For me, this seems to have solved the issue. I even cleared the cache once more to force the app to rebuild the thumbnails, and scrolling in a folder full of movies it has no issues now, while before it freezed and crashed. Tested on a Pixel 7 with GrapheneOS with Android 14 2024091900.

naveensingh commented 2 months ago

I'll release an update soon, thank you!

shockergit commented 2 months ago

Yes its even the thumbails are loading after 2 minutes. Image loading takes lot of time. While switching back to simple gallery it works fine.

naveensingh commented 2 months ago

Should be fixed in version 1.2.1: https://github.com/FossifyOrg/Gallery/releases/tag/1.2.1

shockergit commented 2 months ago

Should be fixed in version 1.2.1: https://github.com/FossifyOrg/Gallery/releases/tag/1.2.1

I think this fixed