Bug 1338 - Monodevelop 2.8 freezes and has high memory usage
Summary: Monodevelop 2.8 freezes and has high memory usage
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: 2.8
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-10-07 09:18 UTC by mattpepin
Modified: 2012-06-08 03:29 UTC (History)
3 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 or GitHub 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:
RESOLVED FIXED

Description mattpepin 2011-10-07 09:18:06 UTC
Monodevelop 2.6 was working fine for me. Version 2.8 final is another story. It freezes constantly during 0.5 to 5 seconds when I open files or when I type. At first I thought it was because of the autocomplete popup but it can happen when I type anywhere, like in the middle of a string constant. CPU usages often spikes at 50% on a dual-core i5 system, and RAM usage is > 2Gb... It's only happening in Monodevelop 2.8 and in all my projects (ASP.NET MVC2, didn't check for standard C# projects).
Comment 1 Mikayla Hutchinson [MSFT] 2011-10-07 09:40:56 UTC
Could you please get a kill -QUIT stacktrace from MD while it's hung?

http://monodevelop.com/Developers/Reporting_Bugs#Managed_Hangs

Could you also attach the log from ~/.config/MonoDevelop/log ?
Comment 2 mattpepin 2011-10-07 11:55:21 UTC
I just did. I won't include the whole log though, it created a 489.2MB file :P. It repeats itself thought, here's the essential content:

ERROR [2011-10-06 20:58:54Z]: Parser database for project 'Core could not be loaded
System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Core.Assemblies.MonoTargetRuntime+<GetGacDirectories>c__Iterator18.MoveNext () [0x0006c] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/MonoTargetRuntime.cs:158 
  at MonoDevelop.Core.Assemblies.RuntimeAssemblyContext.GetGacFile (System.String aname, Boolean allowPartialMatch) [0x001de] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/RuntimeAssemblyContext.cs:108 
  at MonoDevelop.Core.Assemblies.RuntimeAssemblyContext.GetAssemblyLocation (System.String assemblyName, System.String package, MonoDevelop.Core.Assemblies.TargetFramework fx) [0x000bf] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/RuntimeAssemblyContext.cs:82 
  at MonoDevelop.Core.Assemblies.ComposedAssemblyContext.GetAssemblyLocation (System.String assemblyName, System.String package, MonoDevelop.Core.Assemblies.TargetFramework fx) [0x00019] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/ComposedAssemblyContext.cs:184 
  at MonoDevelop.Core.Assemblies.ComposedAssemblyContext.GetAssemblyLocation (System.String assemblyName, MonoDevelop.Core.Assemblies.TargetFramework fx) [0x00000] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/ComposedAssemblyContext.cs:178 
  at MonoDevelop.Projects.Dom.Serialization.AssemblyCodeCompletionDatabase+<ReadAssemblyReferences>c__Iterator44.MoveNext () [0x00079] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Serialization/AssemblyCodeCompletionDatabase.cs:373 
  at MonoDevelop.Projects.Dom.Serialization.AssemblyCodeCompletionDatabase..ctor (MonoDevelop.Core.Assemblies.TargetRuntime runtime, MonoDevelop.Core.Assemblies.TargetFramework fx, System.String assemblyFile, MonoDevelop.Projects.Dom.Serialization.ParserDatabase pdb, Boolean isTempDatabase) [0x0021a] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Serialization/AssemblyCodeCompletionDatabase.cs:115 
  at MonoDevelop.Projects.Dom.Serialization.AssemblyCodeCompletionDatabase..ctor (MonoDevelop.Core.Assemblies.TargetRuntime runtime, MonoDevelop.Core.Assemblies.TargetFramework fx, System.String assemblyFile, MonoDevelop.Projects.Dom.Serialization.ParserDatabase pdb) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Projects.Dom.Serialization.ParserDatabase.LoadAssemblyDom (MonoDevelop.Core.Assemblies.TargetRuntime runtime, MonoDevelop.Core.Assemblies.TargetFramework fx, System.String file) [0x00000] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Serialization/ParserDatabase.cs:180 
  at MonoDevelop.Projects.Dom.Parser.ProjectDomService.GetDom (System.String uri, Boolean addReference) [0x00038] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Parser/ProjectDomService.cs:487 
  at MonoDevelop.Projects.Dom.Parser.ProjectDom.UpdateReferences () [0x0003b] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Parser/ProjectDom.cs:852 
  at MonoDevelop.Projects.Dom.Parser.ProjectDomService.RegisterDom (MonoDevelop.Projects.Dom.Parser.ProjectDom dom, System.String uri) [0x00013] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Parser/ProjectDomService.cs:460 
  at MonoDevelop.Projects.Dom.Parser.ProjectDomService.Load (MonoDevelop.Projects.Project project) [0x00054] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Parser/ProjectDomService.cs:444 
ERROR [2011-10-06 20:58:54Z]: Parser database for project 'AppLogic could not be loaded
System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Core.Assemblies.MonoTargetRuntime+<GetGacDirectories>c__Iterator18.MoveNext () [0x0006c] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/MonoTargetRuntime.cs:158 
  at MonoDevelop.Core.Assemblies.RuntimeAssemblyContext.GetGacFile (System.String aname, Boolean allowPartialMatch) [0x001de] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/RuntimeAssemblyContext.cs:108 
  at MonoDevelop.Core.Assemblies.RuntimeAssemblyContext.GetAssemblyLocation (System.String assemblyName, System.String package, MonoDevelop.Core.Assemblies.TargetFramework fx) [0x000bf] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/RuntimeAssemblyContext.cs:82 
  at MonoDevelop.Core.Assemblies.ComposedAssemblyContext.GetAssemblyLocation (System.String assemblyName, System.String package, MonoDevelop.Core.Assemblies.TargetFramework fx) [0x00019] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/ComposedAssemblyContext.cs:184 
  at MonoDevelop.Core.Assemblies.ComposedAssemblyContext.GetAssemblyLocation (System.String assemblyName, MonoDevelop.Core.Assemblies.TargetFramework fx) [0x00000] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/ComposedAssemblyContext.cs:178 
  at MonoDevelop.Projects.Dom.Serialization.AssemblyCodeCompletionDatabase+<ReadAssemblyReferences>c__Iterator44.MoveNext () [0x00079] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Serialization/AssemblyCodeCompletionDatabase.cs:373 
  at MonoDevelop.Projects.Dom.Serialization.AssemblyCodeCompletionDatabase..ctor (MonoDevelop.Core.Assemblies.TargetRuntime runtime, MonoDevelop.Core.Assemblies.TargetFramework fx, System.String assemblyFile, MonoDevelop.Projects.Dom.Serialization.ParserDatabase pdb, Boolean isTempDatabase) [0x0021a] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Serialization/AssemblyCodeCompletionDatabase.cs:115 
  at MonoDevelop.Projects.Dom.Serialization.AssemblyCodeCompletionDatabase..ctor (MonoDevelop.Core.Assemblies.TargetRuntime runtime, MonoDevelop.Core.Assemblies.TargetFramework fx, System.String assemblyFile, MonoDevelop.Projects.Dom.Serialization.ParserDatabase pdb) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Projects.Dom.Serialization.ParserDatabase.LoadAssemblyDom (MonoDevelop.Core.Assemblies.TargetRuntime runtime, MonoDevelop.Core.Assemblies.TargetFramework fx, System.String file) [0x00000] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Serialization/ParserDatabase.cs:180 
  at MonoDevelop.Projects.Dom.Parser.ProjectDomService.GetDom (System.String uri, Boolean addReference) [0x00038] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Parser/ProjectDomService.cs:487 
  at MonoDevelop.Projects.Dom.Parser.ProjectDom.UpdateReferences () [0x0003b] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Parser/ProjectDom.cs:852 
  at MonoDevelop.Projects.Dom.Parser.ProjectDomService.RegisterDom (MonoDevelop.Projects.Dom.Parser.ProjectDom dom, System.String uri) [0x00013] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Parser/ProjectDomService.cs:460 
  at MonoDevelop.Projects.Dom.Parser.ProjectDomService.Load (MonoDevelop.Projects.Project project) [0x00054] in /usr/src/packages/BUILD/monodevelop-2.8/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Parser/ProjectDomService.cs:444
Comment 4 Mikayla Hutchinson [MSFT] 2011-10-07 12:07:52 UTC
That should be: https://github.com/mono/monodevelop/commit/4ac0e1c35fc269f0283e824ea329ff53d0515afd

The fix should be in 2.8.1 when it's released, or you could build from source to get it immediately.
Comment 5 Mikayla Hutchinson [MSFT] 2011-10-07 12:08:51 UTC
Please re-open if you still have problems with the fixed version.
Comment 6 mattpepin 2011-10-07 12:18:22 UTC
Thanks! I will wait to see if I can tolerate the bug in the meantime. I will report back if I have problems with 2.8.1.