You are not logged in.

#1 2008-04-23 08:08:32

becho4
Member
From: Galicia, Spain
Registered: 2004-12-09
Posts: 84

MonoDevelop freezes Initializing main window

Whenever I start MonoDevelop, it freezes on the point when the progress bar is about 25% complete and says "Initializing Main Window".

Any idea what to check?
smile

Offline

#2 2008-04-23 08:43:14

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: MonoDevelop freezes Initializing main window

Try running it from a terminal to see the output...that could give you a clue


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#3 2008-04-23 11:01:14

becho4
Member
From: Galicia, Spain
Registered: 2004-12-09
Posts: 84

Re: MonoDevelop freezes Initializing main window

Thanks for the suggestion. That is the output running it from a terminal:

[alf@pcalf ~]$ monodevelop -debugoptions
ParsingMode = Both
BreakSingleDashManyLettersIntoManyOptions = False
EndOptionProcessingWithDoubleDash = True
DontSplitOnCommas = False

The only thing I notice is that the process swallows more and more memory.

Offline

#4 2008-04-24 16:59:59

becho4
Member
From: Galicia, Spain
Registered: 2004-12-09
Posts: 84

Re: MonoDevelop freezes Initializing main window

Finally found how to debug monodevelop:

MONO_LOG_LEVEL=debug monodevelop

It generates the following output:

...
Mono-INFO: Assembly Loader loaded assembly from location: '/usr/lib/monodevelop/bin/Mono.Cecil.Mdb.dll'.
Mono-INFO: Config attempting to parse: '/usr/lib/monodevelop/bin/Mono.Cecil.Mdb.dll.config'.
Mono-INFO: Config attempting to parse: '/etc/mono/assemblies/Mono.Cecil.Mdb/Mono.Cecil.Mdb.config'.
Mono-INFO: Config attempting to parse: '/home/alf/.mono/assemblies/Mono.Cecil.Mdb/Mono.Cecil.Mdb.config'.
Mono-INFO: Assembly Ref addref MonoDevelop.Projects 0x849f768 -> Mono.Cecil.Mdb 0x8b32f28: 2

Mono-INFO: Assembly Ref addref Mono.Cecil.Mdb 0x8b32f28 -> Mono.Cecil 0x8953970: 3

Mono-INFO: DllImport attempting to load: 'libglib-2.0.so.0'.
Mono-INFO: DllImport loading location: 'libglib-2.0.so.0.so'.
Mono-INFO: DllImport error loading library: 'libglib-2.0.so.0.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio'.
Mono-INFO: DllImport loading library: './libglib-2.0.so.0.so'.
Mono-INFO: DllImport error loading library './libglib-2.0.so.0.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio'.
Mono-INFO: DllImport loading: 'libglib-2.0.so.0'.
Mono-INFO: Searching for 'g_idle_add'.
Mono-INFO: Probing 'g_idle_add'.
Mono-INFO: Found as 'g_idle_add'.

(MonoDevelop:27145): Mono-WARNING **: GC Warning: Repeated allocation of very large block (appr. size 12062720):
        May lead to memory leak and poor performance.


(MonoDevelop:27145): Mono-WARNING **: GC Warning: Repeated allocation of very large block (appr. size 67112960):
        May lead to memory leak and poor performance.

Any idea?

Last edited by becho4 (2008-04-24 17:00:32)

Offline

#5 2008-04-24 20:24:48

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: MonoDevelop freezes Initializing main window

Searching Google for
MonoDevelop memory bug

finds the release notes for 1.0:

A bug in Mono's managed file watcher may cause the memory use of MonoDevelop to grow indefinitely. To avoid this problem make sure Inotify is properly configured like explained here [http://www.monodevelop.com/Inotify_Watches_Limit]

Offline

#6 2008-04-27 11:09:04

becho4
Member
From: Galicia, Spain
Registered: 2004-12-09
Posts: 84

Re: MonoDevelop freezes Initializing main window

That solved the problem.
Thanks tigrmesh.

Offline

Board footer

Powered by FluxBB