Created attachment 21281 [details]
Version 220.127.116.11 (Windows 7 64-bit; VS2015 Enterprise)
After the latest version the simulator crashes at startup.
I tried resizing the simulator window as it was loading but it still crashes.
I hit what I believe to be the same issue (with a similar log file showing a zero scaling factor) and worked-around it by monkey-patching the DpiAwareWindow class in Xamarin.Simulator.Windows.exe (using Reflexil and ILSpy) to hard-code the scaling factor to 1.0 (knowing that this loses high-DPI-awareness).
> ldfld float64 Xamarin.Simulator.Windows.DpiAwareWindow::scaleX
> ldfld float64 Xamarin.Simulator.Windows.DpiAwareWindow::scaleY
Temporary replacement IL for both property accessors (a hard-coded 1.0 scale factor):
> ldc.r8 1
This has been switched to a more reliable setup in 1.0.2, it should be fixed.
*** Bug 54805 has been marked as a duplicate of this bug. ***
## Verification status: VERIFIED in candidate build (2e6d296)
> GOOD: Remoted iOS Simulator 18.104.22.168  on Windows 8.1, with .NET Framework 4.6.1
> BAD: Remoted iOS Simulator 22.214.171.124  on Windows 8.1, with .NET Framework 4.6.1
 Not yet published candidate build (2e6d296)
 The current version in the Xamarin Stable Channel and in the VS 2017 15.1 installer
Crash rate in the BAD version: 100% (4/4 trials)
Crash rate in the GOOD version: 0% (0/4 trials)
## Also VERIFIED in Alpha Remoted iOS Simulator 126.96.36.199, for users who already have (or don't mind installing) .NET 4.6.2
The current Alpha version requires .NET 4.6.2. This version requirement will be adjusted back to .NET 4.6.1 in future published builds (as noted above for the candidate build 188.8.131.52). But users who don't mind installing .NET 4.6.2 can use the Alpha Remoted iOS Simulator 184.108.40.206 to resolve this crash.
> GOOD: Remoted iOS Simulator 220.127.116.11  on Windows 8.1, with .NET Framework 4.6.2 (4.0.16590)
Crash rate: 0% (0/4 trials)
 The current version in the Xamarin Alpha Channel, not yet included in the VS 2017 installer
### Installing .NET 4.6.2
During the first run, the simulator presented the following dialog:
> This application requires one of the following versions of the .NET Framework:
> Do you want to install this .NET Framework version now?
> [Yes] [No]
I clicked "Yes". I then proceeded to quit Visual Studio, download the installer from the browser window, and run the installer.
## Excerpt of the Xamarin.Simulator.Windows.exe crash from "Windows Logs > Application" section of the Windows "Event Viewer"
> Application: Xamarin.Simulator.Windows.exe
> Framework Version: v4.0.30319
> Description: The process was terminated due to an unhandled exception.
> Exception Info: System.ArgumentException
> at System.Windows.Size..ctor(Double, Double)
> at Xamarin.Simulator.Windows.DeviceWindow.SizeForScreen()
> at Xamarin.Simulator.Windows.DeviceWindow.OnSourceInitialized(System.EventArgs)
> at System.Windows.Window.CreateSourceWindow(Boolean)
> at System.Windows.Window.CreateSourceWindowDuringShow()
> at System.Windows.Window.SafeCreateWindowDuringShow()
> at System.Windows.Window.ShowHelper(System.Object)
> at System.Windows.Window.Show()
> at Xamarin.Simulator.Windows.App+<StartDevice>d__15.MoveNext()
## Additional testing environment info
Microsoft Visual Studio Enterprise 2017
XamarinVS 18.104.22.168 (3f99c5a)
Microsoft .NET Framework 4.6.1
Windows 8.1 (64-bit) version 6.3 (Build 9600)
US English locale, US Pacific time zone
Running in Hyper-V, in a Windows 10 (64-bit) version 1607 (OS Build 14393.321) host
Xamarin.iOS 10.8.0.175 (d15-1: a04678c2)
Mono 22.214.171.124 (2017-02/851b6c7)
Xcode 8.3, Build version 8E162
Mac OS 10.12.4
US English locale, US Eastern time zone