! 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 freezes on opening (at least) SVG when thumbnail bar enabled
Status:
RESOLVED: WORKSFORME
Product:
Ristretto
Component:
Application

Comments

Description Steve Dodier-Lazaro editbugs 2012-11-16 16:16:40 CET
Hi,

Everything in the title, latest Arch as of 2012-11-15, Ristretto 0.6.3, librsvg installed.

Ristretto works and displays SVGs when the thumbnail bar has been disabled, otherwise instead it will hang.
Comment 1 Steve Dodier-Lazaro editbugs 2012-11-16 16:17:15 CET
I set the severity to major because the bug occurs with 100% reproducibility under default settings.
Comment 2 Stephan Arts editbugs 2012-11-19 13:28:47 CET
Weird, I thought that was fixed prior to 0.3...

Must be some race-condition, do you have a coredump?
Comment 3 Stephan Arts editbugs 2012-11-20 10:28:48 CET
Hmm, I can reproduce... but it also fails when the thumbnailbar is disabled here.

Are you sure it works without the thumbnailbar with you?
Comment 4 Stephan Arts editbugs 2012-11-20 17:52:42 CET
I am inclined to think this behaviour is not new to 0.6, so either something broke in gtk/librsvg, or it is already broken in 0.3.

Can you compile 0.6 on xubuntu 12.04 and test it there? - Iirc, only libxfce4ui and libxfce4util are out-of date. So you only need to compile those 3 packages.
Comment 5 Simon Steinbeiss editbugs 2012-11-23 12:25:43 CET
I just compiled git master in Xubuntu 12.04 and can confirm the bug.
Comment 6 Simon Steinbeiss editbugs 2012-11-23 12:26:45 CET
(In reply to comment #5)
> I just compiled git master in Xubuntu 12.04 and can confirm the bug.

I forgot to add that I can also confirm the bug with ristretto 0.3.6 (which is shipped with 12.04).
Comment 7 Stephan Arts editbugs 2012-11-23 17:09:11 CET
Simon: does it occur when the thumbnailbar is disabled too?
Comment 8 Simon Steinbeiss editbugs 2012-11-23 20:03:19 CET
Happens to me either way.
Comment 9 Stephan Arts editbugs 2013-02-02 15:02:52 CET
This can not be reproduced on fedora 18 with librsvg-2.36.4
Comment 10 Stephan Arts editbugs 2013-02-02 15:03:16 CET
Which versions of librsvg, libcairo and gtk-2 do you have?
Comment 11 b3nmore 2013-02-26 16:42:03 CET
Having this issue on xubuntu 12.04 with:
ristretto: 0.6.3 (from raring)
librsvg: 2.36.1
libcairo: 1.10.2
gtk-2: 2.24.10
No matter if the thumbnail bar is on or off.
Comment 12 Raphael Groner 2013-07-16 00:53:05 CEST
I can reproduce with Fedora 18.

ristretto-0.6.3-1.fc18.x86_64
librsvg2-2.36.4-1.fc18.x86_64
cairo-1.12.14-2.fc18.x86_64
gtk2-2.24.19-1.fc18.x86_64
Comment 13 Raphael Groner 2013-07-16 00:59:22 CEST
Created attachment 5094 
hang with libreoffice4 logo

$ strace ristretto ./opt/libreoffice4.0/program/flat_logo.svg
…
lstat("/opt/libreoffice4.0/program/flat_logo.svg", {st_mode=S_IFREG|0644, st_size=29230, ...}) = 0
open("/opt/libreoffice4.0/program/flat_logo.svg", O_RDONLY) = 12
fstat(12, {st_mode=S_IFREG|0644, st_size=29230, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7febe1ad7000
read(12, "<?xml version=\"1.0\" encoding=\"UT"..., 4096) = 4096
open("/usr/share/locale/de_DE.UTF-8/LC_MESSAGES/libexif-12.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE.utf8/LC_MESSAGES/libexif-12.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE/LC_MESSAGES/libexif-12.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de.UTF-8/LC_MESSAGES/libexif-12.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de.utf8/LC_MESSAGES/libexif-12.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de/LC_MESSAGES/libexif-12.mo", O_RDONLY) = 13
fstat(13, {st_mode=S_IFREG|0644, st_size=115655, ...}) = 0
mmap(NULL, 115655, PROT_READ, MAP_PRIVATE, 13, 0) = 0x7febe1aba000
close(13)                               = 0
close(12)                               = 0
munmap(0x7febe1ad7000, 4096)            = 0
lstat("/usr/share/icons/elementary/actions/24/document-save-as.svg", {st_mode=S_IFREG|0644, st_size=22089, ...}) = 0
open("/usr/share/icons/elementary/actions/24/document-save-as.svg", O_RDONLY) = 12
fstat(12, {st_mode=S_IFREG|0644, st_size=22089, ...}) = 0
read(12, "<?xml version=\"1.0\" encoding=\"UT"..., 65536) = 22089
futex(0x1b86270, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
+++ killed by SIGKILL +++
Comment 14 Steve Dodier-Lazaro editbugs 2014-11-04 13:08:01 CET
I cannot reproduce the bug with librsvg 2.40.2. Raphael, are you sure your Ristretto is crashing as a result of the attached SVG and not another one? Your strace indicates another SVG file is opened first, can you try to open this svg in a separate folder?
Comment 15 Raphael Groner 2014-11-04 13:38:27 CET
(In reply to Steve Dodier-Lazaro from comment #14)
> I cannot reproduce the bug with librsvg 2.40.2. Raphael, are you sure your
> Ristretto is crashing as a result of the attached SVG and not another one?
> Your strace indicates another SVG file is opened first, can you try to open
> this svg in a separate folder?

Steve, thanks for your response. In the meantime, I switched to Fedora 20, cause F18 is EOL since ages... So I am not able to reproduce any more with both of he hereby referenced svg files: libreoffice and document-save-as.svg.

ristretto-0.6.3-4.fc20.x86_64
librsvg2-2.40.1-1.fc20.x86_64
cairo-1.13.1-0.1.git337ab1f.fc20.x86_64
gtk2-2.24.24-2.fc20.x86_64

About the path '/usr/share/icons/elementary/actions/24/document-save-as.svg' mentioned in the backtrace, I can see that Ristretto opens and tries to show all icons in the dedicated folder, maybe there was some faulty file those days, I can not say any detail.

=> WORKSFORME
Comment 16 Steve Dodier-Lazaro editbugs 2014-11-04 14:48:09 CET
Raphael,

Great, that seems to narrow the bug down to librsvg 2.36, since the devs haven't pointed out any relevant commit from Ristretto 0.6.3-1 to 0.6.3-4. Marking as resolved.

Bug #9502

Reported by:
Steve Dodier-Lazaro
Reported on: 2012-11-16
Last modified on: 2014-11-04

People

Assignee:
Stephan Arts
CC List:
2 users

Version

Version:
master

Attachments

hang with libreoffice4 logo (28.54 KB, image/svg+xml)
2013-07-16 00:59 CEST , Raphael Groner
no flags

Additional information