-
Notifications
You must be signed in to change notification settings - Fork 368
Open
Labels
Automation: triageTriaged automatically by our bot.Triaged automatically by our bot.Platform: AndroidSort: BUGawait triage
Description
Version
3.8.2
Platforms
Android
Device Model
all android Device
flutter info
[✓] Flutter (Channel stable, 3.38.3, on macOS 26.1 25B78 darwin-arm64, locale zh-Hans-SG) [1,228ms]
• Flutter version 3.38.3 on channel stable at /Users/xiaochenchen/fvm/versions/3.38.3
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 19074d12f7 (8 days ago), 2025-11-20 17:53:13 -0500
• Engine revision 13e658725d
• Dart version 3.10.1
• DevTools version 2.51.1
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, omit-legacy-version-file,
enable-lldb-debugging, enable-uiscene-migration
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [5.2s]
• Android SDK at /Users/xiaochenchen/Library/Android/sdk
• Emulator version 35.6.11.0 (build_id 13610412) (CL:N/A)
• Platform android-36, build-tools 35.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.8+-14018985-b1038.68)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 26.1.1) [2.0s]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 17B100
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [7ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Connected device (6 available) [8.0s]
• ELS NX9 (mobile) • K5J0220723002248 • android-arm64 • Android 10 (API 29)
• iPhone-shun (mobile) • 00008110-00126DAE2613601E • ios • iOS 26.1 23B85
• Bobi的iPhone x (wireless) (mobile) • 00008020-000079D03E04002E • ios • iOS 18.7.2 22H124
• bu的iPhone (wireless) (mobile) • 00008140-00046C1C2E13001C • ios • iOS 26.1 23B85
• macOS (desktop) • macos • darwin-arm64 • macOS 26.1 25B78 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 142.0.7444.176
[✓] Network resources [2.9s]
• All expected network resources are available.How to reproduce?
The getAssetListRange method has an error: Failed to obtain the cursor., java.lang.RuntimeException: Failed to obtain the cursor
Logs
出现异常。
PlatformException (PlatformException(The getAssetListRange method has an error: Failed to obtain the cursor., java.lang.RuntimeException: Failed to obtain the cursor.
at com.fluttercandies.photo_manager.core.utils.IDBUtils.throwMsg(IDBUtils.kt:895)
at com.fluttercandies.photo_manager.core.utils.AndroidQDBUtils.throwMsg(AndroidQDBUtils.kt:26)
at com.fluttercandies.photo_manager.core.utils.IDBUtils.logQuery(IDBUtils.kt:862)
at com.fluttercandies.photo_manager.core.utils.AndroidQDBUtils.logQuery(AndroidQDBUtils.kt:26)
at com.fluttercandies.photo_manager.core.utils.AndroidQDBUtils.getAssetListRange(AndroidQDBUtils.kt:207)
at com.fluttercandies.photo_manager.core.PhotoManager.getAssetListRange(PhotoManager.kt:83)
at com.fluttercandies.photo_manager.core.PhotoManagerPlugin.handleMethodResult(PhotoManagerPlugin.kt:392)
at com.fluttercandies.photo_manager.core.PhotoManagerPlugin.handleOtherMethods$lambda$0(PhotoManagerPlugin.kt:276)
at com.fluttercandies.photo_manager.core.PhotoManagerPlugin.$r8$lambda$qVA-ZeSSSbjRdPryilx_OztJZ0g(Unknown Source:0)
at com.fluttercandies.photo_manager.core.PhotoManagerPlugin$$ExternalSyntheticLambda1.invoke(D8$$SyntheticClass:0)
at com.fluttercandies.photo_manager.core.PhotoManagerPlugin$Companion.runOnBackground$lambda$0(PhotoManagerPlugin.kt:44)
at com.fluttercandies.photo_manager.core.PhotoManagerPlugin$Companion.$r8$lambda$zjM-zNFinK0lWvN-57g47UHqyTo(Unknown Source:0)
at com.fluttercandies.photo_manager.core.PhotoManagerPlugin$Companion$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:929)
, {start: 0, end: 1, cancelToken: 383, id: isAll, type: 3, option: null}, null))Example code (optional)
Contact
No response
Metadata
Metadata
Assignees
Labels
Automation: triageTriaged automatically by our bot.Triaged automatically by our bot.Platform: AndroidSort: BUGawait triage