[MonoDevelop] MD crashes when opening a file

chris@mosaix.net chris@mosaix.net
Wed, 24 Nov 2004 21:40:24 -0800


If gdk_pixbuf == null, that means it is not loading the images correctly
(because it cant find them or the passed string is empty). perhaps we
should take a look at StockIcons.cs or another similar class to verify
functionality.

~ chris

On Wed, 2004-11-24 at 22:32 +0000, James Fitzsimons wrote:
> Hi all,
> 
> Finally got MD from SVN HEAD to build and run. Unfortunately it crashes
> when I try to open a .cs file. It will happily open a project, but when
> I expand the project tree and double click on a .cs file I get the
> following error:
> 
> (MonoDevelop:17078): GdkPixbuf-CRITICAL **: file gdk-pixbuf-scale.c:
> line 246 (gdk_pixbuf_scale_simple): assertion `src != NULL' failed
> Error while loading System.NullReferenceException: Object reference not
> set to an instance of an object
> in <0x001fc> Gtk.Image:.ctor (Gdk.Pixbuf)
> in <0x0019a> MonoDevelop.Gui.SdiWorkbenchLayout:ShowView
> (MonoDevelop.Gui.IViewContent)
> in <0x00363> MonoDevelop.Gui.DefaultWorkbench:ShowView
> (MonoDevelop.Gui.IViewContent)
> in <0x000a7> LoadFileWrapper:Invoke (string)
> in <0x00065> (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_void_string (string)
> in <0x00023> LoadWrapper:Invoke ()
> in <0x00056> (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_void ()
> in <0x0003d> MonoDevelop.Core.Services.FileUtilityService:ObservedLoad
> (MonoDevelop.Core.Services.FileOperationDelegate,string,string,MonoDevelop.Core.Services.FileErrorPolicy)
> 
> 
> (MonoDevelop:17078): GdkPixbuf-CRITICAL **: file gdk-pixbuf-scale.c:
> line 246 (gdk_pixbuf_scale_simple): assertion `src != NULL' failed
> Error while loading System.NullReferenceException: Object reference not
> set to an instance of an object
> in <0x001fc> Gtk.Image:.ctor (Gdk.Pixbuf)
> in <0x0019a> MonoDevelop.Gui.SdiWorkbenchLayout:ShowView
> (MonoDevelop.Gui.IViewContent)
> in <0x00363> MonoDevelop.Gui.DefaultWorkbench:ShowView
> (MonoDevelop.Gui.IViewContent)
> in <0x000a7> LoadFileWrapper:Invoke (string)
> in <0x00065> (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_void_string (string)
> in <0x00023> LoadWrapper:Invoke ()
> in <0x00056> (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_void ()
> in <0x0003d> MonoDevelop.Core.Services.FileUtilityService:ObservedLoad
> (MonoDevelop.Core.Services.FileOperationDelegate,string,string,MonoDevelop.Core.Services.FileErrorPolicy)
> 
> Reading
> /home/james/.config/MonoDevelop/CodeCompletionData/Mono.Data.Tds_1.0.5000.0_0738eb9f132ed756.pidb
> Parsing assembly:
> /usr/local/lib/mono/gac/Mono.Data.Tds/1.0.5000.0__0738eb9f132ed756/Mono.Data.Tds.dll
> Writing
> /home/james/.config/MonoDevelop/CodeCompletionData/Mono.Data.Tds_1.0.5000.0_0738eb9f132ed756.pidb
> Reading
> /home/james/.config/MonoDevelop/CodeCompletionData/Mono.Data.Tds_1.0.5000.0_0738eb9f132ed756.pidb
> Reading
> /home/james/.config/MonoDevelop/CodeCompletionData/System.Data_1.0.5000.0_b77a5c561934e089.pidb
> Parsing assembly:
> /usr/local/lib/mono/gac/System.Data/1.0.5000.0__b77a5c561934e089/System.Data.dll
> 
> Unhandled Exception: System.NullReferenceException: Object reference not
> set to an instance of an object
> in <0x00692> MonoDevelop.Services.DefaultFileService:realOpenFile
> (object)
> in <0x00065> (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_void_object (object)
> in <0x00023> MonoDevelop.Services.StatefulMessageContainer:Run ()
> in <0x00120> MonoDevelop.Services.DispatchService:guiDispatcher ()
> in <0x00068> (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_bool ()
> in <0x0004d> IdleProxy:Handler ()
> in <0x00042> (wrapper native-to-managed) IdleProxy:Handler ()
> in <0xf75873e5> (wrapper managed-to-native) Gtk.Application:gtk_main ()
> in <0x0000f> (wrapper managed-to-native) Gtk.Application:gtk_main ()
> in <0x00010> Gtk.Application:Run ()
> in <0x00a81> MonoDevelop.Commands.StartWorkbenchCommand:Run ()
> in <0x0123a> MonoDevelop.SharpDevelopMain:Main (string[])
> 
> 
> (MonoDevelop:17077): GLib-GObject-WARNING **: invalid (NULL) pointer
> instance
> 
> (MonoDevelop:17077): GLib-GObject-CRITICAL **: file gsignal.c: line 1749
> (g_signal_handler_is_connected): assertion `G_TYPE_CHECK_INSTANCE
> (instance)' failed
> 
> (MonoDevelop:17077): GLib-GObject-WARNING **: invalid (NULL) pointer
> instance
> 
> (MonoDevelop:17077): GLib-GObject-CRITICAL **: file gsignal.c: line 1749
> (g_signal_handler_is_connected): assertion `G_TYPE_CHECK_INSTANCE
> (instance)' failed
> james@athos gtk-sharp $ Writing
> /home/james/.config/MonoDevelop/CodeCompletionData/System.Data_1.0.5000.0_b77a5c561934e089.pidb
> 
> 
> 
> I also get loads of these errors immediately after starting MD:
> 
> (MonoDevelop:16979): GdkPixbuf-CRITICAL **: file gdk-pixbuf-scale.c:
> line 246 (gdk_pixbuf_scale_simple): assertion `src != NULL' failed
> 
> Should I raise a bug against this?
> 
> Cheers,
> James Fitzsimons
>