Bug 36453 - Xamarin Inspector crashes on Genymotion
Summary: Xamarin Inspector crashes on Genymotion
Status: VERIFIED FIXED
Alias: None
Product: Workbooks & Inspector
Classification: Xamarin
Component: Client: Windows ()
Version: 0.3.2
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: xamarininteractive
URL:
Depends on:
Blocks:
 
Reported: 2015-12-02 02:06 UTC by Mahmoud Ali
Modified: 2016-10-12 09:28 UTC (History)
4 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 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 Mahmoud Ali 2015-12-02 02:06:32 UTC
Overview: Xamarin Inspector crashes when interacting with Genymotion emulator

Steps to reproduce: 
1) Open any app in Genymotion (version 2.5.4)
2) Open an Android emulator (version used: Android 5.1 API 22)
3) Open Xamarin Inspector

*Case #1:*
1) Try to click "Select a view", it crashes instantly with a generic Windows crash report and no further details. 
I managed to get the Event Viewer Logs related to this:

"Application Error":
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" /> 
<EventID Qualifiers="0">1000</EventID> 
<Level>2</Level> 
<Task>100</Task> 
<Keywords>0x80000000000000</Keywords> 
<TimeCreated SystemTime="2015-12-02T01:17:55.000000000Z" /> 
<EventRecordID>13857</EventRecordID> 
<Channel>Application</Channel> 
<Computer>Mahmoud-PC</Computer> 
<Security /> 
</System>
<EventData>
<Data>XamarinInspector.exe</Data> 
<Data>0.3.2.3</Data> 
<Data>564b941c</Data> 
<Data>KERNELBASE.dll</Data> 
<Data>6.3.9600.17415</Data> 
<Data>54504ade</Data> 
<Data>e0434352</Data> 
<Data>00014598</Data> 
<Data>814</Data> 
<Data>01d12c9f43a4c793</Data> 
<Data>C:\Program Files (x86)\Xamarin\Inspector\Client\XamarinInspector.exe</Data> 
<Data>C:\Windows\SYSTEM32\KERNELBASE.dll</Data> 
<Data>839e9dd0-9892-11e5-825d-7c05070d8605</Data> 
<Data /> 
<Data /> 
</EventData>
</Event>

".NET Runtime"
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name=".NET Runtime" /> 
<EventID Qualifiers="0">1026</EventID> 
<Level>2</Level> 
<Task>0</Task> 
<Keywords>0x80000000000000</Keywords> 
<TimeCreated SystemTime="2015-12-02T01:17:55.000000000Z" /> 
<EventRecordID>13856</EventRecordID> 
<Channel>Application</Channel> 
<Computer>Mahmoud-PC</Computer> 
<Security /> 
</System>
<EventData>
<Data>Aplicativo: XamarinInspector.exe Versão do Framework: v4.0.30319 Descrição: O processo foi terminado devido a uma exceção sem tratamento. Informações da Exceção: System.ArgumentException Pilha: em Xamarin.Inspector.Core.AgentCoordinateMapper.Create(Xamarin.Inspector.Core.AgentClient, System.Windows.Window) em Xamarin.Inspector.Windows.Client.Highlighter.Start() em Xamarin.Inspector.Windows.Client.AgentSessionWindow.OnInspectButtonClick(System.Object, System.Windows.RoutedEventArgs) em System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs) em System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean) em System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs) em System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs) em System.Windows.Controls.Primitives.ButtonBase.OnClick() em System.Windows.Controls.Button.OnClick() em System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs) em System.Windows.UIElement.OnMouseLeftButtonUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs) em System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object) em System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object) em System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs) em System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean) em System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent) em System.Windows.UIElement.OnMouseUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs) em System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object) em System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object) em System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs) em System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean) em System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs) em System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs) em System.Windows.Input.InputManager.ProcessStagingArea() em System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs) em System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport) em System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32) em System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef) em System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) em MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) em MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) em System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) em System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) em System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) em MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr) em MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) em System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame) em System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame) em System.Windows.Application.RunDispatcher(System.Object) em System.Windows.Application.RunInternal(System.Windows.Window) em System.Windows.Application.Run(System.Windows.Window) em Xamarin.Inspector.Windows.Client.App.Main()</Data> 
</EventData>
</Event>

The stack strace is in pt-BR, as logged

*Case #2:*
1) Try to access any object via REPL inside the Xamarin Inspector

The Inspector will hang for a while and close with no errors or messages

Note that just the inspector crashes in the cases mentioned above. Xamarin Studio, Genymotion and the app itself are all running even after the crashes.

Hardware and Software used:
Windows 8.1, 64-bits
Genymotion 2.5.4
Xamarin Studio 5.10
Comment 1 Mahmoud Ali 2015-12-02 02:40:54 UTC
I was just told that this does not work with Genymotion at the moment.

https://developer.xamarin.com/guides/cross-platform/inspector/
Comment 2 Sandy Armstrong [MSFT] 2015-12-02 18:10:30 UTC
Genymotion is not yet supported, but it shouldn't crash and hang. Will fix, thanks for filing.
Comment 3 Aaron Bockover [MSFT] 2016-05-26 13:14:40 UTC
Any update on this? Sandy?
Comment 4 Arpit Jha 2016-10-12 09:27:55 UTC
I have checked this issue with workbook 0.10.0.428 and observed that workbooks shows proper error "No Supported Emulator Found"  If only Genymotion device installed on machine.

Workbooks only supports VS Emulator for android and Xamarin Android Player.

Screencast : http://www.screencast.com/t/tWCAOT2jpj4R

For now I am closing this issue. 

Please feel free to reopen this issue if you are facing again in future.