yet another crash with non-ascii filenames
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Critical
|
Jon A. Cruz |
Bug Description
Sorry Jon, I know this is becoming annoying :)
Attached is the zip file with an SVG with non-ascii
filename (in my filename encoding, which is KOI8-R).
Opening it from GUI or from command line works fine.
However when I try to export it from command line it
crashes, obviously attempting to open some error box
(again!). The space in the filename does not seem to be
the reason, i.e. it also crashes for another KOI8-R
filename without spaces.
$ i не\ з
** (process:8885): WARNING **: Running commandline
One or more extensions failed to load. The failed
extensions have been skipped. Inkscape will continue to
run normally but those extensions will be unavailable.
For details to troubleshoot this problem, please refer
to the error log.
Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at
www.inkscape.org
with a detailed description of the steps leading to the
crash, so we can fix it.
(process:8885): Gtk-CRITICAL **:
gtk_settings_
(screen)' failed
(process:8885): GLib-GObject-
assertion `G_IS_OBJECT (object)' failed
(process:8885): GLib-GObject-
of type `gboolean' is invalid or out of range for
property `visible' of type `gboolean'
(process:8885): Gtk-WARNING **: Screen for GtkWindow
not set; you must always set
a screen for a GtkWindow before using the window
(process:8885): Gdk-CRITICAL **:
gdk_pango_
`GDK_IS_SCREEN (screen)' failed
(process:8885): Pango-CRITICAL **:
pango_context_
failed
(process:8885): Pango-CRITICAL **:
pango_context_
!= NULL' failed
(process:8885): Pango-CRITICAL **:
pango_context_
failed
(process:8885): Pango-CRITICAL **: pango_layout_new:
assertion `context != NULL' failed
(process:8885): Pango-CRITICAL **:
pango_layout_
(process:8885): Pango-CRITICAL **:
pango_layout_
failed
(process:8885): Pango-CRITICAL **:
pango_layout_
failed
etc. etc.
Here's the backtrace:
(gdb) run не\ з н а ю .svg png=test. png ink/inkscape/ src/inkscape не\ н а ю .svg --export- png=test. png
--export-
Starting program: /home/d/
з
Cannot open /dev/port: Permission denied
[Thread debugging using libthread_db enabled]
[New Thread 1087741248 (LWP 4855)]
** (process:4855): WARNING **: Running commandline
One or more extensions failed to load. The failed extensions
have been skipped. Inkscape will continue to run normally
but those extensions will be unavailable. For details to
troubleshoot this problem, please refer to the error log.
Program received signal SIGSEGV, Segmentation fault. :IO::file_ test (utf8name=0x0, FILE_TEST_ EXISTS) at io/sys.cpp:248 :Extension: :Input: :open н а ю .svg") input.cpp: 156 :Extension: :open (key=0x839ba58, н а ю .svg") system. cpp:98 :NSApplication: :Application: :run application. cpp:131
[Switching to Thread 1087741248 (LWP 4855)]
IA__g_utf8_validate (str=0x0, max_len=-1, end=0x0) at
gutf8.c:1530
1530 for (p = str; *p; p++)
Current language: auto; currently c
(gdb) bt
#0 IA__g_utf8_validate (str=0x0, max_len=-1, end=0x0) at
gutf8.c:1530
#1 0x0823a2a3 in Inkscape:
test=G_
#2 0x082ba723 in Inkscape:
(this=0x839ba58, uri=0xbffff69c "не
з
at extension/
#3 0x082b8d88 in Inkscape:
filename=0xbffff69c "не з
at extension/
#4 0x080d6313 in sp_main_console (argc=3, argv=0xbffff4b4)
at main.cpp:450
#5 0x08187f7e in Inkscape:
(this=0xbffff3e0)
at application/
#6 0x080d60a2 in main (argc=3, argv=0xbffff4b4) at main.cpp:308