Inkscape crashes when trying to edit text

Bug #1773050 reported by Daniel
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Unassigned

Bug Description

Inkscape 0.92.3 (2405546, 2018-03-11)
Fedora 28 x64.

The reproduction steps are very simple, just create a text with a single character, enter select mode, and try to edit it by double clicking it.

---------------------------------------------------------------------------------------------------
BACKTRACE

#0 0x00007fffedccef2b in raise () at /lib64/libc.so.6
#1 0x00007fffedcb9561 in abort () at /lib64/libc.so.6
#2 0x00007ffff6eb4748 in () at /usr/bin/../lib/inkscape/libinkscape_base.so
#3 0x00007ffff75f63d3 in () at /usr/bin/../lib/inkscape/libinkscape_base.so
#4 0x00007ffff75f1942 in Inkscape::Text::Layout::_cursorXOnLineToIterator(unsigned int, double) const () at /usr/bin/../lib/inkscape/libinkscape_base.so
#5 0x00007ffff75f2f98 in Inkscape::Text::Layout::getNearestCursorPositionTo(double, double) const () at /usr/bin/../lib/inkscape/libinkscape_base.so
#6 0x00007ffff75287d2 in sp_te_get_position_by_coords(SPItem const*, Geom::Point const&) () at /usr/bin/../lib/inkscape/libinkscape_base.so
#7 0x00007ffff7174541 in Inkscape::UI::Tools::sp_text_context_place_cursor_at(Inkscape::UI::Tools::TextTool*, SPObject*, Geom::Point) ()
    at /usr/bin/../lib/inkscape/libinkscape_base.so
#8 0x00007ffff716461c in Inkscape::UI::Tools::SelectTool::root_handler(_GdkEvent*) () at /usr/bin/../lib/inkscape/libinkscape_base.so
#9 0x00007ffff7179bec in Inkscape::UI::Tools::sp_event_context_virtual_root_handler(Inkscape::UI::Tools::ToolBase*, _GdkEvent*) ()
    at /usr/bin/../lib/inkscape/libinkscape_base.so
#10 0x00007ffff7179cb3 in Inkscape::UI::Tools::sp_event_context_virtual_item_handler(Inkscape::UI::Tools::ToolBase*, SPItem*, _GdkEvent*) ()
    at /usr/bin/../lib/inkscape/libinkscape_base.so
#11 0x00007ffff6feb140 in sp_marshal_INT__POINTER_POINTER ()
    at /usr/bin/../lib/inkscape/libinkscape_base.so
#12 0x00007ffff5c11add in g_closure_invoke () at /lib64/libgobject-2.0.so.0
#13 0x00007ffff5c24f43 in () at /lib64/libgobject-2.0.so.0
#14 0x00007ffff5c2d6e3 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0
#15 0x00007ffff5c2e663 in g_signal_emit () at /lib64/libgobject-2.0.so.0
#16 0x00007ffff6ebaed3 in sp_canvas_arena_send_event(_SPCanvasArena*, _GdkEvent*) () at /usr/bin/../lib/inkscape/libinkscape_base.so
#17 0x00007ffff6ebb61b in sp_canvas_arena_event(SPCanvasItem*, _GdkEvent*) ()
    at /usr/bin/../lib/inkscape/libinkscape_base.so
#18 0x00007ffff6feaefb in sp_marshal_BOOLEAN__POINTER ()
    at /usr/bin/../lib/inkscape/libinkscape_base.so
#19 0x00007ffff5c11add in g_closure_invoke () at /lib64/libgobject-2.0.so.0
#20 0x00007ffff5c24774 in () at /lib64/libgobject-2.0.so.0
#21 0x00007ffff5c2d6e3 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0
#22 0x00007ffff5c2e663 in g_signal_emit () at /lib64/libgobject-2.0.so.0
#23 0x00007ffff6f1221e in SPCanvas::emitEvent(_GdkEvent*) ()
    at /usr/bin/../lib/inkscape/libinkscape_base.so
#24 0x00007ffff04d99ad in _gtk_marshal_BOOLEAN__BOXED ()
    at /lib64/libgtk-x11-2.0.so.0
#25 0x00007ffff5c11add in g_closure_invoke () at /lib64/libgobject-2.0.so.0
#26 0x00007ffff5c24774 in () at /lib64/libgobject-2.0.so.0
#27 0x00007ffff5c2d6e3 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0
#28 0x00007ffff5c2e663 in g_signal_emit () at /lib64/libgobject-2.0.so.0
#29 0x00007ffff060d8dc in gtk_widget_event_internal ()
    at /lib64/libgtk-x11-2.0.so.0
#30 0x00007ffff04d75cc in gtk_propagate_event () at /lib64/libgtk-x11-2.0.so.0
#31 0x00007ffff04d79cb in gtk_main_do_event () at /lib64/libgtk-x11-2.0.so.0
#32 0x00007fffefb61f00 in gdk_event_dispatch () at /lib64/libgdk-x11-2.0.so.0
#33 0x00007ffff476b8ad in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#34 0x00007ffff476bc78 in () at /lib64/libglib-2.0.so.0
#35 0x00007ffff476bfa2 in g_main_loop_run () at /lib64/libglib-2.0.so.0
#36 0x00007ffff04d695f in gtk_main () at /lib64/libgtk-x11-2.0.so.0
#37 0x000055555555eea3 in sp_main_gui(int, char const**) ()
#38 0x00007fffedcbb18b in __libc_start_main () at /lib64/libc.so.6
#39 0x000055555555b1ca in _start ()

Revision history for this message
Daniel (djrm0) wrote :
Revision history for this message
Hachmann (marenhachmann) wrote :

I think all these Fedora text issues are related. See also:
https://bugs.launchpad.net/inkscape/+bug/1768958

Revision history for this message
db8200 (db8200) wrote :

As I wrote it in https://bugs.launchpad.net/inkscape/+bug/1779779 , for me the crash occurs only if you click on the right half of your single-character text.

Revision history for this message
Nathan Lee (nathan.lee) wrote :

Closing as a fix has been committed in 1.0alpha

Note version 0.92.4 in Fedora 28 and 29 (from dnf) doesn't have this problem (perhaps Fix Released is more appropriate); however, I am unsure if a commit was actually added to fix it in 0.92.x.

The commit that fixed it https://gitlab.com/inkscape/inkscape/merge_requests/488

My decision explained in the last three comments in https://bugs.launchpad.net/inkscape/+bug/1768958/

Changed in inkscape:
status: New → Fix Committed
Revision history for this message
Qantas94Heavy (qantas94heavy) wrote :

Fedora has applied a downstream patch, but the commits pushed should fix the issue.

Max Gaukler (mgmax)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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