GNOME Bugzilla – Bug 316278
F-Spot crashes when resizing the window
Last modified: 2005-10-20 02:48:36 UTC
Steps to reproduce: 1. Start F-spot 2. Resize window 3. See F-spot crash Stack trace: There are two different errormessages depending on how you resize the window: Stretching horizontally: Unhandled Exception: System.InvalidCastException: Cannot cast from source type to destination type. in <0x000c1> Pango.Context:GetMetrics (Pango.FontDescription desc, Pango.Language language) in <0x00088> FSpot.GroupSelector:LegendHeight () in <0x0004f> FSpot.GroupSelector:OnSizeAllocated (Rectangle alloc) in <0x00079> Gtk.Widget:sizeallocated_cb (IntPtr widget, Gdk.Rectangle allocation) in (wrapper native-to-managed) Gtk.Widget:sizeallocated_cb (intptr,Gdk.Rectangle&) in <0x00000> <unknown method> in (wrapper managed-to-native) Gtk.Application:gtk_main () in <0x00007> Gtk.Application:Run () in <0x00007> Gnome.Program:Run () in <0x003da> Driver:Main (System.String[] args) Stretching f-spot vertically: Unhandled Exception: System.InvalidCastException: Cannot cast from source type to destination type. in <0x000c1> Pango.Context:GetMetrics (Pango.FontDescription desc, Pango.Language language) in <0x00147> IconView:UpdateLayout (Rectangle Allocation) in <0x0007e> IconView:OnSizeAllocated (Rectangle allocation) in <0x00079> Gtk.Widget:sizeallocated_cb (IntPtr widget, Gdk.Rectangle allocation) in (wrapper native-to-managed) Gtk.Widget:sizeallocated_cb (intptr,Gdk.Rectangle&) in <0x00000> <unknown method> in (wrapper managed-to-native) Gtk.Application:gtk_main () in <0x00007> Gtk.Application:Run () in <0x00007> Gnome.Program:Run () in <0x003da> Driver:Main (System.String[] args) Other information: I'm using version 0.1.2 (0.1.2-0ubuntu1) but observed this behaviour in 0.1.1 too. Maximizing or minimizing doesn't crash the app.
I'm seeing the same thing: Unhandled Exception: System.InvalidCastException: Cannot cast from source type to destination type. in <0x000c1> Pango.Context:GetMetrics (Pango.FontDescription desc, Pango.Language language) in <0x00157> IconView:UpdateLayout (Rectangle Allocation) in <0x00074> IconView:OnSizeAllocated (Rectangle allocation) in <0x00074> Gtk.Widget:sizeallocated_cb (IntPtr widget, Gdk.Rectangle allocation) in (wrapper native-to-managed) Gtk.Widget:sizeallocated_cb (intptr,Gdk.Rectangle&) in <0x00000> <unknown method> in (wrapper managed-to-native) Gtk.Application:gtk_main () in <0x00007> Gtk.Application:Run () in <0x00007> Gnome.Program:Run () in <0x0039a> Driver:Main (System.String[] args) using 0.1.1 on an up-to-date copy of Fedora Core 4 (with the binary install of Mono)
what version of pango do the two of you have?
same issue here: Unhandled Exception: System.InvalidCastException: Cannot cast from source type to destination type. in <0x000e9> Pango.Context:GetMetrics (Pango.FontDescription desc, Pango.Language language) in <0x001d8> IconView:UpdateLayout (Rectangle Allocation) in <0x00095> IconView:OnSizeAllocated (Rectangle allocation) in <0x0007b> Gtk.Widget:sizeallocated_cb (IntPtr widget, Gdk.Rectangle allocation) in (wrapper native-to-managed) Gtk.Widget:sizeallocated_cb (intptr,Gdk.Rectangle&) in <0x00000> <unknown method> in (wrapper managed-to-native) Gtk.Application:gtk_main () in <0x00008> Gtk.Application:Run () in <0x00010> Gnome.Program:Run () in <0x004b3> Driver:Main (System.String[] args) Pango and its dependencies: * dependency graph for x11-libs/pango-1.10.0 `-- x11-libs/pango-1.10.0 `-- x11-base/xorg-x11-6.8.2-r4 (virtual/x11) `-- sys-libs/zlib-1.2.3 `-- sys-devel/flex-2.5.4a-r6 `-- dev-libs/expat-1.95.8 `-- media-libs/freetype-2.1.10 `-- sys-libs/glibc-2.3.5-r1 (virtual/libc) `-- sys-kernel/linux-headers-2.6.11-r2 (virtual/os-headers) `-- sys-devel/gettext-0.14.4 `-- media-libs/fontconfig-2.2.3 `-- x11-base/opengl-update-2.2.1 `-- app-arch/bzip2-1.0.3-r5 `-- x11-misc/ttmkfdir-3.0.9-r3 `-- media-libs/libpng-1.2.8 `-- sys-libs/ncurses-5.4-r6 `-- sys-libs/gpm-1.20.1-r4 `-- dev-libs/glib-2.8.1 `-- x11-libs/cairo-1.0.0-r2
I can't reproduce this and I'm at a loss to describe how it might be happening. What gtk# version are you all using.
Pango seems to be 1.10.0-2 on my system (ubuntu breezy badger, development branch), gtk# is not in the f-spot dependencies. but installing it (version 1.0.10 is provided with breezy) doesn't help anyways... still the same stacktrace
btw, the first reporter stated that maximizing and minimizing don't trigger a crash, but for me it crashes f-spot as well.
I'm using libpango 1.10.0-2 and gtk# isn't installed.
I'm sorry i wasn't clear enough with the name, some version of gtk-sharp (gtk#) has to be installed, and I need to know which.
GTK# 2.3.91 is installed on breezy, under the package name libgtk2.0-cil. I can confirm that the bug is reproducible here.
ok I was able to reproduce this with 2.3, I'll try to track it donw tomorrow
verified as a gtk# bug, mkestner is working on a fix.
Fixed on Gtk# trunk revision 50884.
Are we waiting to close this bug until F-Spot depends on the version of Gtk# that includes the fix?
I was waiting until a new gtk# release was made, it has been, I'll close it.