Bug 55690 - Random crash with the iOS simulator with the debugger attached
Summary: Random crash with the iOS simulator with the debugger attached
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: 4.4.0 (15.1)
Hardware: PC Windows
: --- critical
Target Milestone: 15.3
Assignee: Joaquin Jares
Depends on:
Reported: 2017-04-27 15:15 UTC by Alexandre Pepin
Modified: 2017-06-21 11:21 UTC (History)
8 users (show)

Tags: 15.1I
Is this bug a regression?: Yes
Last known good build:

Device log (282.31 KB, text/plain)
2017-04-27 15:16 UTC, Alexandre Pepin
Xamarin logs (4.77 KB, application/zip)
2017-04-28 18:45 UTC, Alexandre Pepin
Attached logs for verification. (2.92 KB, application/x-zip-compressed)
2017-06-21 11:21 UTC, Tanmay Bhattacharjee

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:

Description Alexandre Pepin 2017-04-27 15:15:40 UTC
I just upgraded from Xamarin to Xamarin and now I have random crashes when using my app with the iOS simulator with the debugger attached. It does not crash when using the iOS simulator without the debugger and it does not crash on the iPad with and without the debugger.

I have the following lines in the debug output of Visual Studio before crashing:
2017-04-27 11:11:47.131 Pelican[3873:68294] warning: mono_class_from_mono_type: implement me 0x74
2017-04-27 11:11:47.131 Pelican[3873:68294] error: * Assertion: should not be reached at /Users/builder/data/lanes/4466/a04678c2/source/xamarin-macios/external/mono/mono/metadata/class.c:6583

# Steps to reproduce
Unfortunately, I'm unable to reproduce it in a test project. Don't hesitate to ask for more log information

# Expected behavior
To not crash randomly

# Actual behavior
Crashes randomly

# Supplemental info (logs, images, videos)
I've attached the full device log of my iOS simulator

# Test environment (full version information)
Microsoft Visual Studio Professional 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01055

Installed Version: Professional

Visual Basic 2015   00322-40000-00000-AA258
Microsoft Visual Basic 2015

Visual C# 2015   00322-40000-00000-AA258
Microsoft Visual C# 2015

Visual C++ 2015   00322-40000-00000-AA258
Microsoft Visual C++ 2015

Windows Phone SDK 8.0 - ENU   00322-40000-00000-AA258
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   7.18.00214.2
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1   14.1.20810.0
ASP.NET and Web Tools 2015.1

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Azure App Service Tools v2.8.1   14.0.11123.0
Azure App Service Tools v2.8.1

Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JustDecompile Tools   1.0
Makes JustDecompile functionality available in VIsual Studio. Requires JustDecompile installation.

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft .NET Core Tools (Preview 2)   14.1.20810.0
Microsoft .NET Core Tools (Preview 2)

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   3.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PoxAutoRun   1.0
PoxAutoRun Visual Studio Package Detailed Info

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.60519.0
Microsoft SQL Server Data Tools

tangible T4 Editor   2.3.0
tangible engineering GmbH

TypeScript tools for Visual Studio

Web Compiler   1.11.326
Compiler for LESS, Sass and CoffeeScript files

Web Essentials 2015.3   3.0.235
Adds many useful features to Visual Studio for web developers. Requires Visual Studio 2015

Xamarin (3f99c5a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

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

Xamarin.iOS (7656cc6)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 Alexandre Pepin 2017-04-27 15:16:16 UTC
Created attachment 21861 [details]
Device log
Comment 2 Ben Beckley 2017-04-28 15:40:23 UTC
Hello Alexandre,

Thank you for providing the device log, and IDE information. In addition to that, could you please reproduce the crash and attach the Xamarin logs? You can acquire them by going to "Help>Xamarin>Zip Logs..."

Thank you.
Comment 3 Alexandre Pepin 2017-04-28 18:45:49 UTC
Created attachment 21891 [details]
Xamarin logs
Comment 4 Alexandre Pepin 2017-05-12 13:28:54 UTC
It seems to be fixed in Xamarin
Comment 5 Joaquin Jares 2017-06-02 16:37:49 UTC
Resolving based on comment 4. Please reopen if it was not actually fixed.
Comment 6 Tanmay Bhattacharjee 2017-06-21 11:21:00 UTC
Greetings Team,

Have verified this defect on the following build:

 - Microsoft Visual Studio Enterprise 2017 Preview
 - Version 15.3.0 Preview 2.0
 - VisualStudio.15.Preview/15.3.0-pre.2.0+26606.0
 - Microsoft .NET Framework Version 4.6.01590
 - Xamarin (750994b)
 - Xamarin.Android SDK (5a73b38)
 - Xamarin.iOS and Xamarin.Mac SDK (104e7b4)

Issue is not reproducible.

Marking Defect As verified.

Comment 7 Tanmay Bhattacharjee 2017-06-21 11:21:39 UTC
Created attachment 23034 [details]
Attached logs for verification.