After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 316278 - F-Spot crashes when resizing the window
F-Spot crashes when resizing the window
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: General
0.1.x
Other All
: High critical
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2005-09-14 09:02 UTC by Pepijn van de Geer
Modified: 2005-10-20 02:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Pepijn van de Geer 2005-09-14 09:02:01 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.
Comment 1 Steven Garrity 2005-09-18 20:26:53 UTC
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)
Comment 2 Larry Ewing 2005-09-19 00:25:07 UTC
what version of pango do the two of you have?
Comment 3 bugzilla.gnome.org 2005-09-20 20:21:55 UTC
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
Comment 4 Larry Ewing 2005-09-22 00:55:43 UTC
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.
Comment 5 Bastian Doetsch 2005-09-22 07:48:52 UTC
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
Comment 6 Bastian Doetsch 2005-09-22 07:51:31 UTC
btw, the first reporter stated that maximizing and minimizing don't trigger a
crash, but for me it crashes f-spot as well. 
Comment 7 Pepijn van de Geer 2005-09-24 11:30:44 UTC
I'm using libpango 1.10.0-2 and gtk# isn't installed.
Comment 8 Larry Ewing 2005-09-27 03:29:55 UTC
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.
Comment 9 Andrew Mitchell 2005-09-27 06:40:00 UTC
GTK# 2.3.91 is installed on breezy, under the package name libgtk2.0-cil. I can
confirm that the bug is reproducible here.
Comment 10 Larry Ewing 2005-09-27 09:37:50 UTC
ok I was able to reproduce this with 2.3, I'll try to track it donw tomorrow
Comment 11 Larry Ewing 2005-09-27 19:04:44 UTC
verified as a gtk# bug, mkestner is working on a fix.
Comment 12 Mike Kestner 2005-09-27 19:34:24 UTC
Fixed on Gtk# trunk revision 50884.
Comment 13 Gabriel Burt 2005-10-19 21:39:03 UTC
Are we waiting to close this bug until F-Spot depends on the version of Gtk#
that includes the fix?
Comment 14 Larry Ewing 2005-10-20 02:48:36 UTC
I was waiting until a new gtk# release was made, it has been, I'll close it.