Re: Segmentation fault opening an SVG file.



On Mon, Aug 20, 2012 at 10:53:29PM +0200, Felix Riemann wrote:
> Am Montag, den 20.08.2012, 19:09 +0200 schrieb Franck Michea:
> > Hi there!
> 
> Hi Franck!
> 
> > I am using eog to watch some SVG I generate[1], and some of them are crashing
> > EOG. My problem is dmesg says crash come from librsvg[2] but rsvg-view-3 opens
> > the svg correctly, and I don't know what features their library exports.
> > 
> > I'd like to know if this segementation fault comes from eog or librsvg, or if
> > it is just my SVG that is malformed. Some informations I guess you might need:
> > 
> >  - I use eog 3.4.3 and librsvg 2.36.1 (from official archlinux repositories)
> >  - linux 3.4.9 x86_64
> >  - SVG is generated from a dot file with dot software (graphviz)
> >  - I don't use GNOME.
> 
> Just tried with my Fedora 17 machine (eog 3.4.3, librsvg 2.36.1) as well
> as with my development chroot (eog 3.5.90, librsvg 2.36.2) and it worked
> in both instances.
> 
> But, loading will take quite some time and the memory requirement is
> enormous! It requires close to 1.5GB twice (because the X Server
> maintains its own copy) here after loading, possibly more while loading.
> So, it could be that you are hitting an OOM situation.

Huh, I should have checked that... I just checked. Before launching EOG my
system was using 140 Mio of my 3.8 Gio RAM, and when launching EOG and opening
the SVG file, it fills all the memory and then X crashes (Yeah this time I
tried 3 times in a row and each time X crashed with everything).

You are right, it's just killed by OOM, I didn't know a 660 Kio file could need
that much memory when loaded. I have no swap yet, but I'll fix that soon. I
will also fix my script to generate images that need lesser memory.

> Not sure why it seems to crash in EogJobQueue for you though.

Do you check every pointer returned by allocating functions? It could explain
why I get a segmentation fault from EogJobQueue. If you want to go deeper (if
you feel like it's necessary), I am willing to compile everything and give you
a backtrace and everything you need.

Thanks for your help,
Regards,

-- 
Franck Michea - EPITA/LSE 2014


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]