User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070810 Ubuntu/7.10 (gutsy) Firefox/2.0.0.6 Build Identifier: Ristretto crashes when trying to open a png file. Reproducible: Always Steps to Reproduce: 1. Launch Ristretto 2. Open an image Actual Results: It crashes Expected Results: It should have displayed the picture gtk 2.11.6 glib 2.13.7
Created attachment 1316 the image
Created attachment 1317 trace
I have moved some stuff around while fixing a design-issue, so that backtrace is no longer valid. Could you verify this bug against svn-rev >= 3007?
Created attachment 1319 trace
Created attachment 1320 Does this fix it? This patch should fix the previous segfault.
(In reply to comment #5) > Created an attachment (id=1320) [details] > Does this fix it? > > This patch should fix the previous segfault. > The patch is applied against rev 3013.
I updated to latest trunk revision (3019), and it doesn't crash anymore. I have another bug though: I can't open any image file, they are grayed in the gtk filechooser dialog. I can open a directory, but it doesn't display the pictures, only their thumbnails (see attached screenshot). It seems to be a different issue, so do you want me to file another bug?
Created attachment 1321 screenshot
(In reply to comment #7) > I updated to latest trunk revision (3019), and it doesn't crash anymore. > > I have another bug though: I can't open any image file, they are grayed in the > gtk filechooser dialog. I can open a directory, but it doesn't display the > pictures, only their thumbnails (see attached screenshot). > > It seems to be a different issue, so do you want me to file another bug? > I forgot to say: I got nothing in gdb since it doesn't crash, only lots of gtk warnings (repeated several times): (ristretto:13807): GLib-GObject-CRITICAL **: g_value_get_pointer: assertion `G_VALUE_HOLDS_POINTER (value)' failed (ristretto:13807): GLib-GObject-CRITICAL **: g_value_get_pointer: assertion `G_VALUE_HOLDS_POINTER (value)' failed (ristretto:13807): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `pixbuf != NULL' failed (ristretto:13807): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `pixbuf != NULL' failed
(In reply to comment #9) > (In reply to comment #7) > > I updated to latest trunk revision (3019), and it doesn't crash anymore. > > > > I have another bug though: I can't open any image file, they are grayed in the > > gtk filechooser dialog. I can open a directory, but it doesn't display the > > pictures, only their thumbnails (see attached screenshot). > > > > It seems to be a different issue, so do you want me to file another bug? > > > > I forgot to say: I got nothing in gdb since it doesn't crash, only lots of gtk > warnings (repeated several times): > > (ristretto:13807): GLib-GObject-CRITICAL **: g_value_get_pointer: assertion > `G_VALUE_HOLDS_POINTER (value)' failed > > (ristretto:13807): GLib-GObject-CRITICAL **: g_value_get_pointer: assertion > `G_VALUE_HOLDS_POINTER (value)' failed > > (ristretto:13807): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion > `pixbuf != NULL' failed > > (ristretto:13807): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion > `pixbuf != NULL' failed > The directory thing is correct, I am debugging the thumbnail-viewer and opening a dir from the toolbar speeds up this process ;). However, the gtk-warnings can not be reproduced using gtk 2.10, nor the fact it does not render the image. I have added an additional check to rev 3020, could you see if this improved a bit?
Hi, I have still the same warnings and this black-screen issue (gtk 2.11.6, glib 2.14.0). gdb doesn't display anything useful, do you need other infos? (strace, ltrace...)
(In reply to comment #11) > Hi, > > I have still the same warnings and this black-screen issue (gtk 2.11.6, glib > 2.14.0). gdb doesn't display anything useful, do you need other infos? (strace, > ltrace...) > an ltrace could be usefull, that way i could find out where those warnings come from.
(In reply to comment #12) > (In reply to comment #11) > > Hi, > > > > I have still the same warnings and this black-screen issue (gtk 2.11.6, glib > > 2.14.0). gdb doesn't display anything useful, do you need other infos? (strace, > > ltrace...) > > > > an ltrace could be usefull, that way i could find out where those warnings come > from. > nm... i found it.
(In reply to comment #13) > (In reply to comment #12) > > (In reply to comment #11) > > > Hi, > > > > > > I have still the same warnings and this black-screen issue (gtk 2.11.6, glib > > > 2.14.0). gdb doesn't display anything useful, do you need other infos? (strace, > > > ltrace...) > > > > > > > an ltrace could be usefull, that way i could find out where those warnings come > > from. > > > > nm... i found it. > Forget i said that, i fixed a bug but this could be something else. Could you please give me an ltrace if it still doesn't work?
Created attachment 1328 ltrace Yes, I still have the same issue. I attached the ltrace output, maybe it'll be useful to you.
Do you have the shared-mime-info package installed? (Might be related to not displaying the image)
Yeah, the shared-mime-info package is already installed.
I just installed gtk 2.11, and i get the same output. A little more debugging information (r 3105) suggests the scrolledwindow of gtk 2.11.6 is broken. The picture-viewer does not receive any adjustments.
It now works with gtk+ 2.12. This was indeed a gtk 2.11.6 bug. Thanks.