On 29/8/11 01:12, Krzysztof Kosiński wrote:
Revision 10589 removes all trace of libnr from Inkscape's code, which was a major refactoring goal. This is a rather big change and might break various things. Here is a short summary of the changes:
Regression with custom color swatches ('Auto' palette).
Steps to reproduce: 1) launch Inkscape with new (default) prefs 2) create two rectangles, select the first one 3) open Fill&Stroke and convert the fill to a swatch 4) change the color palette to 'Auto' (or use the 'Swatches' dialog with the 'Auto' palette selected) 5) select the other rectangle and assign the new swatch to its fill paint by clicking the (blue) swatch in the 'Auto' palette
-> crash (backtrace attached)
Related: Files with (multiple ?) custom swatches in use crash when generating the thumbnail preview in the 'File > Open...' dialog:
1) save attached SVG file into a new directory 2) launch inkscape, open the file dialog and disable the preview 3) browse to the new directory with the attached file 4) toggle preview on
-> crash
When testing with archived builds of earlier revisions, this worked up to 10588 and fails beginning with r10589 up to current (~) revision 10634 (last one tested).
All test done on Mac OS X 10.5.8 (i386).
(gdb) r Starting program: /Volumes/green/mp-inkscape/src/inkscape-trunk/Build/bin/inkscape Reading symbols for shared libraries ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.......................................................................... done Xlib: extension "RANDR" missing on display "/tmp/launch-EhMYaX/:0". Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Assertion failed: (this->is_initialized()), function operator->, file /Volumes/green/mp-inkscape/with-a-long-long-long-directory-name/include/boost/optional/optional.hpp, line 640.
Program received signal SIGABRT, Aborted. 0x90deae42 in __kill () (gdb) bt #0 0x90deae42 in __kill () #1 0x90deae34 in kill$UNIX2003 () #2 0x90e5d23a in raise () #3 0x90e69679 in abort () #4 0x90e5e3db in __assert_rtn () #5 0x001971bc in boost::optionalGeom::Rect::operator-> (this=0x769d0b4) at optional/optional.hpp:640 #6 0x00191aea in sp_gradient_pattern_common_setup (cp=0x766f440, gr=0x7ad6498, bbox=@0x769d0b4, opacity=1) at sp-gradient.cpp:1526 #7 0x00193f8a in sp_lineargradient_create_pattern (ps=0x7ad6498, bbox=@0x769d0b4, opacity=1) at sp-gradient.cpp:1567 #8 0x001d956f in sp_paint_server_create_pattern (ps=0x7ad6498, ct=0x8063400, bbox=@0x769d0b4, opacity=1) at sp-paint-server.cpp:82 #9 0x002f9911 in NRStyle::prepareFill (this=0x769d0fc, ct=@0xbfffd9e8, paintbox=@0x769d0b4) at display/nr-style.cpp:152 #10 0x002cf183 in Inkscape::DrawingShape::_renderItem (this=0x769d030, ct=@0xbfffd9e8, area=@0xbfffd840, flags=0, stop_at=0x0) at display/drawing-shape.cpp:182 #11 0x002c9bcd in Inkscape::DrawingItem::render (this=0x769d030, ct=@0xbfffd9e8, area=@0xbfffd9f8, flags=0, stop_at=0x0) at display/drawing-item.cpp:521 #12 0x002c5f36 in Inkscape::DrawingGroup::_renderItem (this=0x6f37360, ct=@0xbfffd9e8, area=@0xbfffd9f8, flags=0, stop_at=0x0) at display/drawing-group.cpp:103 #13 0x002c9e52 in Inkscape::DrawingItem::render (this=0x6f37360, ct=@0xbfffdbb8, area=@0xbfffdbc8, flags=0, stop_at=0x0) at display/drawing-item.cpp:570 #14 0x002c5f36 in Inkscape::DrawingGroup::_renderItem (this=0x6f37290, ct=@0xbfffdbb8, area=@0xbfffdbc8, flags=0, stop_at=0x0) at display/drawing-group.cpp:103 #15 0x002c9e52 in Inkscape::DrawingItem::render (this=0x6f37290, ct=@0xbfffdd88, area=@0xbfffdd98, flags=0, stop_at=0x0) at display/drawing-item.cpp:570 #16 0x002c5f36 in Inkscape::DrawingGroup::_renderItem (this=0x6f36030, ct=@0xbfffdd88, area=@0xbfffdd98, flags=0, stop_at=0x0) at display/drawing-group.cpp:103 #17 0x002c9e52 in Inkscape::DrawingItem::render (this=0x6f36030, ct=@0xbfffde64, area=@0xbfffde74, flags=0, stop_at=0x0) at display/drawing-item.cpp:570 #18 0x002c3897 in Inkscape::Drawing::render (this=0x718509c, ct=@0xbfffde64, area=@0xbfffde74, flags=0) at display/drawing.cpp:152 #19 0x002a4191 in sp_canvas_arena_render (item=0x7185000, buf=0xbfffdfd4) at display/canvas-arena.cpp:228 #20 0x0030682c in sp_canvas_group_render (item=0x6e840b0, buf=0xbfffdfd4) at display/sp-canvas.cpp:874 #21 0x0030682c in sp_canvas_group_render (item=0x6e84020, buf=0xbfffdfd4) at display/sp-canvas.cpp:874 #22 0x003035d8 in sp_canvas_paint_single_buffer (canvas=0x47fe370, paint_rect=@0xbfffe1a0, canvas_rect=@0xbfffe158) at display/sp-canvas.cpp:1681 #23 0x0030397c in sp_canvas_paint_rect_internal (setup=0xbfffe154, this_rect=@0xbfffe1a0) at display/sp-canvas.cpp:1794 #24 0x0030514b in sp_canvas_paint_rect (canvas=0x47fe370, xx0=192, yy0=-400, xx1=400, yy1=-192) at display/sp-canvas.cpp:1895 #25 0x00307a2a in paint (canvas=0x47fe370) at display/sp-canvas.cpp:2042 #26 0x00307bfb in do_update (canvas=0x47fe370) at display/sp-canvas.cpp:2079 #27 0x00307d2a in sp_canvas_update_now (canvas=0x47fe370) at display/sp-canvas.cpp:2189 #28 0x0003942a in SPDesktop::updateNow (this=0x5f6fd80) at desktop.cpp:1413 #29 0x00041fa5 in sigc::bound_mem_functor0<void, SPDesktop>::operator() (this=0x6f35abc) at functors/mem_fun.h:1787 #30 0x00041fbc in sigc::adaptor_functor<sigc::bound_mem_functor0<void, SPDesktop> >::operator() (this=0x6f35ab8) at adaptors/adaptor_trait.h:251 #31 0x00041fd8 in sigc::internal::slot_call0<sigc::bound_mem_functor0<void, SPDesktop>, void>::call_it (rep=0x6f35aa0) at functors/slot.h:103 #32 0x0079dde8 in sigc::internal::signal_emit0<void, sigc::nil>::emit (impl=0x6f35a50) at signal.h:772 #33 0x0079de96 in sigc::signal0<void, sigc::nil>::emit (this=0x663b428) at signal.h:2669 #34 0x0006c5c8 in Inkscape::DocumentUndo::maybeDone (doc=0x5f4af60, key=0x0, event_type=190, event_description=@0xbfffe5ac) at document-undo.cpp:200 #35 0x0006c623 in Inkscape::DocumentUndo::done (doc=0x5f4af60, event_type=190, event_description=@0xbfffe5ac) at document-undo.cpp:112 #36 0x005a3f40 in Inkscape::UI::Dialogs::ColorItem::buttonClicked (this=0x7c4ec40, secondary=false) at ui/dialog/color-item.cpp:729 #37 0x005a4007 in Inkscape::UI::Dialogs::handleClick (callback_data=0x7c4ec40) at ui/dialog/color-item.cpp:102 #38 0x04149f59 in g_closure_invoke () #39 0x0415c0d3 in signal_emit_unlocked_R () #40 0x0415d761 in g_signal_emit_valist () #41 0x0415da69 in g_signal_emit () #42 0x004d6977 in eek_preview_button_release_cb (widget=0x7b57c20, event=0x7b669f0) at widgets/eek-preview.cpp:467 #43 0x026ca85b in _gtk_marshal_BOOLEAN__BOXED () #44 0x04149f59 in g_closure_invoke () #45 0x0415c258 in signal_emit_unlocked_R () #46 0x0415d4a7 in g_signal_emit_valist () #47 0x0415da69 in g_signal_emit () #48 0x027f9546 in gtk_widget_event_internal () #49 0x026c8a58 in gtk_propagate_event () #50 0x026c8fcd in gtk_main_do_event () #51 0x00007370 in snooper (event=0x7b669f0) at main.cpp:912 #52 0x034f8845 in gdk_event_dispatch () #53 0x0420551d in g_main_context_dispatch () #54 0x042093ab in g_main_context_iterate () #55 0x04209687 in g_main_loop_run () #56 0x026c7fa1 in gtk_main () #57 0x0214d59b in Gtk::Main::run () #58 0x00007d1c in sp_main_gui (argc=1, argv=0xbffff0fc) at main.cpp:978 #59 0x00008502 in main (argc=1, argv=0xbffff0fc) at main.cpp:709 (gdb)