[Gtk-sharp-list] What do I do about this exception?

Michael Hutchinson m.j.hutchinson at gmail.com
Mon Apr 14 13:54:17 EDT 2008


On Mon, Apr 14, 2008 at 5:47 AM, Billy Schoenberg <waschoen at syr.edu> wrote:
> Hello
>
> I am developing an app on OS X using GTK Sharp and Mono.  I get this strange
> exception with this stack trace:
>
>
> Stacktrace:
>
>   at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
>   at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff>
>   at Gtk.Application.Run () <0x0000a>
>   at Open_Dialect.MainWindow..ctor () [0x0017e] in
> /Users/Billy/Desktop/Works on Mac/Open Dialect GTK/Open Dialect/Open
> Dialect/Forms and View/MainWindow.cs:96
>   at Open_Dialect.Program.Main (string[]) [0x0000a] in
> /Users/Billy/Desktop/Works on Mac/Open Dialect GTK/Open Dialect/Open
> Dialect/Program.cs:13
>   at (wrapper runtime-invoke)
> Open_Dialect.Program.runtime_invoke_void_string[]
> (object,intptr,intptr,intptr) <0xffffffff>
>
> Does anyone know what I ought to do about this? For more info see
> http://lists.ximian.com/pipermail/gtk-sharp-list/2008-April/008552.html

This looks like a native segfault. Some of the native libraries you
are using are getting into invalid state and crashing.

You should track down those GLib-GObject-WARNING etc messages to try
to find where the invalid operations are being performed. You can do
this by installing GLib log handlers -- take a look at
http://anonsvn.mono-project.com/viewcvs/trunk/monodevelop/main/src/core/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/GLibLogging.cs?view=markup
for an example.

That said, these errors might be a result of that odd
"CGBitmapContextGetBitsPerPixel: invalid context" error, which appears
to be GTK-Mac-specific.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Gtk-sharp-list mailing list