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

Downloading the image does not working #1228

Closed
1 task done
Hwan-seok opened this issue Jul 1, 2022 · 8 comments
Closed
1 task done

Downloading the image does not working #1228

Hwan-seok opened this issue Jul 1, 2022 · 8 comments
Assignees
Labels

Comments

@Hwan-seok
Copy link

Hwan-seok commented Jul 1, 2022

Which packages are you using?

stream_chat_flutter

On what platforms did you experience the issue?

iOS

What version are you using?

4.3.0

What happened?

When trying to download the image as follows, the error came out and indefinitely hangs out

StreamMessageListView > image tile > action button > download

Steps to reproduce

1. Create channel with two members (1:1)
2. Send image from User A to B
3. B opens the image page by tapping the image-containing message.
4. Tap action button(more_dots). It will came out with dropdown overlay.
5. Tap download.
6. The loading modal came out indefinitely with error and there is no way to close this.

Supporting info to reproduce

No response

Relevant log output

[+4265 ms] [Generic] Video /var/mobile/Containers/Data/Application/3C9A6520-5E84-482A-AE20-C3BB6184C7A0/Library/Caches/28f9f64d-3cba-4f57-b7c0-090162724321.e30787ca-aa8a-44dc-a1cf-138fac53d9e7.1656305615.808928_o_IMG_0326.HEIC cannot be saved to the photo library: Error Domain=AVFoundationErrorDomain Code=-11828 "열 수 없음" UserInfo={NSUnderlyingError=0x2812d3ea0 {Error Domain=NSOSStatusErrorDomain Code=-12847 "(null)"}, NSLocalizedFailureReason=이 미디어 포맷은 지원되지 않습니다., NSURL=file:///var/mobile/Containers/Data/Application/3C9A6520-5E84-482A-AE20-C3BB6184C7A0/Library/Caches/28f9f64d-3cba-4f57-b7c0-090162724321.e30787ca-aa8a-44dc-a1cf-138fac53d9e7.1656305615.808928_o_IMG_0326.HEIC, NSLocalizedDescription=열 수 없음}

Flutter analyze output

No response

Flutter doctor output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Hwan-seok Hwan-seok added the bug Something isn't working label Jul 1, 2022
@ayush221b ayush221b self-assigned this Jul 14, 2022
@BrunoJurkovic
Copy link

I am experiencing this issue as well.

@pestizd
Copy link

pestizd commented Jul 22, 2022

This issue is affecting me too.

@imtoori imtoori assigned imtoori and unassigned ayush221b Jul 22, 2022
@imtoori
Copy link
Contributor

imtoori commented Jul 22, 2022

Hi
I'm trying to reproduce this, but it's working fine for me
Does it happen with every image? Can you give me more info on this?

@BrunoJurkovic
Copy link

Hi I'm trying to reproduce this, but it's working fine for me Does it happen with every image? Can you give me more info on this?

Hey, thanks for the quick reply!

It seems to happen on images both sent from the current user & images sent by other users.

It basically hangs at the exact moment that the download is finished. It's also an issue because there is no way to exit this screen, no timeout, no anything except to close the app & reopen it.

image

Is there a way to maybe temporarily disable this? If only until it is fixed?

@imtoori
Copy link
Contributor

imtoori commented Jul 22, 2022

ok I managed to reproduce it and I found out it's related to this issue on the package we're using hui-z/image_gallery_saver#204
I'm trying to find a solution, I'll keep you posted

@imtoori
Copy link
Contributor

imtoori commented Jul 22, 2022

ok I found a way of fixing it, I'll push a pr asap

@pestizd
Copy link

pestizd commented Jul 22, 2022

Great tnx a lot for the quick response!

@imtoori
Copy link
Contributor

imtoori commented Jul 25, 2022

closed by #1280

@imtoori imtoori closed this as completed Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants