nguyenhoanglam / ImagePicker

A customizable library for selecting images on the device.
Apache License 2.0
598 stars 158 forks source link

Empty Gallery #143

Closed VozNick closed 2 years ago

VozNick commented 2 years ago

Hi, I use library v1.5.2 on Huawei P smart+ (android 9) says the gallery is empty.

thanks

twnth commented 2 years ago

same issue with me, please check asap :(

nguyenhoanglam commented 2 years ago

@VozNick @twnth you got the issue on Huawei device too? I don't have a Huawei device so I can not debug to check this issue. So, I would be grateful if you guys could fork this lib and help me debug it. Thanks in advance!

dattran-pt19 commented 2 years ago

@nguyenhoanglam Mình cũng bị bug tương tự trên Android 11, không hẳn Android 11 nào cũng bị nhưng bạn có thể debug ở máy ảo thử xem. Mình config 1 máy ảo Pixel 3a 1080x2220 Android 11.0 (R - API 30 - x86) thì có xảy ra lỗi

dattran-pt19 commented 2 years ago

In fetchImages function have Exception "BucketName must not be null"

nguyenhoanglam commented 2 years ago

@dattran-pt19 tui vừa test trên máy ảo như ông nói, chạy vẫn load được hình. ông debug rồi coi thử có thể fix cho nó không lỗi BucketName bị null được ko? xong thì ông tạo PR lên giúp tui.

cám ơn nhiều nhé!

dattran-pt19 commented 2 years ago

@nguyenhoanglam Case này là do lỗi dữ liệu của máy thì phải, máy ảo t chạy sẽ bị lỗi khi có ảnh nằm trong sdk_gphone_x86_arm. Chắc khi ảnh nằm ở vị trí không thuộc folder nào như thế cursor k index ra được nên trả ra bucketName null. Ông chỉ cần check nếu bucketName bị null thì continue vòng While là được

nguyenhoanglam commented 2 years ago

@dattran-pt19 cái này chắc nhờ ông fix giúp t quá. chứ giờ t ko biết nó lỗi ở dòng nào mà check null. ông fix xong rồi test coi nó ok ko? làm phiền ông giúp tui nhé!

dattran-pt19 commented 2 years ago

Ok để tui tạo PR

dattran-pt19 commented 2 years ago

@nguyenhoanglam Tui vừa tạo PR rồi nhé

nguyenhoanglam commented 2 years ago

@dattran-pt19 t có comment trong PR đó. ông coi thử.

nguyenhoanglam commented 2 years ago

@VozNick @twnth Please upgrade to v1.5.3 to help me check if the bug has been fixed. Thank @dattran-pt19 for helping me out with this issue! 🙌 🙌

twnth commented 2 years ago

@nguyenhoanglam Sorry for the late confirmation and Thank you for your quick resolution, it has fixed!!! i love you man