Crash when modifying pasted text in a text box

Bug #1222410 reported by yagodlt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
High
Unassigned

Bug Description

Hi all,

First of, this is my first Inkscape bug report. Thank you guys so much for developing such an amazing piece of kit. I swear by it and do all my vector work with it (and I also have Illustrator... :o)

This bug crashes Inkscape whenever I try to modify text previously pasted into a text box.

Steps to reproduce it:
* Copy some text from anywhere
* Open Inkscape
* Create a text box -- F8 or 't' + click&drag -- I suggest you make it big enough to see the end of the text you are about to paste in
* Paste in the text you copied -- Ctrl + v
* Try to write something else

If this doesn't crash it, try getting out of the text tool -- i.e. press Esc --, then select the the text tool again -- F8 or 't' -- and click back on the text to re-activate the text box. Now try adding anything to it.

This bug also affects text boxes with a mix of written and pasted text.

This bug does NOT affect text boxes with no pasted text.

OS: Linux Mint 13 64bit/Gnome shell
Inkscape version: 0.48+devel+1250

yagodlt (yagodlt)
tags: added: paste text text-box
tags: added: text-tool
removed: paste text-box
description: updated
description: updated
Revision history for this message
Martin Owens (doctormo) wrote :

I have noticed this crashing in the text tool too. When pasting in a letter from CharMap, the cursor moves to between the previous letters, moving to the end of the text and pressing backspace causes this error:

#0 erase_from_spstring (string_item=0xc87e238, iter_from=..., iter_to=...) at ../../src/text-editing.cpp:711
#1 0x0819eae7 in sp_te_delete (item=0xc7b30c8, start=..., end=..., iter_pair=...) at ../../src/text-editing.cpp:788
#2 0x08198a68 in sp_text_context_root_handler (event_context=0xada6680, event=0xbfffdecc) at ../../src/text-context.cpp:972
#3 0x080af8ba in sp_event_context_virtual_root_handler (event_context=0xada6680, event=0xc874340) at ../../src/event-context.cpp:1032
#4 0x0858c20a in sp_desktop_root_handler (event=0xc874340, desktop=0x8fa4d80) at ../../src/desktop-events.cpp:74
#5 0x0829a203 in sp_marshal_BOOLEAN__POINTER (closure=0x9a26d30, return_value=0xbfffe2fc, n_param_values=2, param_values=0xbfffe240,

I've had crashes just from pasting, usually at the end. Typing in letters, etc.

Changed in inkscape:
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

Probably a duplicate of bug #1221025 “Inkscape crashes when import text from buffer via Ctrl+V” (the earlier report however lacks any details wrt to how to reproduce).

tags: added: clipboard crash
removed: text-tool
Changed in inkscape:
importance: Undecided → High
Revision history for this message
su_v (suv-lp) wrote :

Probably due to the same regression as triaged in more recent report by jagolf:
- Bug #1224486 “Crash when typing after pressing Enter in text-box”
  <https://bugs.launchpad.net/inkscape/+bug/1224486>

Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Windows XP, Inkscape trunk revision 12626.
Fixed with the patch from bug #1224486, comment 7 (not committed yet).

Changed in inkscape:
status: Confirmed → Triaged
Revision history for this message
jazzynico (jazzynico) wrote :

> Inkscape trunk revision 12626
Correction: revision 12526.

Revision history for this message
su_v (suv-lp) wrote :

Fixed in revision 12529 - linking as duplicate to bug #1224486.

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.