I checked your patch with recent SVN version and it works well. Changing paths doesn't lead to crash but applying selected SVG element insted of specified image file unfortunately does. Here is a GDB output: (gdb) run The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /usr/local/bin/inkscape [Thread debugging using libthread_db enabled] [New Thread 0xb5ff3770 (LWP 17765)] (inkscape:17765): Gtk-WARNING **: Attempting to read the recently used resources file at `/home/tomek/.recently-used.xbel', but the parser failed: Error reading file '/home/tomek/.recently-used.xbel': Invalid argument. [New Thread 0xb5704b90 (LWP 17774)] [New Thread 0xb4f03b90 (LWP 17775)] [New Thread 0xb4702b90 (LWP 17776)] [Thread 0xb4f03b90 (LWP 17775) exited] [Thread 0xb5704b90 (LWP 17774) exited] [New Thread 0xb5704b90 (LWP 17777)] [Thread 0xb4702b90 (LWP 17776) exited] [New Thread 0xb4702b90 (LWP 17778)] [Thread 0xb5704b90 (LWP 17777) exited] [Thread 0xb4702b90 (LWP 17778) exited] ** (inkscape:17765): WARNING **: More than 32 iteration while updating document '(null)' ** (inkscape:17765): WARNING **: More than 32 iteration while updating document '(null)' Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb5ff3770 (LWP 17765)] 0x080f5f44 in sp_item_invoke_show (item=0x6e282720, arena=0xaa1d770, key=29, flags=1) at sp-item.cpp:1099 1099 g_assert(SP_IS_ITEM(item)); (gdb) bt #0 0x080f5f44 in sp_item_invoke_show (item=0x6e282720, arena=0xaa1d770, key=29, flags=1) at sp-item.cpp:1099 #1 0x081e5cec in Inkscape::Filters::FilterImage::render (this=0xdd52928, slot=@0xbfb02e4c, units=@0xbfb02f00) at display/nr-filter-image.cpp:55 #2 0x081c716c in Inkscape::Filters::Filter::render (this=0xc3f3e80, item=0xc3eeb68, pb=0xbfb0310c) at display/nr-filter.cpp:212 #3 0x0819b3c8 in nr_arena_item_invoke_render (ct=0xdd76fd8, item=0xc3eeb68, area=0xbfb032e4, pb=0xbfb03640, flags=0) at display/nr-arena-item.cpp:456 #4 0x0819bf9d in nr_arena_group_render (ct=0xdd76fd8, item=0xaa0cbd0, area=0xbfb032e4, pb=0xbfb03640, flags=0) at display/nr-arena-group.cpp:228 #5 0x0819b305 in nr_arena_item_invoke_render (ct=0xdd76fd8, item=0xaa0cbd0, area=0xbfb03464, pb=0xbfb03640, flags=) at display/nr-arena-item.cpp:576 #6 0x0819bf9d in nr_arena_group_render (ct=0xdd76fd8, item=0xaa0cd20, area=0xbfb03464, pb=0xbfb03640, flags=0) at display/nr-arena-group.cpp:228 #7 0x0819b305 in nr_arena_item_invoke_render (ct=0xdd76fd8, item=0xaa0cd20, area=0xbfb035e4, pb=0xbfb03640, flags=) at display/nr-arena-item.cpp:576 #8 0x0819bf9d in nr_arena_group_render (ct=0xdd76fd8, item=0xaa0ce70, area=0xbfb035e4, pb=0xbfb03640, flags=0) at display/nr-arena-group.cpp:228 #9 0x0819b305 in nr_arena_item_invoke_render (ct=0xdd76fd8, item=0xaa0ce70, area=0xbfb0366c, pb=0xbfb03640, flags=) at display/nr-arena-item.cpp:576 #10 0x08576391 in sp_canvas_arena_render (item=0xadc6150, buf=0xbfb03744) at display/canvas-arena.cpp:219 #11 0x081c1262 in sp_canvas_group_render (item=0xb406090, buf=0xbfb03744) at display/sp-canvas.cpp:867 #12 0x081c1262 in sp_canvas_group_render (item=0xb406000, buf=0xbfb03744) at display/sp-canvas.cpp:867 #13 0x081c3954 in sp_canvas_paint_rect_internal (setup=, this_rect={x0 = 96, y0 = -272, x1 = 256, y1 = -112}) at display/sp-canvas.cpp:1633 #14 0x081c3b96 in sp_canvas_paint_rect (canvas=0xadcf358, xx0=96, yy0=-272, xx1=256, yy1=-112) at display/sp-canvas.cpp:1911 #15 0x081c3f93 in do_update (canvas=0xadcf358) at display/sp-canvas.cpp:2063 #16 0x08093292 in sp_document_maybe_done (doc=0xa9e8f60, key=0x0, event_type=202, event_description= {static npos = 4294967295, string_ = {static npos = 4294967295, _M_dataplus = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_p = 0xbfb03a7c "�,�\r\b;��`��\v\030;��T�8\b`\217\236\n�"}}}) at /usr/include/sigc++-2.0/sigc++/signal.h:548 #17 0x0809366c in sp_document_done (doc=0xa9e8f60, event_type=202, event_description= {static npos = 4294967295, string_ = {static npos = 4294967295, _M_dataplus = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_p = 0xbfb03b08 "�,�\r����H;��\020�\217\rX;���\203���L�\rH;��\210�E\n�\0370�h��\rh��\r\024�\217\r�%/�h��\r��*�t��\f�\0370�\200\203��h��\r\210;��l�-��H�\f\230\022X\f\020�\217\r\002"}}}) at document-undo.cpp:125 #18 0x0838a654 in Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::on_selection_toggled (this=0xdbb4cd8, path=@0xbfb03b48) at ui/dialog/filter-effects-dialog.cpp:1249 #19 0xb7e283f1 in ?? () from /usr/lib/libgtkmm-2.4.so.1 #20 0xb72dcb6c in g_cclosure_marshal_VOID__STRING () from /usr/lib/libgobject-2.0.so.0 #21 0xb72cfc7b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #22 0xb72e63d2 in ?? () from /usr/lib/libgobject-2.0.so.0 #23 0xb72e74b9 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #24 0xb72e7936 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #25 0xb765ab1e in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #26 0xb7e20c32 in Gtk::CellRenderer_Class::activate_vfunc_callback () from /usr/lib/libgtkmm-2.4.so.1 #27 0xb7651658 in gtk_cell_renderer_activate () from /usr/lib/libgtk-x11-2.0.so.0 #28 0xb780d6a1 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #29 0xb780ddd2 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #30 0xb780aeb8 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #31 0xb7eec10c in Gtk::Widget_Class::button_press_event_callback () from /usr/lib/libgtkmm-2.4.so.1 #32 0xb7701526 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #33 0xb72ce3d9 in ?? () from /usr/lib/libgobject-2.0.so.0 #34 0xb72cfc7b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #35 0xb72e5aff in ?? () from /usr/lib/libgobject-2.0.so.0 #36 0xb72e734f in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #37 0xb72e7936 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #38 0xb781c2ae in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #39 0xb76f9f7c in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0 #40 0xb76fb447 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 #41 0xb758734a in ?? () from /usr/lib/libgdk-x11-2.0.so.0 #42 0xb7231b88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #43 0xb72350eb in ?? () from /usr/lib/libglib-2.0.so.0 #44 0xb72355ba in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #45 0xb76fb7d9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 #46 0xb7e613d7 in Gtk::Main::run_impl () from /usr/lib/libgtkmm-2.4.so.1 #47 0xb7e611d2 in Gtk::Main::run () from /usr/lib/libgtkmm-2.4.so.1 #48 0x080888f7 in sp_main_gui (argc=1, argv=0xbfb048b4) at main.cpp:949 #49 0x081672fa in Inkscape::NSApplication::Application::run (this=0xbfb047f0) at application/application.cpp:114 #50 0x08087f4d in main (argc=1, argv=0xbfb048b4) at main.cpp:685 (gdb)