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] crash when call getAssetPathList second time! #65

Closed
trantrongkim98 opened this issue May 2, 2019 · 1 comment
Closed

[BUG] crash when call getAssetPathList second time! #65

trantrongkim98 opened this issue May 2, 2019 · 1 comment

Comments

@trantrongkim98
Copy link

trantrongkim98 commented May 2, 2019

Describe the bug
when i call methob getAssetPathList second time my app has crashed immediately
and I found it comes from an error when I use the isCache = false ;
Expected behavior
pathList = await PhotoManager.getAssetPathList(hasVideo:true,isCache:true);

Flutter version

Smartphone (please complete the following information):

  • Device: [e.g. MIPAD4]
  • Version [3.0.1]

Log

java.lang.ArrayIndexOutOfBoundsException: length=823; index=823
[        ] E/AndroidRuntime(15281): 	at java.util.ArrayList.add(ArrayList.java:468)
[        ] E/AndroidRuntime(15281): 	at top.kikt.imagescanner.ImageScanner.handleImageCursor(ImageScanner.kt:149)
[        ] E/AndroidRuntime(15281): 	at top.kikt.imagescanner.ImageScanner.scanImage(ImageScanner.kt:125)
[        ] E/AndroidRuntime(15281): 	at top.kikt.imagescanner.ImageScanner.scan(ImageScanner.kt:79)
[        ] E/AndroidRuntime(15281): 	at top.kikt.imagescanner.ImageScanner.access$scan(ImageScanner.kt:16)
[        ] E/AndroidRuntime(15281): 	at top.kikt.imagescanner.ImageScanner$scanAndGetImageIdList$1.run(ImageScanner.kt:219)
[        ] E/AndroidRuntime(15281): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
[        ] E/AndroidRuntime(15281): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
[        ] E/AndroidRuntime(15281): 	at java.lang.Thread.run(Thread.java:764)

@trantrongkim98 trantrongkim98 changed the title [BUG] crash when getAssetPathList [BUG] crash when call getAssetPathList second time! May 2, 2019
@CaiJingLong
Copy link
Member

Update version to 0.4.1.

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