[MonoDevelop] Crash in file access / project creation

Matt Savigear mcs_mono@savigear.com
Sat, 16 Apr 2005 13:29:59 +0100


Folks,

(Imagine tale of woe about finding a cross platform GUI IDE here).

I have monodevelop 0.6 running on mono 1.1.6-r1 with GTK# and Glade# (distro
is Gentoo, but I should point out I'm using very conservative compile flags).
It fires up fine except for a "socket already in use" warning and seems to be
OK until I try to create a new solution (I have tried a glade# one and a
vanilla console one). When I hit the "New" button after entering the project
info, monodevelop freezes. No errors or warnings. Here are the outputs of two
successive attempts:

-----------------------------------------------------------------------------
matt@yogsothoth ~ $ monodevelop
Entering VB.NET parser
Deleted
/home/matt/.config/MonoDevelop/CodeCompletionData/mscorlib_1.0.5000.0_b77a5c5
61934e089.pidb Creating DefaultWorkbench
Socket already in use
*** Parsing assembly: mscorlib.dll
Writing
/home/matt/.config/MonoDevelop/CodeCompletionData/mscorlib_1.0.5000.0_b77a5c5
61934e089.pidb Reading
/home/matt/.config/MonoDevelop/CodeCompletionData/mscorlib_1.0.5000.0_b77a5c5
61934e089.pidb

-----------------------------------------------------------------------------
matt@yogsothoth ~ $ monodevelop
Entering VB.NET parser
Reading
/home/matt/.config/MonoDevelop/CodeCompletionData/mscorlib_1.0.5000.0_b77a5c5
61934e089.pidb Creating DefaultWorkbench
Socket already in use
Templates: can't load user defaults, reading system defaults
-----------------------------------------------------------------------------

I did the upgrade from 0.5 and 1.0.6 because the old verson crashed (with
considerably more debug information at the same point. In case it's useful,
here's a transcript of the earlier crash:

-----------------------------------------------------------------------------
matt@yogsothoth ~ $ monodevelop
Reading
/home/matt/.config/MonoDevelop/CodeCompletionData/mscorlib_1.0.5000.0_b77a5c5
61934e089.pidb Creating DefaultWorkbench
Socket already in use
combine or combine.Entries == null
combine or combine.Entries == null
Error while saving as : System.IO.IOException: Win32 IO returned
ERROR_LOCK_VIOLATION. Path: /home/matt/data/RPG/Infinity
Project/Development/test.prjx in <0x000bb> System.IO.FileStream:FlushBuffer ()
in <0x0004f> (wrapper remoting-invoke-with-check)
System.IO.FileStream:FlushBuffer () in <0x00043> System.IO.FileStream:Flush ()
in <0x00061> System.IO.StreamWriter:Flush ()
in <0x00025> System.IO.StreamWriter:Dispose (bool)
in <0x00017> System.IO.StreamWriter:Close ()
in <0x0001d> System.Xml.XmlTextWriter:Close ()
in <0x00095> System.Xml.XmlDocument:Save (string)
in <0x0005d> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_string (string) in <0x0001f>
MonoDevelop.Core.Services.FileUtilityService:ObservedSave
(MonoDevelop.Core.Services.NamedFileOperationDelegate,string,string,MonoDevel
op.Core.Services.FileErrorPolicy)

Unhandled Exception: System.IO.IOException: Win32 IO returned
ERROR_SHARING_VIOLATION. Path: /home/matt/data/RPG/Infinity
Project/Development/test.prjx in <0x0047d> System.IO.FileStream:.ctor
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
in <0x00020> System.IO.FileStream:.ctor
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) in
<0x00081> (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) in
<0x0014b> System.Xml.XmlUrlResolver:GetEntity (System.Uri,string,System.Type)
in <0x00119> System.Xml.XmlTextReader:.ctor (string,System.Xml.XmlNameTable)
in <0x00037> System.Xml.XmlTextReader:.ctor (string) in <0x00032>
System.Xml.XmlDocument:Load (string) in <0x00040>
MonoDevelop.Services.LanguageBindingService:GetCodonPerProjectFile (string) in
<0x00019> MonoDevelop.Services.LanguageBindingService:GetBindingPerProjectFile
(string) in <0x00090> MonoDevelop.Internal.Project.Combine:LoadProject
(string) in <0x00082> MonoDevelop.Internal.Project.Combine:AddEntry (string)
in <0x004af> MonoDevelop.Internal.Templates.CombineDescriptor:CreateCombine
(MonoDevelop.Internal.Templates.ProjectCreateInformation,string) in <0x000cd>
MonoDevelop.Internal.Templates.ProjectTemplate:CreateProject
(MonoDevelop.Internal.Templates.ProjectCreateInformation) in <0x006cf>
MonoDevelop.Gui.Dialogs.NewProjectDialog:OpenEvent (object,System.EventArgs)
in <0x00069> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_EventArgs
(object,System.EventArgs) in <0x0012d>
GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int) in <0x0005a>
(wrapper native-to-managed) GtkSharp.voidObjectSignal:voidObjectCallback
(intptr,int) in (unmanaged) (wrapper managed-to-native)
Gtk.Application:gtk_main () in <0x00004> (wrapper managed-to-native)
Gtk.Application:gtk_main () in <0x00007> Gtk.Application:Run ()
in <0x00701> MonoDevelop.Commands.StartWorkbenchCommand:Run ()
in <0x009db> MonoDevelop.SharpDevelopMain:Main (string[])

(MonoDevelop:11431): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(MonoDevelop:11431): GLib-GObject-CRITICAL **: g_signal_handler_is_connected:
assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

-----------------------------------------------------------------------------

Sorry for the long post. Can anyone help?

Thanks,

Matt.