Bug 60402 - NullReferenceException: AvdWatcher.cs line 255: modTimes == null
Summary: NullReferenceException: AvdWatcher.cs line 255: modTimes == null
Status: NEEDINFO
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2017-10-26 22:48 UTC by Kirill Osenkov
Modified: 2017-10-30 02:55 UTC (History)
2 users (show)

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


Attachments
Screenshot (217.62 KB, image/png)
2017-10-26 22:48 UTC, Kirill Osenkov
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 for Bug 60402 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEEDINFO

Description Kirill Osenkov 2017-10-26 22:48:49 UTC
Created attachment 25477 [details]
Screenshot

I just started VS for Mac on Windows under debugger with first-chance exceptions enabled and saw this:



>	Mono.AndroidTools.Internal.AvdWatcher.HandleTimerElapsed Line 255	C#	Symbols loaded.
 	Mono.AndroidTools.Internal.AvdWatcher.CheckAndUpdate Line 111	C#	Symbols loaded.
 	Mono.AndroidTools.AndroidVirtualDeviceManager.CheckAndUpdate Line 85	C#	Symbols loaded.
 	MonoDevelop.MonoDroid.VirtualDeviceManager.CheckAndUpdate Line 94	C#	Symbols loaded.
 	MonoDevelop.MonoDroid.MonoDroidFramework.CheckAndUpdateVirtualDevices Line 79	C#	Symbols loaded.
 	MonoDevelop.MonoDroid.MonoDroidFramework.SetupVirtualDeviceManager.AnonymousMethod__4_0 Line 68	C#	Symbols loaded.
 	MonoDevelop.Components.Commands.CommandManager.UpdateAppFocusStatus Line 2349	C#	Symbols loaded.
 	MonoDevelop.Components.Commands.CommandManager.GetActiveWindow Line 2086	C#	Symbols loaded.
 	MonoDevelop.Components.Commands.CommandManager.GetActiveWidget Line 2098	C#	Symbols loaded.
 	MonoDevelop.Components.Commands.CommandManager.UpdateToolbars Line 2321	C#	Symbols loaded.
 	MonoDevelop.Components.Commands.CommandManager.UpdateStatus Line 2175	C#	Symbols loaded.
 	GLib.Timeout.TimeoutProxy.Invoke Line 40	C#	Symbols loaded.
Comment 1 Jon Douglas [MSFT] 2017-10-30 02:55:51 UTC
(In reply to Kirill Osenkov from comment #0)
> Created attachment 25477 [details]
> Screenshot
> 
> I just started VS for Mac on Windows under debugger with first-chance
> exceptions enabled and saw this:
> 
> 
> 
> >	Mono.AndroidTools.Internal.AvdWatcher.HandleTimerElapsed Line 255	C#	Symbols loaded.
>  	Mono.AndroidTools.Internal.AvdWatcher.CheckAndUpdate Line 111	C#	Symbols
> loaded.
>  	Mono.AndroidTools.AndroidVirtualDeviceManager.CheckAndUpdate Line 85	C#
> Symbols loaded.
>  	MonoDevelop.MonoDroid.VirtualDeviceManager.CheckAndUpdate Line 94	C#
> Symbols loaded.
>  	MonoDevelop.MonoDroid.MonoDroidFramework.CheckAndUpdateVirtualDevices Line
> 79	C#	Symbols loaded.
>  
> MonoDevelop.MonoDroid.MonoDroidFramework.SetupVirtualDeviceManager.
> AnonymousMethod__4_0 Line 68	C#	Symbols loaded.
>  	MonoDevelop.Components.Commands.CommandManager.UpdateAppFocusStatus Line
> 2349	C#	Symbols loaded.
>  	MonoDevelop.Components.Commands.CommandManager.GetActiveWindow Line 2086
> C#	Symbols loaded.
>  	MonoDevelop.Components.Commands.CommandManager.GetActiveWidget Line 2098
> C#	Symbols loaded.
>  	MonoDevelop.Components.Commands.CommandManager.UpdateToolbars Line 2321	C#
> Symbols loaded.
>  	MonoDevelop.Components.Commands.CommandManager.UpdateStatus Line 2175	C#
> Symbols loaded.
>  	GLib.Timeout.TimeoutProxy.Invoke Line 40	C#	Symbols loaded.

This looks to be Visual Studio 2017. Is that correct? Based on the screenshot I would assume so. I just want to make sure based on the "VS for Mac on Windows" description.

Secondly can you provide reproduction steps? Such as your current debugger exception settings, any special setting in Debugging -> General, and finally what you did to invoke the AvdWatcher NRE.  This way I can move forward and confirm this issue and get this work associated with the right team.

I was able to observe other first chance exceptions around the Mono.AndroidTools project, but not this exact call stack. I'd like to figure out what actions you made to get this call stack!

Thanks for the report!