"Bug" with command line export
Hi all,
first message on this list (following a first chat on jabber, lots of "first" today). I found a "bug" using inkscape 0.39 at the command line under mac (sorry but I can't spend all the necessary time to recompile CVS on my mac and I don't think this was mentionned before, so this wasn't fixed either probably). Anyway I wanted to export some file.svg to file.png:
inkscape -d 72 -b white -e file.png file.svg
as long as file.png does not exists, everything is fine. when file.png exists i receive a long list of errors starting like this:
(process:12102): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window
(process:12102): Gtk-CRITICAL **: file gtkiconfactory.c: line 1224 (gtk_icon_size_lookup_for_settings): assertion `GTK_IS_SETTINGS (settings)' failed
(process:12102): Gtk-WARNING **: gtkstyle.c:2037: invalid icon size '4'
(process:12102): Gtk-CRITICAL **: file gtkstyle.c: line 1903 (gtk_style_render_icon): assertion `pixbuf != NULL' failed
(process:12102): Gtk-WARNING **: Theme engine failed to render icon
(process:12102): Gdk-CRITICAL **: file gdkpango-x11.c: line 53 (gdk_pango_context_get_for_screen): assertion `GDK_IS_SCREEN (screen)' failed [....long list of the same type of errors...]
I imagine it is because inkscape tries to open a GTK windows asking me if I want to overwrite the existing file.png. a GTK window can't be opened because I launch this from the Terminal.app (and X11 is possibly not even started). But the point is that: -even if I run this command line on an xterm inside X11, I get the same errors -even if I add the "-z" option to the command line, I get the same errors If I try to export the same file from inside inkscape i got the correct dialog and I can export my file and overwrite the existing one without problems.
So I think that on system where GTK is not "native" (I think it's a bad word but maybe you can understand what I mean) GTK popup windows like this can't be opened. Therefore, I think that, to make this command line tool more robust, it might be remplaced by a text sent to the standard output (terminal) asking if the user wants to overwrite the file or not. at least when the -z option is explicitely mentionned.
thanks in advance for any help with this. ask me for precisions if yo need to.
JiHO --- Windows, c'est un peu comme le beaujolais nouveau : a chaque nouvelle cuvee on sait que ce sera degueulasse, mais on en prend quand meme par masochisme. --- http://jo.irisson.free.fr/
On Mon, 7 Feb 2005 12:11:13 +0100, jiho <jo.irisson@...400...> wrote:
Hi all,
first message on this list (following a first chat on jabber, lots of "first" today). I found a "bug" using inkscape 0.39 at the command line under mac (sorry but I can't spend all the necessary time to recompile CVS on my mac and I don't think this was mentionned before, so this wasn't fixed either probably).
Most likely it's this bug (fixed in September):
http://sourceforge.net/tracker/index.php?func=detail&aid=1009294&gro...
So the fix is in 0.40 and later.
Le 7 févr. 05, à 12:17, bulia byak a écrit :
On Mon, 7 Feb 2005 12:11:13 +0100, jiho <jo.irisson@...400...> wrote:
Hi all,
first message on this list (following a first chat on jabber, lots of "first" today). I found a "bug" using inkscape 0.39 at the command line under mac (sorry but I can't spend all the necessary time to recompile CVS on my mac and I don't think this was mentionned before, so this wasn't fixed either probably).
Most likely it's this bug (fixed in September):
http://sourceforge.net/tracker/index.php? func=detail&aid=1009294&group_id=93438&atid=604306
So the fix is in 0.40 and later.
ok, my mistake. I missed this one thinking it was a bad error message displayed instead of the dialog and not that the dialog was'nt working (not read the comments...). sorry. I'll try to compile 0.40 of CVS then.
JiHO --- Windows, c'est un peu comme le beaujolais nouveau : a chaque nouvelle cuvee on sait que ce sera degueulasse, mais on en prend quand meme par masochisme. --- http://jo.irisson.free.fr/
On Mon, Feb 07, 2005 at 01:03:45PM +0100, jiho wrote:
So the fix is in 0.40 and later.
ok, my mistake. I missed this one thinking it was a bad error message displayed instead of the dialog and not that the dialog was'nt working (not read the comments...). sorry. I'll try to compile 0.40 of CVS then.
Btw, the 0.41 release will be out within a few days, if you'd like to avoid doing an extra compile.
Bryce
participants (3)
-
Bryce Harrington
-
bulia byak
-
jiho