Skip to content
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

Duplicates / Some images are repeated #971

Open
wanzh5 opened this issue Apr 10, 2024 · 16 comments
Open

Duplicates / Some images are repeated #971

wanzh5 opened this issue Apr 10, 2024 · 16 comments

Comments

@wanzh5
Copy link
Contributor

wanzh5 commented Apr 10, 2024

Describe the bug
When the app refreshes the list, some newly added images are duplicated, and it won't be fixed even if I reopen the app. It seems that this only happened after version 1.10.8.

To Reproduce
Sorry, I don't know. It happens nearly 1 bugged image of 10 normal images.

Screenshots
Screenshot_20240410_133929_deckers thibault aves libre

System information and logs:
aves-logs-20240410_132650.txt

Additional context
If you move the image to other folder (whatever by file manager or by aves), it will be fixed.
The "info" page of the duplicated images are totally same.

@wanzh5 wanzh5 added the type:bug Something isn't working label Apr 10, 2024
@deckerst
Copy link
Owner

deckerst commented Apr 10, 2024

Thanks for the report. I'm aware of the bug but i couldn't reproduce it myself (on my own device or emulators) so i was waiting for more reports and users willing to help me debug it.

Could you please paste the system info from About > Bug Report?

Do you use a custom ROM? A rooted device?

What is the app that creates the new media that gets duplicated (OEM camera, 3rd party camera, screenshot, file transfer, etc)?

Do you switch to Aves right after they are created, or later?

Related:

@deckerst deckerst added bug:works-for-me collection model P2 random bugs & feature requests labels Apr 10, 2024
@wanzh5
Copy link
Contributor Author

wanzh5 commented Apr 10, 2024

Could you please paste the system info from About > Bug Report?

here is the systen info:
Package: deckers.thibault.aves.libre
Installer: dev.imranr.obtainium
Aves version: 1.10.8-libre, build 11702
Flutter: stable 3.19.5
Android version: 10, API 29
Android build: TAS-AN00 2.0.0.263(C00E230R5P6)
Device: HUAWEI TAS-AN00
Support: dynamic colors=false, geocoder=true, HDR=true
Mobile services: not available
System locales: zh_Hans_CN, en_CN, zh_Hant_CN
Storage volumes: /storage/emulated/0/
Storage grants:
Error reporting: false

What is the app that creates the new media that gets duplicated?

Until now, I have seen screenshots and downloads.

Do you switch to Aves right after they are created, or later?

Most of the time I switch to Aves a few minutes later.

The bug seems to usually happen after I add more than 5 images at a time.

@deckerst
Copy link
Owner

Could you please do the following:

  1. install this test build. It will install as Aves [Profile]. Please let the default settings as they are.
  2. launch Aves [Profile] and let it run its initial media scan. It might take a while if you have many media items.
  3. try to reproduce the issue by creating new media and checking in Aves [Profile] if you see duplicates
  4. when you spot a duplicate, please note the URI and path of the duplicate (available in the media Info page), and save the app logs (from About > Bug Report)
  5. attach here the logs, and let me know the URI/path of the duplicate.

@wanzh5
Copy link
Contributor Author

wanzh5 commented Apr 11, 2024

I tried to reproduce it and saw some more stranger bugs.
I take a lot of screenshots and there are no duplicates any more. However, there are some images whose date change to 2202. You can see it in this screenshot.
Screenshot_20240411_220408_deckers thibault aves profile
picture1:
content://media/external/images/media/1002706
/storage/emulated/0/Pictures/Screenshots/Screenshot_20240411_220042_com.android.deskclock.jpg⁩
picture2:
content://media/external/images/media/1002732⁩
⁨/storage/emulated/0/Pictures/Screenshots/Screenshot_20240411_220209_com.android.deskclock.jpg⁩

Then I opened the normal aves and see all of the pictures are duplicated. However, I can't reproduce it. You can see it in this screenshot.
Screenshot_20240411_220220_deckers thibault aves libre
an example:
content://media/external/images/media/1002715⁩
/storage/emulated/0/Pictures/Screenshots/Screenshot_20240411_220104_com.android.deskclock.jpg⁩

Here is the log.
normal aves
aves-logs-20240411_220519.txt
debug version
aves-logs-20240411_220426.txt

@wanzh5
Copy link
Contributor Author

wanzh5 commented Apr 11, 2024

I found that when I took screenshots, aves (debug version) was still taking its initial media scan. I thought that it may help you.

@deckerst
Copy link
Owner

Thanks for taking the time to try it, but for now I'd like to focus on reproducing the duplicate issue with the test version. And it's important to let the initial scan complete first. Please let me know if you can reproduce the duplication with the debug version (with the debug logs and duplicate name).

@deckerst
Copy link
Owner

Actually, I've noticed that the log files attached here are incomplete. I need to find another way to log that's compatible with your device, so no need to test further for now.

@deckerst
Copy link
Owner

About the screenshot with the wrong date, if it's still the case, could you open one of them (in the debug app) in the viewer, then select in the menu > Debug.

Then please take screenshots showing the Entry and Android icon, as follows:
Screenshot_20240411_164513_Aves  Profile

Screenshot_20240411_164541_Aves  Profile

@wanzh5
Copy link
Contributor Author

wanzh5 commented Apr 11, 2024

Then please take screenshots showing the Entry and Android icon, as follows:

Screenshot_20240411_225504_deckers thibault aves profile

Screenshot_20240411_225532_deckers thibault aves profile

@deckerst
Copy link
Owner

Thanks, so it's really an issue with cataloguing ^^
Could you please send me that file with the wrong date (without modification or resize)?

@wanzh5
Copy link
Contributor Author

wanzh5 commented Apr 11, 2024

It is in the zip file.
Screenshot_20240318_132517_com.google.android.apps.translate.jpg.zip

@deckerst
Copy link
Owner

Weird, i can't reproduce. On my device, it has the correct date. Could you please export the metadata and attach it here?
Screenshot_20240411_170928_Aves  Debug

@wanzh5
Copy link
Contributor Author

wanzh5 commented Apr 11, 2024

Screenshot_20240318_132517_com.google.android.apps.translate-metadata.txt

I thought that it may be the same as the bug about duplicate, because when I move the image to another folder, it will be fixed.

@deckerst
Copy link
Owner

Maybe you're right. The metadata is fine, so cataloguing should be accurate. Maybe at first Aves sees the file with a wrong date reported by Android, and thinks it's a different file later... Hard to say without full logs.

I'll try and figure out a way to dig deeper. Thank you for now!

@kmcbest
Copy link

kmcbest commented Apr 18, 2024

I came across the same problem with Redmi K60 Ultra. Delete either dupe will delete them both. Move either one to another location will result in a single one. So I often move it and move back to solve the problem. But it is not very reproducible. My experience is that the dupes are created upon tagging multiple (more than 50) images.

@deckerst
Copy link
Owner

@kmcbest could you please follow the instructions at #971 (comment) ?

@deckerst deckerst changed the title Some images are repeated Duplicates / Some images are repeated Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants