Bug 12341 - Mono for Android - Visual Studio Memory Usage + Hang
Summary: Mono for Android - Visual Studio Memory Usage + Hang
Status: RESOLVED DUPLICATE of bug 9416
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 3.0
Hardware: PC Windows
: Normal major
Target Milestone: 4.4.0 (C10)
Assignee: Joaquin Jares
Depends on:
Reported: 2013-05-22 09:02 UTC by Dominique Louis
Modified: 2016-12-23 19:50 UTC (History)
4 users (show)

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:

Description Dominique Louis 2013-05-22 09:02:52 UTC
Taken from https://xamarin.desk.com/agent/case/33574 :

I don't have a clear repro for this, whenever I debug Infinite Flight with
VS 2012 on any android device, VS goes crazy on the memory usage and stalls
for a minute every time I want to stop debugging (shift/F5), and very often
when the debugging session is running.
Memory sometimes cycles from 300MB up to 1.0GB+ then back to 300MB every
couple of seconds, and CPU usage is 100% on the core VS is on.

I have no clear repro, just thought you guys might be interested and could
point me to something I could do to help.

Just tried now, it starts by oscillating between 270 and 380MB+ when the
app is running. When stopped it, it went up to 533MB, then as I typed, went
down to 322MB.
Second run, memory goes from 340 to 600MB in a couple of seconds, then goes
down to 250MB... Not sure when it starts going to 1GB but it seems to be

I think I've seen the hangs mostly when I was outputing tons of log that
was shown in the Output window. Maybe it's related... When log is shown,
I've also had issues using VS, it hangs frequently and I have to pull the
device off the machine to make VS react.

Here's the complete log of the about box.

Microsoft Visual Studio Professional 2012
Version 11.0.50727.1 RTMREL
Microsoft .NET Framework
Version 4.5.50709

Installed Version: Professional

Team Explorer for Visual Studio 2012 04938-004-0033001-02044
Microsoft Team Explorer for Visual Studio 2012

Visual Basic 2012 04938-004-0033001-02044
Microsoft Visual Basic 2012

Visual C# 2012 04938-004-0033001-02044
Microsoft Visual C# 2012

Visual C++ 2012 04938-004-0033001-02044
Microsoft Visual C++ 2012

Visual F# 2012 04938-004-0033001-02044
Microsoft Visual F# 2012

Visual Studio 2012 Code Analysis Spell Checker 04938-004-0033001-02044
Microsoft® Visual Studio® 2012 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993
by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition
Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from
Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU 04938-004-0033001-02044
Windows Phone SDK 8.0 - ENU

.NET Reflector Visual Studio Extension
Integrates .NET Reflector into Visual Studio to allow you to seamlessly
debug into third-party code and assemblies, even if you don't have the
source code for them.

Visit www.reflector.net for more information.

Copyright (c) 2009-2012 Red Gate Software Inc.

Microsoft Advertising SDK for Windows Phone 6.2.923.0
Microsoft Advertising SDK for Windows Phone
Build 6.2.923.0

Microsoft XNA Game Studio 4.0
Microsoft XNA Game Studio 4.0
Build 4.0.40906.0

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

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

SQL Server Data Tools 11.1.20627.00
Microsoft SQL Server Data Tools

Web Developer Tools 1.0.30710.0
Microsoft Web Developer Tools contains the following components:
Page Inspector: Tool that offers an efficient way to decompose Web
Applications and diagnose front-end issues.
Web Publishing: Extensions required for Web Publishing for both hosted
servers as well as on premises.
Web Form Templates: Includes the default templates for Web Form
Editor Extensions: Includes HTML, CSS, and JS editor extensions that
greatly enhance the development experience.

Xamarin.Android 4.6.00049 (0e0e51f9)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS 1.0.897 (b4c50138)
Visual Studio extension to enable development for Xamarin.iOS

ANTS Profiler Add-in
Visual Studio add-in that integrates ANTS Performance Profiler and ANTS
Memory Profiler into Visual Studio to allow you to start profiling from
inside Visual Studio.
Visit www.red-gate.com for more information.
Copyright (c) 2009-2010 Red Gate Software Inc.
Comment 1 Atsushi Eno 2013-05-22 15:12:08 UTC
Is bug #9416 related to this?
Comment 2 Dominique Louis 2013-06-04 17:46:18 UTC
Atsushi, I think it might be.
Comment 3 Daniel Cazzulino 2015-04-08 09:30:43 UTC
@joj, we might want to revisit this and see if it still happens...
Comment 4 Joaquin Jares 2016-12-23 19:50:43 UTC
Marking as duplicate based on comment 1

*** This bug has been marked as a duplicate of bug 9416 ***