[Mono-bugs] [Bug 691138] Monotouch crashes app when WCF call fails, eg 404

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Aug 5 11:35:09 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=691138

https://bugzilla.novell.com/show_bug.cgi?id=691138#c4


Sebastien Pouliot <sebastien.pouliot at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 CC|                            |sebastien.pouliot at gmail.com
       InfoProvider|                            |ianvink at gmail.com

--- Comment #4 from Sebastien Pouliot <sebastien.pouliot at gmail.com> 2011-08-05 15:35:08 UTC ---
I get the button on my (iPad 1st gen) device and I can see the (expected
exception) on the device logs but I do *not* get the crash and can click the
button many times (which would duplicate the log entries).

Can you test your sample on the (released) 4.0.4.1 and/or the (soon to be
released) 4.1 ?


/Developer/MonoTouch/usr/bin/mtouch --logdev

Aug  5 11:35:42 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:
Socket error while connecting to 10.0.1.4 on port 10001: Connection refused
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:
[0x4d29000:] EXCEPTION handling: System.Net.WebException: The remote server
returned an error: (404) Not Found.
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:
"Threadpool worker" tid=0x0x4d29000 this=0x0x4bf2ca8 thread handle 0x10b state
: not waiting owns ()
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult)
<0x0054c>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData)
<0x003c7>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.Net.WebConnection.ReadDone (System.IAsyncResult) <0x006e7>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
(wrapper runtime-invoke) object.runtime_invoke_dynamic
(intptr,intptr,intptr,intptr) <0xffffffff>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:
[0x4d29000:] EXCEPTION handling: System.Net.WebException: The remote server
returned an error: (404) Not Found.
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:
"Threadpool worker" tid=0x0x4d29000 this=0x0x4bf2ca8 thread handle 0x10b state
: not waiting owns ()
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult) <0x001b0>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.ServiceModel.Channels.HttpRequestChannel.GotResponse
(System.IAsyncResult) <0x0017b>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.Net.WebAsyncResult.CB (object) <0x0002f>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
(wrapper runtime-invoke) object.runtime_invoke_dynamic
(intptr,intptr,intptr,intptr) <0xffffffff>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:
[0x4bb2000:] EXCEPTION handling: System.Net.WebException: There was an error on
processing web request: Status code 404(NotFound): Not Found
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:
"Threadpool worker" tid=0x0x4bb2000 this=0x0x4a866a0 thread handle 0x109 state
: not waiting owns ()
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.ServiceModel.Channels.HttpRequestChannel/HttpChannelRequestAsyncResult.WaitEnd
() <0x0009c>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.ServiceModel.Channels.HttpRequestChannel.EndRequest
(System.IAsyncResult) <0x00077>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.ServiceModel.Channels.HttpRequestChannel.Request
(System.ServiceModel.Channels.Message,System.TimeSpan) <0x00063>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request
(System.ServiceModel.Channels.Message,System.TimeSpan) <0x0024b>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request
(System.ServiceModel.Description.OperationDescription,object[]) <0x0015b>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.ServiceModel.MonoInternal.ClientRuntimeChannel.DoProcess
(System.Reflection.MethodBase,string,object[]) <0x0007f>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.ServiceModel.MonoInternal.ClientRuntimeChannel.Process
(System.Reflection.MethodBase,string,object[]) <0x0003f>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
(wrapper runtime-invoke) object.runtime_invoke_dynamic
(intptr,intptr,intptr,intptr) <0xffffffff>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:
[0x4bb2000:] EXCEPTION handling: System.Net.WebException: There was an error on
processing web request: Status code 404(NotFound): Not Found
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:
"Threadpool worker" tid=0x0x4bb2000 this=0x0x4a866a0 thread handle 0x109 state
: not waiting owns ()
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.ServiceModel.MonoInternal.ClientRuntimeChannel.Process
(System.Reflection.MethodBase,string,object[]) <0x00058>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
(wrapper runtime-invoke) object.runtime_invoke_dynamic
(intptr,intptr,intptr,intptr) <0xffffffff>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:
[0x4bb2000:] EXCEPTION handling: System.Net.WebException: There was an error on
processing web request: Status code 404(NotFound): Not Found
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:
"Threadpool worker" tid=0x0x4bb2000 this=0x0x4a866a0 thread handle 0x109 state
: not waiting owns ()
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
(wrapper delegate-end-invoke) <Module>.end_invoke_object__this___IAsyncResult
(System.IAsyncResult) <0xffffffff>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.ServiceModel.MonoInternal.ClientRuntimeChannel.EndProcess
(System.Reflection.MethodBase,string,object[],System.IAsyncResult) <0x00067>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.ServiceModel.ClientBase`1/ChannelBase`1.EndInvoke
(string,object[],System.IAsyncResult) <0x000ab>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
General.TimesheetServiceClient/TimesheetServiceClientChannel.EndGetClients
(System.IAsyncResult) [0x00007] in
/Users/sebastienpouliot/Downloads/WCFCrash-1/WCFCrash/TimesheetService.cs:3009
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
General.TimesheetServiceClient.General.ITimesheetService.EndGetClients
(System.IAsyncResult) [0x00000] in
/Users/sebastienpouliot/Downloads/WCFCrash-1/WCFCrash/TimesheetService.cs:1941
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
General.TimesheetServiceClient.OnEndGetClients (System.IAsyncResult) [0x00000]
in
/Users/sebastienpouliot/Downloads/WCFCrash-1/WCFCrash/TimesheetService.cs:1952
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.ServiceModel.ClientBase`1/<InvokeAsync>c__AnonStorey10.<>m__10
(System.IAsyncResult) <0x00077>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
(wrapper runtime-invoke) object.runtime_invoke_dynamic
(intptr,intptr,intptr,intptr) <0xffffffff>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:
[0x4d29000:] EXCEPTION handling: System.Xml.XmlException: Document Type
Declaration (DTD) is prohibited in this XML.  Line 1, position 10.
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:
"Threadpool worker" tid=0x0x4d29000 this=0x0x4bf2ca8 thread handle 0x10b state
: not waiting owns ()
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
Mono.Xml2.XmlTextReader.ReadDoctypeDecl () <0x002d8>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
Mono.Xml2.XmlTextReader.ReadDeclaration () <0x000ab>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
Mono.Xml2.XmlTextReader.ReadContent () <0x001c7>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
Mono.Xml2.XmlTextReader.Read () <0x001a7>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.Xml.XmlTextReader.Read () <0x000df>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.Xml.XmlSimpleDictionaryReader.Read () <0x00027>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.Xml.XmlReader.MoveToContent () <0x000bf>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.ServiceModel.Channels.XmlReaderMessage.ReadEnvelopeStart () <0x00027>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.ServiceModel.Channels.XmlReaderMessage..ctor
(System.ServiceModel.Channels.MessageVersion,System.Xml.XmlDictionaryReader,int)
<0x0009b>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.ServiceModel.Channels.Message.CreateMessage
(System.Xml.XmlDictionaryReader,int,System.ServiceModel.Channels.MessageVersion)
<0x0005b>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.ServiceModel.Channels.TextMessageEncoder.ReadMessage
(System.IO.Stream,int,string) <0x0006f>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.ServiceModel.Channels.HttpRequestChannel.GotResponse
(System.IAsyncResult) <0x00677>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
System.Net.WebAsyncResult.CB (object) <0x0002f>
Aug  5 11:35:51 Neptune UIKitApplication:wcfcrash[0x1b7a][1068] <Notice>:   at
(wrapper runtime-invoke) object.runtime_invoke_dynamic
(intptr,intptr,intptr,intptr) <0xffffffff>

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list