Re: Unable to catch Gdk::PixbufError



While this is somewhat offtopic, I'd like to point out (with my interest coming from being an ex-Inkscape-developer, or on hiatus, whatever works :) that the Gdk-Pixbuf loaders are _not always guaranteed to have an SVG loader on all systems_! This code will fail to load an SVG if this loader isn't installed; instead SPSVGView should be used if somehow possible.

OK, end of crying wolf and back to matter at hand (sorry for the diversion).

2007/11/19, J B C Engelen ewi utwente nl < J B C Engelen ewi utwente nl>:
> -----Original Message-----
> From: gtkmm-list-bounces gnome org
> [mailto:gtkmm-list-bounces gnome org] On Behalf Of Mohammed Sameer
> Sent: maandag 19 november 2007 15:36
> To: gtkmm-list gnome org
> Subject: Re: Unable to catch Gdk::PixbufError
>
> On Sun, Nov 18, 2007 at 10:31:19PM +0100,
> J B C Engelen ewi utwente nl wrote:
> >
> > Btw, I just tested on Linux. Indeed the simple file works
> for me too.
> > However, Inkscape still does not catch the exception; it
> does not crash either.
> > Instead, I get cmdline output:
> >
> > (inkscape:7556): glibmm-CRITICAL **:
> > unhandled exception (type Glib::Error) in signal handler:
> > domain: gdk-pixbuf-error-quark
> > code  : 0
> > what  : Image file '/home/johan/Desktop/crash.jpg' contains no data
> >
> > So something goes wrong in Inkscape on Linux aswell, the
> exception is not caught.
>
> Is the code available somewhere ?

Yes, but please don't get scared by the size of it.
svn co
https://inkscape.svn.sourceforge.net/svnroot/inkscape/inkscape/trunk
inkscape

The specific code fragment can be found in
/src/ui/dialog/filedialogimpl-gtkmm.cpp, line 210.

To build Inkscape:
There are quite a lot of dependencies that must be resolved, please look
on our wiki: http://wiki.inkscape.org/wiki/index.php/CompilingInkscape.
When you have troubles join in on our channel :)
http://www.inkscape.org/discussion.php?lang=en

Thank you very much for having a look at it.

Johan
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list



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