-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
UNKNOWN IO ERROR during download on some devices #204
Comments
I guess it's better to answer your question (which version of Android are you using?) here: I'm using Android 10 on all of my devices (Samsung S9 and Samsung Galaxy Tab S6). Furthermore I can confirm that this issue still exists: I used this video to test it. Also I don't think that's a (client side) bandwidth issue. Wifi strength is perfect, too:
|
I will try to reproduce it and maybe come back to you. |
Curious. I can't even start a download of this show on my device. |
I think I narrowed this error down to large file sizes on Android 10 devices. Maybe this is a fetch problem of some kind? |
It is not related with the MediaStore framework. |
The sd card is causing this issue. @alexanderadam I don't know if you have enough storage space left on your device; But does the same error occur if you do not download to sd card but to internal storage? On my device I cannot download any large file to sd card. It does not even show a notification. Downloading to internal storage seems to work fine. Can you verify this? |
Interesting thought, Sherlock! 🕵️♀️
UPDATE: @cemrich sorry, this issue also happens on internal space in my case. 😞 I still believe that the If I try to download the HQ video on my working machine (a desktop computer), the speed varies drastically! So it could be that the server simply delivers it slowly sometimes (or speed depends where you are) and we're therefore really running into a timeout. This is the same machine and connection where I made the speedtest ( It even wen't down to If this command is much faster for you, you obvious are simply getting a faster delivery than me (could be depending on the country / akamai zone): $ wget http://wdrmedien-a.akamaihd.net/medp/ondemand/weltweit/fsk0/210/2104880/2104880_26030869.mp4 Would it be possible to make the timeout configurable? |
It is most definitely caused by the sd card. My Android 7 test device is having issues too - but only when downloading to sd card. |
No, the files I tested were much smaller.
Do you think it is the same issue? I wonder, if we are debugging two different issues here.
It averages around 1.5MB/s but is changing very fast. I think I can improve timeouts, set another downloader for Fetch to use and release a new beta. This does not fix my sd card issue but maybe your timeout / io error... |
I have the feeling that
Sounds good. I will give you feedback again, after I was able to test it. Is this comment helping in any way?
I just found something regarding this (other) issue:
|
Yes, I enabled logging, but nothing helpful there. I tweaked the parameters quite a bit. It has to be better now ;)
Did you ever see a FILE_ALLOCATION_FAILED error? |
No, I need a file bigger than 4 GB to provoke that issue and I don't know any video with that size (yet). |
The beta version will have to wait a bit. OkHTTP causes other issues (like errors are not recognized correctly). I will have to test different options before releasing anything. |
I know that I wrote this before already but I really hope that you know that people value the work you're doing. Thank you so much for doing this. |
I just released 3.5.1-beta.1 with increased timeouts and OkHTTP downloader. Additionally files are no longer pre allocated which fixes my sd card problem. Please give it a try and report any errors! |
Sadly doesn't fix the issue for me. Thanks a lot tough for your awesome work! |
I can confirm that this exact bug is still present in 3.5.1-beta. |
@ybrhue Do you see a |
I just published another release 3.5.1-beta.2 to further test this issue. There is now a small "Report"-Button inside the download error notification which will give you the opportunity to send me a detailed error report. Feel free to add further information to the mail or to paste the error stacktrace right here into this issue. Thanks for your help! |
After some download progress and only on larger files.
I don't have an error notification in this release and I can't see a |
@alexanderadam There should be one. Can you please confirm there is no notification by killing the connection during download? |
Sorry, my fault: I had to swipe the notification down again to see the sharing thingy and this wasn't really obvious to me at first because the UI didn't gave me a proper hint to do so. However, it seems that this will only open the email program with your email address as receiver. It is not attaching a backtrace or any other info, though. |
There should be a bunch of text inside the mail. I confirmed it works at least with K9 mail, but this should be pretty standard with all other mail apps. Maybe you mail app cannot process the intent used by ACRA crash reporting... |
I got the same error message from a few people using Android 10 devices downloading to internal memory:
I got the error on my test device but I have no clue on how to reproduce it... |
The error may be related to tonyofrancis/Fetch#454 |
A new version 3.6.0 is out and will hit F-Droid in a couple of days. Can you please test if downloading behaves differently now? I may have fixed the error but I am not really sure... |
I will test it. I hope I won't miss the release (you can remind me in case I forget it). |
@alexanderadam It is released! |
@cemrich seems to work perfectly! 🎉 Just a small question: in case a download can't be finished there's still the half downloaded video file around somewhere, right? I guess this issue can be closed then? And if somebody else still has this issue, this could be reopened anyway later on. PS: I know that I wrote this already but I really like the UI changes you did by implementing this. This is really great work. 👍 |
Yay! Finally!
No, they don't get deleted, but maybe should... I created issue #212 |
Zapp-Version: 3.5.0
Android-Version: 10
Devices:
Could be related to timeout settings in Fetch.
The text was updated successfully, but these errors were encountered: