Bug 1348 - Debugger crashes on ASMX web service call
Summary: Debugger crashes on ASMX web service call
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-10-07 13:49 UTC by Chris Schamper
Modified: 2016-08-03 15:25 UTC (History)
7 users (show)

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


Attachments
Exception Message (20.96 KB, image/png)
2011-10-07 13:49 UTC, Chris Schamper
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 on Developer Community 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.

Related Links:
Status:
VERIFIED FIXED

Description Chris Schamper 2011-10-07 13:49:16 UTC
Created attachment 642 [details]
Exception Message

OS: Windows 7 64 bit
IDE: Visual Studio 2010 Ultimate
Java: 6 Update 27
MonoDroid: 1.9.1
Environment: Android Emulator, 2.3.3, API Level 10
Target: Android 1.6, API Level 4


While debugging my application, I am able to always crash the debugger on an ASMX web service call. When making this call in a test application the call completes in the debugger without issue. The call successfully completes when not run in the debugger either way.

What additional information can I provide?

---------------------------
Microsoft Visual Studio
---------------------------
EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object.

   at MonoTools.Engine.MonoToolsSession.OnExceptionThrown(Object sender, TargetEventArgs args)

   at Mono.Debugging.Client.DebuggerSession.OnTargetEvent(TargetEventArgs args)

   at Mono.Debugging.Soft.SoftDebuggerSession.HandleBreakEventSet(Event[] es, Boolean dequeuing)

   at Mono.Debugging.Soft.SoftDebuggerSession.HandleEventSet(EventSet es)

   at Mono.Debugging.Soft.SoftDebuggerSession.EventHandler()
---------------------------
OK   
---------------------------
Comment 1 Jonathan Pobst 2011-10-07 16:18:38 UTC
I am guessing this has something to do with the way you are calling the web service, probably on some sort of background thread that the debugger is not aware of.  Can you post the code you use to invoke your web service, or even better post a self contained sample using a public web service?

http://android.xamarin.com/Documentation/Guides/Consuming_Web_Services
Comment 3 Jonathan Pobst 2011-10-10 18:36:22 UTC
Thanks for the test case.  It appears related to breaking on handled exceptions.  You can turn off this behavior by going to Debug->Exceptions and unchecking "Thrown" for CLR exceptions.

I'll work on handling this properly.
Comment 4 Jonathan Pobst 2011-10-11 17:45:31 UTC
Fixed in fd430827f10c1c440458fc4f9ba62af2fe93b7a9.

This will be available in MFA 1.9.2.

Thanks for the report!
Comment 5 Chris Schamper 2011-10-12 12:02:54 UTC
Thank you!