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

[Bug report] #1231

Closed
bleszerd opened this issue Nov 25, 2024 · 2 comments
Closed

[Bug report] #1231

bleszerd opened this issue Nov 25, 2024 · 2 comments

Comments

@bleszerd
Copy link

bleszerd commented Nov 25, 2024

Version

3.6.3

Platforms

Android

Device Model

Samsung Galaxy S23 Ultra (Android 14 - OneUI 6.1)

flutter info

[✓] Flutter (Channel stable, 3.24.5, on macOS 14.7.1 23H222 darwin-arm64, locale pt-BR)
    • Flutter version 3.24.5 on channel stable at /Users/vinicius/Flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision dec2ee5c1f (12 days ago), 2024-11-13 11:13:06 -0800
    • Engine revision a18df97ca5
    • Dart version 3.5.4
    • DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/vinicius/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • ANDROID_HOME = /Users/vinicius/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16B40
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] VS Code (version 1.95.1)
    • VS Code at /Users/vinicius/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.100.0

[✓] Connected device (4 available)
    • SM S918B (mobile)               • 192.168.3.58:5555     • android-arm64  • Android 14 (API 34)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 14.7.1 23H222 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 14.7.1 23H222 darwin-arm64
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 131.0.6778.86

[✓] Network resources
    • All expected network resources are available.

How to reproduce?

Sometimes, when I request a new page, some photos randomly appear ignoring the sort order (for example, the photo from 08/23/2024 in the image). I noticed that the photos where this happens are the ones I had previously edited using an image editor like Snapseed.

I checked createDateTime and ensured that the file's date is correct; only the sort order is incorrect.

Screenshot_20241125_185401

Logs

No response

Example code (optional)

var assetPathList = await PhotoManager.getAssetPathList(
  type: RequestType.image,
  onlyAll: true,
  filterOption: FilterOptionGroup(
    orders: [
      OrderOption(
        asc: false,
        type: OrderOptionType.createDate,
      ),
    ],
  ),
);

// assetPaths[0] will be "Recent" album
var assetFiles = await assetPaths[0].getAssetListPaged(
  page: 0 // page will be incremented before next page request 
  size: 500,
)

Contact

[email protected]

@fluttercandies-dev
Copy link

AI Summary: The user reports that photos edited with external apps like Snapseed appear out of sort order when fetched using photo_manager, despite having the correct createDateTime. The issue occurs intermittently on a Samsung Galaxy S23 Ultra running Android 14.

@bleszerd
Copy link
Author

After analyzing the image in different software, it became clear that some of them display the date 08/23/2024, as shown in the attached image above, while others show 10/30/2024. There is a discrepancy depending on the software used to extract the metadata. I believe that, in this case, the best solution would be to filter by updateDate, which at least generates a consistent result.

Since this is not a problem related to the lib, I will mark the issue as closed.

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

2 participants