Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
The following code locks up/freezes when run on iPad 1 with heavy download load. The thread just stops responding and 5 minutes later throws timeout error. Server logs indicate the device stops sending requests.
public void GetFile(string fileName, string url)
Timer timer = new Timer(SafetyValve);
WriteLog("GetFile: "+fileName+" at url: "+url);
Console.WriteLine("GetFile: "+fileName+" at url: "+url);
WebClient wc = new WebClient();
Uri uri = new Uri(url);
timer.Change (0, 500); // Trigger it now and every 500ms
byte bytes = wc.DownloadData(uri);
timer.Change (Timeout.Infinite, Timeout.Infinite);
string path = Path.Combine(tmpPath, fileName);
Console.WriteLine("Error in GetFile "+ex.ToString());
WriteLog("Error in GetFile "+ex.ToString());
static void SafetyValve(object state)
// Console.WriteLine("SafetyValve fired");
Compiled with MT 4.0.6.
To whoever takes care of this bug: the 'Timer' related code in this sample is a workaround for the threadpool bug I fixed. My guess is that once the fix is released this problem will go away, but I can't test this.
What version of MonoTouch are you using?
We release an update that fixes this problem.
Has this bug been reintroduced? I'm experiencing problems with large downloads in 5.0.1. It gets stuck on the device and times out. It worked in later MT 4 versions.
I would like to try the timer workaround, but how exactly does it work?
The project attached to this bug: http://bugzilla.xamarin.com/show_bug.cgi?id=2843 has a full test case for the FaultException.
Rolf would you mind taking a look a tthis?
René: are your comment #4 for this bug or for bug #2859?
And for this bug, are you downloading data just like the original bug reporter (WebClient.DownloadData), or are you using some other methods?
My comment 4 here is for this bug. Comment 5 however does not make a lot of sense. This should not be here and belongs to bug 2859. I copied it there.
René: are you downloading data just like the original bug reporter (WebClient.DownloadData), or are you using some other methods?
I am using Webservices 2.0 (SOAP) with an async call to download Base64 encoded XML.
Hi ric3kg, Rene, it looks like you answered all the questions way back when for this bug - sorry we never got to the bottom of it. We're cleaning things up a bit
and at this point we might need an update.
It looks like there was a fix from Gonzalo back in comment 1 that has been released since. Have you been able to reproduce in any recent MonoTouch (Xamarin.iOS) build?
In the interest of bugzilla sanity,
if we can't make forward progress here I will end up marking it as resolved
during the next release cycle.
Moving milestone to 6.4.x
To my knowledge, this issue has been resolved long ago.
Closing this then. Feel free to reopen if it still occurs.