! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Ristretto doesn't dispaly images, and also crashesh
Status:
RESOLVED: INVALID
Product:
Ristretto
Component:
Application

Comments

Description Tomasz Paweł Gajc 2008-08-08 16:15:21 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008080115 Mandriva/1.9.0.1-5mdv2009.0 (2009.0) Firefox/3.0.1
Build Identifier: 

Ristretto doesn't display any image in main window(thumbnail bar is fine), when i click on place where image should be displayed, i got crash.

[tpg@localhost ~]$ gdb
GNU gdb 6.6-6mdv2009.0 (Mandriva Linux release 2009.0)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "".
(gdb) file ristretto
Reading symbols from /usr/bin/ristretto...Reading symbols from /usr/lib/debug/usr/bin/ristretto.debug...done.
Using host libthread_db library "/lib/i686/libthread_db.so.1".
done.
(gdb) run
Starting program: /usr/bin/ristretto 
[Thread debugging using libthread_db enabled]
[New process 6604]
[New Thread -1217791104 (LWP 6604)]

(ristretto:6604): GLib-GObject-CRITICAL **: g_value_get_pointer: assertion `G_VALUE_HOLDS_POINTER (value)' failed

(ristretto:6604): GLib-GObject-CRITICAL **: g_value_get_pointer: assertion `G_VALUE_HOLDS_POINTER (value)' failed
[New Thread -1244841072 (LWP 6607)]
[New Thread -1253233776 (LWP 6608)]
[New Thread -1261638768 (LWP 6609)]
[Thread -1253233776 (LWP 6608) exited]
[Thread -1261638768 (LWP 6609) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1217791104 (LWP 6604)]
cb_rstto_picture_viewer_button_press_event (viewer=0x8e8e0f8, event=0x8f280f0) at picture_viewer.c:967
967	        viewer->priv->motion.h_val = viewer->hadjustment->value;
(gdb) bt full
#0  cb_rstto_picture_viewer_button_press_event (viewer=0x8e8e0f8, event=0x8f280f0) at picture_viewer.c:967
No locals.
#1  0xb7d9d390 in gtk_marshal_VOID__POINTER_POINTER () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#2  0xb7b5f2f8 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#3  0xb7b77520 in gtk_marshal_VOID__POINTER_POINTER () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#4  0xb7b78ac1 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#5  0xb7b79077 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#6  0xb7ed3e4b in gtk_marshal_VOID__POINTER_POINTER () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#7  0xb7d945b5 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#8  0xb7d95d26 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#9  0xb7c02d78 in gtk_marshal_VOID__POINTER_POINTER () from /usr/lib/libgdk-x11-2.0.so.0
No symbol table info available.
#10 0xb7acb7da in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#11 0xb7aceef8 in gtk_marshal_VOID__POINTER_POINTER () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#12 0xb7acf40b in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#13 0xb7d960df in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#14 0x0804e020 in main (argc=1769239141, argv=0x6c6163) at main.c:343
	bg_color = (GdkColor *) 0x0
	cli_error = (GError *) 0x0
	n = 0
	thumbnail_viewer_orientation = (const gchar *) 0x8ee3800 "83î\b\002"
	show_thumbnail_viewer = 149785527
	show_toolbar = 1
	window_width = 1
	window_height = 400
	slideshow_timeout = 300
	slideshow_hide_thumbnail = 5000
	max_cache = 1
	preload_during_slideshow = 64
	override_bg_color = <value optimized out>
	scale_to_100 = 1
	window = (GtkWidget *) 0x0
	navigator = (RsttoNavigator *) 0x0
#15 0x490865c5 in __libc_start_main () from /lib/i686/libc.so.6
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#16 0x0804d9a1 in _start ()
No symbol table info available.


I bet this is a fault of glib...

glib2.0-common-2.17.6-1mdv2009.0.i586
gtk+2.0-2.13.6-1mdv2009.0.i586

Reproducible: Always

Steps to Reproduce:
1. Open image(s) with ristretto
2. notice that thumbnail bar is fine
3. place where images are displayed is blank, click there and you got a crash.
Comment 1 Stephan Arts editbugs 2008-08-09 09:29:17 CEST
Already fixed in SVN. Please cherry-pick the patch from rev 5016, and apply against 0.0.20.
Comment 2 Tomasz Paweł Gajc 2008-08-09 13:42:14 CEST
Thanks for the info, i've created patch from svn.

Bug #4270

Reported by:
Tomasz Paweł Gajc
Reported on: 2008-08-08
Last modified on: 2009-07-14

People

Assignee:
Stephan Arts
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information