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][Android] Crash due to IllegalArgumentException: Volume external_primary not found #906

Open
ua741 opened this issue Feb 28, 2023 · 1 comment

Comments

@ua741
Copy link
Contributor

ua741 commented Feb 28, 2023

Describe the bug
We are observering crash reports on our playstore console due to the above error.

To Reproduce
Steps to reproduce the behavior:
Unfortunately, we don't have a way to reproduce this issue. We thought of filling this bug because we didn't notice any other active or past issue related to this exception

Expected behavior
App should not crash due to the above exception

Flutter version

  • Flutter Version: 3.7.3
  • photo_manager: 2.5.2

Smartphone (please complete the following information):

  • Moto Edge 20, Android 12 (SDK 31)
  • Samsung A13x, Android 13 (SDK 33)
  • Moto g 5G, Android 11 (SDK 30)

Logs

Exception java.lang.IllegalArgumentException: Volume external_primary not found
  at android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:172)
  at android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:142)
  at android.content.ContentProviderProxy.query (ContentProviderProxy.java:481)
  at android.content.ContentResolver.query (ContentResolver.java:1219)
  at android.content.ContentResolver.query (ContentResolver.java:1151)
  at android.content.ContentResolver.query (ContentResolver.java:1107)
  at com.fluttercandies.photo_manager.core.utils.AndroidQDBUtils.getAssetPathList (AndroidQDBUtils.java:53)
  at com.fluttercandies.photo_manager.core.PhotoManager.getAssetPathList (PhotoManager.java:46)
  at com.fluttercandies.photo_manager.core.PhotoManagerPlugin$onHandlePermissionResult$1.invoke (PhotoManagerPlugin.java:246)
  at com.fluttercandies.photo_manager.core.PhotoManagerPlugin$onHandlePermissionResult$1.invoke (PhotoManagerPlugin.java:240)
  at com.fluttercandies.photo_manager.core.PhotoManagerPlugin$Companion.runOnBackground$lambda-0 (PhotoManagerPlugin.java:44)
  at com.fluttercandies.photo_manager.core.PhotoManagerPlugin$Companion.lambda$-rOHvt2ua8zW5HUOvm04hwJiFK0 (PhotoManagerPlugin.java)
  at com.fluttercandies.photo_manager.core.-$$Lambda$PhotoManagerPlugin$Companion$-rOHvt2ua8zW5HUOvm04hwJiFK0.run (-.java)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1137)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:637)
  at java.lang.Thread.run (Thread.java:1012)
@AlexV525
Copy link
Member

Are these devices capable of an external SD card?

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