Blurring a zero-height or zero-width path
Migrated from: https://bugs.launchpad.net/inkscape/+bug/168943
Filter effects applied to a horizontal or vertical line don't produce visible output.
===== Original description:
On ubuntu, the latest autopackage version (inkscape200709061136 - haven't tested other packages or versions, or operating systems) crashes when a straight path with all the nodes aligned vertically or horizontally is blurred. The crash will not occur if the path has a curve, or all the nodes are not aligned vertically or horizontally. The crash occurs whether the line is drawn with the nodes aligned and then blurred, or if a line with nodes not aligned vertically or horizontally is blurred, and then the nodes aligned.
To cause this crash:
- Using the bezier tool, draw a straight line constrained vertically or horizontally
- Blur the line (I did this with the fill and stroke dialog. Maybe manually blurring would not cause the crash?)
gdb output:
glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: Is nothing
aborting...
Program received signal SIGABRT, Aborted.
[Switching to Thread -1225590560 (LWP 19970)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7059df0 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb705b641 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb739270a in g_logv () from /usr/lib/libglib-2.0.so.0
#4 0xb7392749 in g_log () from /usr/lib/libglib-2.0.so.0
#5 0x0852ffb3 in Glib::exception_handlers_invoke ()
#6 0x08534e93 in Glib::SignalProxyNormal::slot0_void_callback ()
#7 0xb759e9d9 in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0
#8 0xb759162b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#9 0xb75a23f1 in ?? () from /usr/lib/libgobject-2.0.so.0
#10 0x0ada1190 in ?? ()
#11 0x00000000 in ?? ()
Edited by Nathan Lee