Bug 49425 - TargetInvocationException in vs2013 Threads window
Summary: TargetInvocationException in vs2013 Threads window
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: 4.2.0 (C8)
Hardware: PC Windows
: High normal
Target Milestone: 4.4.0 (C10)
Assignee: Joaquin Jares
URL:
Depends on:
Blocks:
 
Reported: 2016-12-09 10:46 UTC by anton.duzenko@gmail.com
Modified: 2017-01-13 11:51 UTC (History)
3 users (show)

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


Attachments
screenshot (138.37 KB, image/png)
2016-12-09 10:46 UTC, anton.duzenko@gmail.com
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:
RESOLVED FIXED

Description anton.duzenko@gmail.com 2016-12-09 10:46:08 UTC
Created attachment 18849 [details]
screenshot

I'm trying to debug a simple app on an Android device.
My problem is when a breakpoint is hit, the Threads window shows exception details instead of thread list.
An exception was encountered while constructing the content of this frame. This information is also logged in "C:\Users\user\AppData\Roaming\Microsoft\VisualStudio\12.0\ActivityLog.xml".

Exception details:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: key
   at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
   at Microsoft.VisualStudio.Debugger.DebuggerToolWindows.ThreadWindow.ThreadWindowControl.LoadModule(String moduleName, String modulePath, Boolean loaded)
   at Microsoft.VisualStudio.Debugger.DebuggerToolWindows.ThreadWindow.DataManager.Microsoft.VisualStudio.Debugger.DebuggerToolWindows.ThreadWindow.IThreadWindowDataManager.ModuleLoad(IDebugModule2 nativeModule, Boolean isLoad)
   at Microsoft.VisualStudio.Debugger.DebuggerToolWindows.ThreadWindow.DataManager.ReloadModules()
   at Microsoft.VisualStudio.Debugger.DebuggerToolWindows.ThreadWindow.DataManager.Microsoft.VisualStudio.Debugger.DebuggerToolWindows.ThreadWindow.IThreadWindowDataManager.ReloadAllData()
   at Microsoft.VisualStudio.Debugger.DebuggerToolWindows.ThreadWindow.WindowAdaptor.InitializeDataManager(ThreadToolWindow threadToolWindow, IThreadWindow threadWindowControl)
   at Microsoft.VisualStudio.Debugger.DebuggerToolWindows.ThreadWindow.ThreadToolWindow..ctor()
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, ProvideToolWindowAttribute tool)
   at Microsoft.VisualStudio.Shell.Package.FindToolWindow(Type toolWindowType, Int32 id, Boolean create, ProvideToolWindowAttribute tool)
   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsToolWindowFactory.CreateToolWindow(Guid& toolWindowType, UInt32 id)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()

Microsoft Visual Studio Ultimate 2013
Version 12.0.40629.00 Update 5
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Ultimate
...
Xamarin   4.2.1.64 (872717c)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.0.2.37 (ce955cc)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.2.1.5 (44931ae)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 Joaquin Jares 2017-01-13 11:51:53 UTC
The threads window bug is now fixed. I'm closing this bug for verification.