Bug 4618 - System.InvalidOperationException: The vm is not suspended.
Summary: System.InvalidOperationException: The vm is not suspended.
Status: RESOLVED NORESPONSE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: Trunk
Hardware: PC Linux
: High major
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2012-04-24 07:44 UTC by Marek Safar
Modified: 2013-12-05 18:34 UTC (History)
3 users (show)

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


Attachments
test project (37.53 KB, application/x-7z-compressed)
2012-04-24 08:03 UTC, Marek Safar
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 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.

Related Links:
Status:
RESOLVED NORESPONSE

Description Marek Safar 2012-04-24 07:44:41 UTC
Error in soft debugger method call thread on method Boolean System.Threading.CancellationToken:get_IsCancellationRequested () on object System.Threading.CancellationToken
System.InvalidOperationException: The vm is not suspended.
  at Mono.Debugger.Soft.VirtualMachine.ErrorHandler (System.Object sender, Mono.Debugger.Soft.ErrorHandlerEventArgs args) [0x0004f] in /home/marek/git/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/VirtualMachine.cs:287 
  at Mono.Debugger.Soft.ObjectMirror.EndInvokeMethodInternal (IAsyncResult asyncResult) [0x0004a] in /home/marek/git/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/ObjectMirror.cs:259 
  at Mono.Debugger.Soft.StructMirror.EndInvokeMethod (IAsyncResult asyncResult) [0x00001] in /home/marek/git/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/StructMirror.cs:68 
  at Mono.Debugging.Soft.MethodCall.EndInvoke () [0x00074] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs:1275 
Mono.Debugging.Evaluation.EvaluatorException: The vm is not suspended.
  at Mono.Debugging.Soft.MethodCall.get_ReturnValue () [0x0002f] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs:1336 
  at Mono.Debugging.Soft.SoftEvaluationContext.RuntimeInvoke (Mono.Debugger.Soft.MethodMirror method, System.Object target, Mono.Debugger.Soft.Value[] values) [0x0012a] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftEvaluationContext.cs:134 
  at Mono.Debugging.Soft.PropertyValueReference.get_Value () [0x00018] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/PropertyValueReference.cs:98 
  at Mono.Debugging.Evaluation.ObjectValueAdaptor.EvaluateDisplayString (Mono.Debugging.Evaluation.EvaluationContext ctx, System.Object obj, System.String exp) [0x000ba] in /home/marek/git/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/ObjectValueAdaptor.cs:1003 
  at Mono.Debugging.Evaluation.ObjectValueAdaptor.CreateObjectValueImpl (Mono.Debugging.Evaluation.EvaluationContext ctx, IObjectValueSource source, ObjectPath path, System.Object obj, ObjectValueFlags flags) [0x000ef] in /home/marek/git/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/ObjectValueAdaptor.cs:345 
  at Mono.Debugging.Evaluation.ObjectValueAdaptor.CreateObjectValue (Mono.Debugging.Evaluation.EvaluationContext ctx, IObjectValueSource source, ObjectPath path, System.Object obj, ObjectValueFlags flags) [0x00002] in /home/marek/git/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/ObjectValueAdaptor.cs:66
Comment 1 Marek Safar 2012-04-24 07:46:05 UTC
This happens frequently when switching between threads
Comment 2 Marek Safar 2012-04-24 08:03:49 UTC
Created attachment 1735 [details]
test project
Comment 3 Marek Safar 2012-04-24 08:04:40 UTC
Occasionally crashes mono but mostly causes debugger to return bogus values
Comment 4 Alan McGovern 2012-05-02 10:07:59 UTC
I also frequently get this and when trying to step. Something happens and the debugger thinks it has not been suspended but the application never progresses. I haven't figured out a good repro for it
Comment 5 Jeffrey Stedfast 2012-05-03 14:54:32 UTC
Someone's going to have to create a test case I can actually use (I don't seem to have libintl.dylib so marek's test case won't run for me).

I tried creating a simple multi-threaded app but I can't reproduce this issue.
Comment 6 Jeremy Kolb 2013-06-04 16:09:54 UTC
I'm seeing this in VS 2012 on Android.  It makes it impossible to debug.
Comment 7 PJ 2013-11-19 17:04:46 UTC
This bug has been in the NEEDINFO state with no changes for the last 90 days. Can we put this back into the NEW or CONFIRMED state, or are we still awaiting response?

If there is no change in the status of this bug over the next two weeks, this bug will be marked as NORESPONSE.
Comment 8 PJ 2013-12-05 18:34:56 UTC
This bug has not been changed from the NEEDINFO state since my previous comment, marking as RESOLVED NORESPONSE.

Please feel free to REOPEN this bug at any time if you are still experiencing the issue. Please add the requested information and set the bug back to the NEW (or CONFIRMED) state.