Skip to content

[Bug report] Crash on iOS 27 beta when calling getAssetPathList #1410

Description

@wulang150

Version

3.9.0

Platforms

iOS

Device Model

iPhone15 iOS 27 beta

flutter info

[!] Flutter (Channel [user-branch], 3.24.4, on macOS 15.4.1 24E263 darwin-arm64,
    locale zh-Hans-CN)
    ! Flutter version 3.24.4 on channel [user-branch] at
      /Users/anker/Desktop/work/flutterSDK/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an
      official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions
      at https://flutter.dev/setup.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss
      this error.
    • Framework revision 603104015d (1 year, 8 months ago), 2024-10-24 08:01:25
      -0700
    • Engine revision db49896cf2
    • Dart version 3.5.4
    • DevTools version 2.37.3
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
    • Android SDK at /Users/anker/Library/Android/sdk
    • Platform android-35, build-tools 35.0.1
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 21.0.8+-14018985-b1038.68)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor
      --android-licenses

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

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

[✓] Android Studio (version 2025.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 21.0.8+-14018985-b1038.68)

[✓] VS Code (version 1.126.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.138.0

[✓] Connected device (7 available)
    • iPad mimi (mobile)              • 00008130-001660690ED0001C • ios
      • iOS 26.3.1 23D771330a
    • iPhone14 (mobile)               • 00008110-001925C20AF3601E • ios
      • iOS 26.5 23F77
    • iPhone (mobile)                 • 00008110-001A3D113C21801E • ios
      • iOS 18.2 22C152
    • iPhone15 (mobile)               • 00008120-00120DC20284201E • ios
      • iOS 27.0 24A5355q
    • macOS (desktop)                 • macos                     • darwin-arm64
      • macOS 15.4.1 24E263 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin
      • macOS 15.4.1 24E263 darwin-arm64
    • Chrome (web)                    • chrome                    •
      web-javascript • Google Chrome 150.0.7871.46
    ! Error: Browsing on the local area network for iPad (5). Ensure the device
      is unlocked and attached with a cable or associated with the same local
      area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code
      -27)

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

How to reproduce?

Hi, thanks for maintaining this plugin.

I found a crash on a real iPhone running iOS 27 beta when using photo_manager to load album/path data.

Launch the app on a real device with iOS 27 beta
Request photo library permission
Call PhotoManager.getAssetPathList()
The app crashes

Logs

Example code (optional)

Future<void> refreshGalleryList() async {
    final FilterOptionGroup option = makeOption();

    reset();
    final List<AssetPathEntity> galleryList = await elapsedFuture(
      PhotoManager.getAssetPathList(
        type: type,
        hasAll: hasAll,
        onlyAll: onlyAll,
        filterOption: option,
        pathFilterOption: pathFilterOption,
      ),
      prefix: "uv_general_obtain_path_list_duration".tr,
    );
    list.clear();
    list.addAll(galleryList);
    clearSmartAlbumAnimated();
  }

Contact

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions