opening filters.svg (official inkscape's svg example) - crash

Bug #278813 reported by Vladimir Savic
20
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Joshua Blocher

Bug Description

As described above. Additional info:

23:47 linux:/opt > gdb ./inkscape/bin/inkscape
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux"...
(gdb) run
Starting program: /opt/inkscape/bin/inkscape
[Thread debugging using libthread_db enabled]
[New Thread 0x7f1b47499700 (LWP 9507)]

** (inkscape:9507): WARNING **: <image xlink:href="/home/vlada/grafika/korisne slike/dzep_mali_samodzep.png"> did not resolve to a valid image file (base dir is /home/vladimir/autosave/), now trying sodipodi:absref="/home/vlada/grafika/korisne slike/dzep_mali_samodzep.png"

** (inkscape:9507): WARNING **: Unable to open linked file: /home/vlada/grafika/korisne slike/dzep_mali_samodzep.png
**
** ERROR:(display/nr-filter-units.cpp:44):void NR::FilterUnits::set_resolution(double, double): assertion failed: (x_res > 0)

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7f1b47499700 (LWP 9507)]
0x00007f1b3f0e05c5 in raise () from /lib64/libc.so.6
(gdb) bt
#0 0x00007f1b3f0e05c5 in raise () from /lib64/libc.so.6
#1 0x00007f1b3f0e1bb3 in abort () from /lib64/libc.so.6
#2 0x00007f1b4377b2a7 in g_assertion_message () from /usr/lib64/libglib-2.0.so.0
#3 0x00007f1b4377b742 in g_assertion_message_expr () from /usr/lib64/libglib-2.0.so.0
#4 0x000000000079bce4 in NR::FilterUnits::set_resolution (this=<value optimized out>, x_res=0, y_res=0) at display/nr-filter-units.cpp:44
#5 0x00000000007875ac in NR::Filter::render (this=0x3b6ff00, item=<value optimized out>, pb=0x7fff4f4eb100) at display/nr-filter.cpp:166
#6 0x000000000075c930 in nr_arena_item_invoke_render (ct=0x741b910, item=0x9f2d7f8, area=<value optimized out>, pb=0x7fff4f4eb770, flags=1)
    at display/nr-arena-item.cpp:446
#7 0x000000000075e3dd in nr_arena_group_render (ct=0x741b910, item=<value optimized out>, area=0x7fff4f4eb360, pb=0x7fff4f4eb770, flags=0)
    at display/nr-arena-group.cpp:230
#8 0x000000000075c850 in nr_arena_item_invoke_render (ct=0x741b910, item=0x9f2d990, area=<value optimized out>, pb=0x7fff4f4eb770, flags=0)
    at display/nr-arena-item.cpp:566
#9 0x000000000075e3dd in nr_arena_group_render (ct=0x741b910, item=<value optimized out>, area=0x7fff4f4eb530, pb=0x7fff4f4eb770, flags=0)
    at display/nr-arena-group.cpp:230
#10 0x000000000075c850 in nr_arena_item_invoke_render (ct=0x741b910, item=0x9f2db28, area=<value optimized out>, pb=0x7fff4f4eb770, flags=0)
    at display/nr-arena-item.cpp:566
#11 0x000000000075e3dd in nr_arena_group_render (ct=0x741b910, item=<value optimized out>, area=0x7fff4f4eb700, pb=0x7fff4f4eb770, flags=0)
    at display/nr-arena-group.cpp:230
#12 0x000000000075c850 in nr_arena_item_invoke_render (ct=0x741b910, item=0x9e30e58, area=<value optimized out>, pb=0x7fff4f4eb770, flags=0)
    at display/nr-arena-item.cpp:566
#13 0x0000000000767fcb in sp_canvas_arena_render (item=<value optimized out>, buf=<value optimized out>) at display/canvas-arena.cpp:219
#14 0x0000000000782235 in sp_canvas_group_render (item=<value optimized out>, buf=0x7fff4f4eb8a0) at display/sp-canvas.cpp:866
#15 0x0000000000782235 in sp_canvas_group_render (item=<value optimized out>, buf=0x7fff4f4eb8a0) at display/sp-canvas.cpp:866
#16 0x0000000000784831 in sp_canvas_paint_rect_internal (setup=<value optimized out>, this_rect={x0 = 0, y0 = 0, x1 = 160, y1 = 329})
    at display/sp-canvas.cpp:1633
#17 0x0000000000784a76 in sp_canvas_paint_rect (canvas=0x2816730, xx0=0, yy0=0, xx1=160, yy1=329) at display/sp-canvas.cpp:1910
#18 0x0000000000784ee9 in do_update (canvas=0x2816730) at display/sp-canvas.cpp:2062
#19 0x0000000000784f72 in idle_handler (data=<value optimized out>) at display/sp-canvas.cpp:2118
#20 0x00007f1b4375593a in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#21 0x00007f1b43759040 in ?? () from /usr/lib64/libglib-2.0.so.0
#22 0x00007f1b4375950d in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#23 0x00007f1b45c612d4 in gtk_dialog_run () from /usr/lib64/libgtk-x11-2.0.so.0
#24 0x00000000005f50c4 in Inkscape::UI::Dialog::FileOpenDialogImplGtk::show (this=0x5289a00) at ui/dialog/filedialogimpl-gtkmm.cpp:766
#25 0x000000000045c395 in sp_file_open_dialog (parentWindow=@0x1afeac0) at file.cpp:443
#26 0x00000000007a104b in sp_action_perform (action=0x1412d90, data=0x0) at helper/action.cpp:181
#27 0x00007f1b44e3020d in g_closure_invoke () from /usr/lib64/libgobject-2.0.so.0
#28 0x00007f1b44e4408c in ?? () from /usr/lib64/libgobject-2.0.so.0
#29 0x00007f1b44e4550e in g_signal_emit_valist () from /usr/lib64/libgobject-2.0.so.0
#30 0x00007f1b44e45a53 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#31 0x00007f1b45c00503 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#32 0x00007f1b44e3020d in g_closure_invoke () from /usr/lib64/libgobject-2.0.so.0
#33 0x00007f1b44e4408c in ?? () from /usr/lib64/libgobject-2.0.so.0
#34 0x00007f1b44e4550e in g_signal_emit_valist () from /usr/lib64/libgobject-2.0.so.0
#35 0x00007f1b44e45844 in g_signal_emit_by_name () from /usr/lib64/libgobject-2.0.so.0
#36 0x00007f1b44e3020d in g_closure_invoke () from /usr/lib64/libgobject-2.0.so.0
#37 0x00007f1b44e4408c in ?? () from /usr/lib64/libgobject-2.0.so.0
#38 0x00007f1b44e4550e in g_signal_emit_valist () from /usr/lib64/libgobject-2.0.so.0
#39 0x00007f1b44e45a53 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#40 0x00007f1b45c17b0d in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#41 0x00007f1b44e3020d in g_closure_invoke () from /usr/lib64/libgobject-2.0.so.0
#42 0x00007f1b44e439a9 in ?? () from /usr/lib64/libgobject-2.0.so.0
#43 0x00007f1b44e4550e in g_signal_emit_valist () from /usr/lib64/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#44 0x00007f1b44e45a53 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#45 0x00007f1b45c16cad in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#46 0x00007f1b45ce6998 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#47 0x00007f1b44e3020d in g_closure_invoke () from /usr/lib64/libgobject-2.0.so.0
#48 0x00007f1b44e43d6d in ?? () from /usr/lib64/libgobject-2.0.so.0
#49 0x00007f1b44e45392 in g_signal_emit_valist () from /usr/lib64/libgobject-2.0.so.0
#50 0x00007f1b44e45a53 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#51 0x00007f1b45dfba8e in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#52 0x00007f1b45cdf513 in gtk_propagate_event () from /usr/lib64/libgtk-x11-2.0.so.0
#53 0x00007f1b45ce055b in gtk_main_do_event () from /usr/lib64/libgtk-x11-2.0.so.0
#54 0x00007f1b459402ac in ?? () from /usr/lib64/libgdk-x11-2.0.so.0
#55 0x00007f1b4375593a in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#56 0x00007f1b43759040 in ?? () from /usr/lib64/libglib-2.0.so.0
#57 0x00007f1b4375950d in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#58 0x00007f1b45ce0977 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
#59 0x00000000004520f9 in sp_main_gui (argc=1, argv=0x7fff4f4ee048) at main.cpp:850
#60 0x000000000045255d in main (argc=1, argv=0x7fff4f4ee048) at main.cpp:660
(gdb) k

Revision history for this message
Joshua Blocher (verbalshadow) wrote :

Might be an empty Rect issue, i'm looking into it.

Changed in inkscape:
assignee: nobody → verbalshadow
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Joshua Blocher (verbalshadow) wrote :

I still have not solved this yet at revision 19980 it on longer crashes inconsistently for me when open from the file dialog. if the file is opened on the commandline or the file->open recent it does not crash at all. This does not appear to be conversation to 2geom related.

Revision history for this message
Joshua Blocher (verbalshadow) wrote :

it no longer crashes consistently

Revision history for this message
Joshua Blocher (verbalshadow) wrote :

i have committed a fix in revision 20001 please test and verify.

Revision history for this message
Joshua Blocher (verbalshadow) wrote :

Confirmed fixed by vladimir on IRC

Changed in inkscape:
status: Confirmed → Fix Released
Revision history for this message
dopelover (dopelover) wrote :
Download full text (5.2 KiB)

Seems to me that we have to reopen this bug. Inkscape crashes opening filters.svg sample file. This problem affects Inkscape r21051. GDB output is just below.

GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
run
(gdb) run
Starting program: /home/tomek/bin/bin/inkscape
[Thread debugging using libthread_db enabled]
[New Thread 0x7ff07ae8f7c0 (LWP 7186)]
[New Thread 0x41a31950 (LWP 7189)]
[New Thread 0x42232950 (LWP 7190)]
[New Thread 0x411e1950 (LWP 7191)]
[Thread 0x41a31950 (LWP 7189) exited]
[Thread 0x411e1950 (LWP 7191) exited]

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0x7ff07ae8f7c0 (LWP 7186)]
0x0000000000596946 in interpolatePixels<false> (pb=<value optimized out>,
    x=0.15686274509803866, y=-1302.9019607843138)
    at display/nr-filter-displacement-map.cpp:93
warning: Source file is more recent than executable.
93 r[i] = (ru + ru/2u)/ru; // range [0,255]
(gdb) bt
#0 0x0000000000596946 in interpolatePixels<false> (pb=<value optimized out>,
    x=0.15686274509803866, y=-1302.9019607843138)
    at display/nr-filter-displacement-map.cpp:93
#1 0x0000000000597633 in Inkscape::Filters::FilterDisplacementMap::render (
    this=0x911ef10, slot=@0x7fff82ecded0, units=<value optimized out>)
    at display/nr-filter-displacement-map.cpp:122
#2 0x000000000058bfac in Inkscape::Filters::Filter::render (this=0x9aa5100,
    item=<value optimized out>, pb=0x7fff82ece210) at display/nr-filter.cpp:210
#3 0x000000000055cc2b in nr_arena_item_invoke_render (ct=0x8df4ef0,
    item=0x9ae22e0, area=<value optimized out>, pb=0x7fff82ece800, flags=0)
    at display/nr-arena-item.cpp:456
#4 0x000000000055d73d in nr_arena_group_render (ct=0x8df4ef0,
    item=<value optimized out>, area=0x7fff82ece330, pb=0x7fff82ece800,
    flags=0) at display/nr-arena-group.cpp:228
#5 0x000000000055cbbd in nr_arena_item_invoke_render (ct=0x8df4ef0,
    item=0x6e7c8a0, area=<value optimized out>, pb=0x7fff82ece800, flags=0)
    at display/nr-arena-item.cpp:576
#6 0x000000000055d73d in nr_arena_group_render (ct=0x8df4ef0,
    item=<value optimized out>, area=0x7fff82ece4e0, pb=0x7fff82ece800,
    flags=0) at display/nr-arena-group.cpp:228
#7 0x000000000055cbbd in nr_arena_item_invoke_render (ct=0x8df4ef0,
    item=0x6e7ca10, area=<value optimized out>, pb=0x7fff82ece800, flags=0)
    at display/nr-arena-item.cpp:576
---Type <return> to continue, or q <return> to quit---
#8 0x000000000055d73d in nr_arena_group_render (ct=0x8df4ef0,
    item=<value optimized out>, area=0x7fff82ece690, pb=0x7fff82ece800,
    flags=0) at display/nr-arena-group.cpp:228
#9 0x000000000055cbbd in nr_arena_item_invoke_render (ct=0x8df4ef0,
    item=0x23f5cf0, area=<value optimized out>, pb=0x7fff82ece800, flags=0)
    at display/nr-arena-item.cpp:576
#10 0x0000000000916d6b in sp_canvas_arena_render (item=<value optimiz...

Read more...

Changed in inkscape:
status: Fix Released → New
Revision history for this message
Niko Kiirala (kiirala) wrote :

That's a different problem. See bug #352512

Changed in inkscape:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.