Bug 61288 - Xamarin Profiler crashes iOS application on both device and simulator
Summary: Xamarin Profiler crashes iOS application on both device and simulator
Alias: None
Product: Profiler
Classification: Xamarin
Component: iOS ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Rodrigo Moya
Depends on:
Reported: 2018-04-10 08:47 UTC by Cosmin
Modified: 2018-04-13 07:39 UTC (History)
3 users (show)

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

Xamarin Profiler Logs & Application Crash (27.19 KB, application/zip)
2018-04-10 08:47 UTC, Cosmin
Two new crashes (47.25 KB, application/zip)
2018-04-10 13:47 UTC, Cosmin

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 Cosmin 2018-04-10 08:47:45 UTC
Created attachment 26254 [details]
Xamarin Profiler Logs & Application Crash


Xamarin Profiler crashes our iOS application at random times when using Allocations (it crashes even if we don't trigger the snapshot).
It crashes our app both when manually capturing the snapshots and when using Track all allocations.

I've attached the logs from Xamarin Profiler and the crash from the device.

Also, this is my current VS 4 Mac setup:

Visual Studio Enterprise 2017 for Mac
Version 7.4.2 (build 12)
Installation UUID: 1ede8c5d-9d75-419f-82a5-a4e553d2c07f
	Mono (2017-10/6bf3922f3fd) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 508010000


.NET Core
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
SDK: /usr/local/share/dotnet/sdk/2.1.4/Sdks
SDK Versions:
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.8.1/lib/mono/msbuild/15.0/bin/Sdks

Version: 1.6.1
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Apple Developer Tools
Xcode 9.3 (14154)
Build 9E145

Version: (Visual Studio Enterprise)

Version: (Visual Studio Enterprise)
Hash: f62de472
Branch: xcode9.3
Build date: 2018-03-29 19:30:53-0400

Version: (Visual Studio Enterprise)
Android SDK: /Users/cosminstirbu/Documents/sdk
	Supported Android versions:
		5.1 (API level 22)
		6.0 (API level 23)
		7.0 (API level 24)
		7.1 (API level 25)
		8.0 (API level 26)
		8.1 (API level 27)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 27.0.1
SDK Build Tools Version: 27.0.3

Java SDK: /usr
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

Android Designer EPL code available here:

Xamarin Inspector
Version: 1.4.0
Hash: b3f92f9
Branch: master
Build date: Fri, 19 Jan 2018 22:00:34 GMT
Client compatibility: 1

Build Information
Release ID: 704020012
Git revision: 0d8e3f0a4d683771f17959739956fa09c7ba21e3
Build date: 2018-03-30 10:45:17-04
Xamarin addins: 958839ea56ab1e331caf7c92b6ad50fb9e6ee9d2
Build lane: monodevelop-lion-d15-6

Operating System
Mac OS X 10.13.3
Darwin 17.4.0 Darwin Kernel Version 17.4.0
    Sun Dec 17 09:19:54 PST 2017
    root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64

Enabled user installed addins
FileNesting 0.1.1
Macaque Tips 0.1.2
StyleCop Support
xUnit.NET 2 testing framework support 0.7.5
Straight8's SpecFlow Intergration
Internet of Things (IoT) development (Preview) 7.1

Thank you,
Comment 1 Cosmin 2018-04-10 13:47:21 UTC
Created attachment 26255 [details]
Two new crashes

It seems that the initial attached crash was related to an actual app codebase issue.

I've attached two new ones (they are identical and unfortunately they don't provide too much information)
Comment 2 Rodrigo Moya 2018-04-10 17:06:05 UTC
This is indeed a mono runtime profiler bug, so filed at https://github.com/mono/mono/issues/8155
Comment 3 Rodrigo Moya 2018-04-13 07:39:47 UTC
Cosmin, would it be possible for you to attach device/simulator logs to this or the Mono upstream bug mentioned above?