Bug 4619 - System.NotImplementedException: Unable to handle type 196
Summary: System.NotImplementedException: Unable to handle type 196
Status: RESOLVED NORESPONSE
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: unspecified
Hardware: PC Linux
: Normal major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-04-24 07:49 UTC by Marek Safar
Modified: 2017-07-07 18:41 UTC (History)
6 users (show)

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

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 GitHub or 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:
RESOLVED NORESPONSE

Description Marek Safar 2012-04-24 07:49:22 UTC
System.NotImplementedException: Unable to handle type 196
  at Mono.Debugger.Soft.Connection+PacketReader.ReadValue () [0x00381] in /home/marek/git/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs:805 
  at Mono.Debugger.Soft.Connection.StackFrame_GetThis (Int64 thread_id, Int64 id) [0x0001c] in /home/marek/git/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs:2110 
  at Mono.Debugger.Soft.StackFrame.GetThis () [0x00001] in /home/marek/git/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/StackFrame.cs:138 
  at Mono.Debugging.Soft.SoftDebuggerAdaptor.GetThisReference (Mono.Debugging.Soft.SoftEvaluationContext cx) [0x0001e] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs:636 
  at Mono.Debugging.Soft.SoftDebuggerAdaptor.OnGetThisReference (Mono.Debugging.Evaluation.EvaluationContext ctx) [0x00020] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerAdaptor.cs:628 
  at Mono.Debugging.Evaluation.ObjectValueAdaptor.GetThisReference (Mono.Debugging.Evaluation.EvaluationContext ctx) [0x00001] in /home/marek/git/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/ObjectValueAdaptor.cs:549 
  at Mono.Debugging.Evaluation.BaseBacktrace.GetFrameInfo (Int32 frameIndex, Mono.Debugging.Client.EvaluationOptions options, Boolean ignoreEvalStatus) [0x00072] in /home/marek/git/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/BaseBacktrace.cs:226 
  at Mono.Debugging.Evaluation.BaseBacktrace.GetParameters (Int32 frameIndex, Mono.Debugging.Client.EvaluationOptions options) [0x00027] in /home/marek/git/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Evaluation/BaseBacktrace.cs:75 
  at Mono.Debugging.Client.StackFrame.GetParameters (Mono.Debugging.Client.EvaluationOptions options) [0x00018] in /home/marek/git/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Client/StackFrame.cs:134 
  at Mono.Debugging.Client.StackFrame.GetParameters () [0x00001] in /home/marek/git/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Client/StackFrame.cs:127 
  at MonoDevelop.Debugger.StackTracePad.Update () [0x00061] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/StackTracePad.cs:129 
  at MonoDevelop.Debugger.StackTracePad.UpdateDisplay () [0x0001c] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/StackTracePad.cs:106 
  at MonoDevelop.Debugger.StackTracePad.OnClassStackChanged (System.Object o, System.EventArgs args) [0x0000c] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/StackTracePad.cs:176 
  at __EventHandler_DelegateFactory_8.Dispatch (System.Object ) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.GuiSyncContext.AsyncDispatch (MonoDevelop.Ide.StatefulMessageHandler cb, System.Object ob) [0x0000b] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/GuiSyncContext.cs:47 
  at __EventHandler_DelegateFactory_8.ProxyCall (System.Object , System.EventArgs ) [0x00000] in <filename unknown>:0 
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at MonoDevelop.Debugger.DebuggingService.NotifyCallStackChanged () [0x0000b] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/DebuggingService.cs:672 
  at MonoDevelop.Debugger.DebuggingService.<SetCurrentBacktrace>m__1B () [0x00001] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/DebuggingService.cs:779 
  at MonoDevelop.Ide.GenericMessageContainer.Run () [0x00002] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/DispatchService.cs:334
Comment 1 Jeffrey Stedfast 2012-04-24 18:18:06 UTC
either there's a bug in Mono.Debugger.Soft's protocol code or else the runtime sent us an invalid enum value
Comment 2 Zoltan Varga 2012-04-25 03:44:17 UTC
How can I repro this ?
Comment 3 Marek Safar 2012-04-25 03:48:07 UTC
Try project from bug #4618 and play with debugger for few minutes.
Comment 4 Marek Safar 2012-04-26 08:49:26 UTC
After some serious time spent on trying to come up with 100% reproducible repro here are the steps

MD master & Mono master

Patch MD to work with mono master, using https://gist.github.com/2499335

1. open git/mono/mcs/class/System.Net.Http/System.Net.Http-net_4_5.sln
2. Set a breakpoint in git/mono/mcs/class/System.Net.Http/System.Net.Http/HttpContent.cs at line 132 (buffer.Seek (0, SeekOrigin.Begin);)
3. Run unit test HttpLcientTest::Send_Content_Get using debugger from Unit Tests pad.
4. Once the breakpoint is hit F5 (continue)

Debugger crashes withAn exception was thrown while dispatching a method call in the UI thread. System.NotImplementedException: Unable to handle type 148
  at Mono.Debugger.Soft.Connection+PacketReader.ReadValue () [0x00381] in /home/marek/git/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs:805 
  at Mono.Debugger.Soft.Connection.StackFrame_GetThis (Int64 thread_id, Int64 id) [0x0001c] in /home/marek/git/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs:2110 
  at Mono.Debugger.Soft.StackFrame.GetThis () [0x00001] in /home/marek/git/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/StackFrame.cs:138
Comment 5 Zoltan Varga 2012-05-06 20:31:43 UTC
I was never able to reproduce this ? Does this still happen after that SIGSEGV fix ?
Comment 6 Ludovic Henry 2017-07-07 18:41:52 UTC
If you can still reproduce with latest mono version, please feel free to reopen the bug. Thank you.