-
Notifications
You must be signed in to change notification settings - Fork 616
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
Screen Turn to black when selecting big file #69
Comments
Hi @ayalma are you selecting it from cloud? |
No , i selecting it from my local storage |
If you give it sometime, does it load the path? If it was from a cloud it would make sense because you have to give it sometime (synchronously) to cache the file. Locally, it shouldn’t be an issue. I need you to provide more details. Post the output of your |
When i'm selecting small file's the black screen not appearing The example application in you'r repo is reproduce the error just select big file
Thank you in advance |
Well, as of now this is the correct behavior because the file needs to be fully loaded before actually accessing it, that’s why this is synchronous and you see the black screen while it’s awaiting the path to load. Can I ask you how big the file is? Nevertheless, I may take a look into it later. Edit: Also @ayalma, it would be great if you could post the full log of when you load a big file. |
I tested it with file size about 300 mb
It's somthing about permission |
Hi @ayalma, it has nothing to do with permission. At this point, you should be fine only with Nevertheless, by looking at your log I can see that it is actually caching the file (thus, creating a file of 300 MB, that's why it takes longer) probably because the device doesn't have it available locally to use. This may happen when you select file from recently used files in Android where it gives you the idea that is there, but might have been already removed by the system. In the file picker, which folder are you selecting? |
Hi , I have Internet permission |
@ayalma and are you getting the same path with that? As I pointed before, looks like the file is being copied locally (300 mb) so that's why it takes longer as this process is made synchronously. Would you mind to copy that file to another local folder and select it again (from other folder, instead donwloads)? Let me know if it works. |
The library i mentioned above act same as your lib and copy data to cache , but it cache files asynchronously i think |
@ayalma can you try to do what I've asked to? It would help me to understand more precisely what's actually happening. Thank you. |
Hi I done what you said . And result is no black screen !
…On Mon, Apr 15, 2019, 18:19 Miguel Ruivo ***@***.*** wrote:
@ayalma <https://github.com/ayalma> can you try to do what I've asked to?
It would help me to understand more precisely what's actually happening.
Thank you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#69 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AO-VRDc4emXSKTx7CYIstAE5wtCTterfks5vhIODgaJpZM4cugyC>
.
|
@ayalma ok, so basically, the downloads folder that you are using hasn't the file locally stored and has to download it again, that's why it takes sometime and thus the black screen. Making it async, would mean that an user could potentially use the path without the file being yet completely loaded, which would lead to undefined behaviors (or mostly an exception). What if you don't use |
Hello, |
@VyasPrachi this is too vague. I need more info in order to help you. Is it related to this issue? @ayalma since I don't have a reply from you, I'll close this issue in the upcoming days. |
Hello @miguelpruivo, |
@VyasPrachi how many issues do you have? You should move this to your own issue. Which version are you using? This package doesn’t support picking for camera since 1.3.0. |
Hi @miguelpruivo, |
@VyasPrachi is this fixed for you? |
@VyasPrachi what do you mean by capture? This package doesn't allow taking pictures at all. Are you talking about selecting the file? |
Hello @miguelpruivo, |
Yes @VyasPrachi , you must give storage access permission. @ayalma feel free to reopen this if you are still experiencing any issue. |
Hi and Thank you for you'r plugin
When trying to select big file in android screen turn's to black. (app not responding like act)
The text was updated successfully, but these errors were encountered: