Bug 25176 - UITest freezes and fails with "System.Web.Exception: The operation has timed out" when there is large string trace to Debug.WriteLine or Console.WriteLine
Summary: UITest freezes and fails with "System.Web.Exception: The operation has timed ...
Status: NEW
Alias: None
Product: TestCloud
Classification: Xamarin
Component: General ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-12-09 06:51 UTC by Seifer
Modified: 2014-12-09 06:55 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
A project with reproduce of UITest freeze (10.03 KB, application/zip)
2014-12-09 06:51 UTC, Seifer
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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 for Bug 25176 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Seifer 2014-12-09 06:51:05 UTC
Created attachment 9002 [details]
A project with reproduce of UITest freeze

-----------------------

Steps to reproduce:

1. Make sure there is a trace of a large string (more then 10.000 characters) to Debug.WriteLine or Console.WriteLine in one of Core or UI project's method that is going to be tested
2. Add a UITest so that a method with Debug.WriteLine is used

Expected result:
- Test should pass

Actual result:
- freeze of UITest

Possible time of the fail: 5 minutes 15 seconds

Possible stack trace of the fail:

  at Xamarin.UITest.Utils.ErrorReporting.With (System.Action func, System.Object[] args, System.String memberName) [0x00000] in <filename unknown>:0 
  at Xamarin.UITest.iOS.iOSApp.Tap (System.Func`2 query) [0x00000] in <filename unknown>:0 
  at UITestFreeze.UITest.Test.Freeze () [0x0006d] in /Users/admin/Projects/Playgard/UITestFreeze/UITestFreeze.UITest/Test.cs:34 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:230 
--WebException
  at System.Net.WebConnectionStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00055] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/System/System.Net/WebConnectionStream.cs:337 
  at System.IO.StreamReader.ReadBuffer () [0x0000e] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/corlib/System.IO/StreamReader.cs:395 
  at System.IO.StreamReader.ReadToEnd () [0x0002c] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/corlib/System.IO/StreamReader.cs:583 
  at Xamarin.UITest.Shared.Http.HttpClient.Post (System.String endpoint, System.String arguments, ExceptionPolicy exceptionPolicy, Nullable`1 timeOut) [0x00000] in <filename unknown>:0 

-------------------------

Check a project with the reproduce in the attachment.

Check RootViewController.cs->BigTrace() method for freeze and a few comments

-------------------------
Environment:

Xamarin Studio
Version 5.5.4 (build 15)
Runtime:
	Mono 3.10.0 ((detached/92c4884)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000031

Xamarin.Android
Version: 4.20.0.28 (Business Edition)
Android SDK: /Users/admin/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

Apple Developer Tools
Xcode 6.1.1 (6611)
Build 6A2008a

Xamarin.iOS
Version: 8.4.0.43 (Business Edition)
Hash: 840a925
Branch: 
Build date: 2014-11-16 21:03:22-0500

Xamarin.Mac
Version:

Build Information
Release ID: 505040015
Build date: 2014-11-19 15:32:41-05

Operating System
Mac OS X 10.10.1
Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 1 Seifer 2014-12-09 06:54:13 UTC
Maybe the issue described on the Forum somehow related:
http://forums.xamarin.com/discussion/comment/82673/#Comment_82673