Flowed text: segfault occurs when copying text from flow region

Bug #1228509 reported by Masato HASHIMOTO
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Markus Engel

Bug Description

Segmentation fault occurs on Flowed text.

Steps to Reproduce:
1) Create Flow region
2) Type characters
3) Drag some/all characters
4) Copy them (Ctrl-C or from context menu)

Backtrace attached.

Build & Platform:
Build 2013-09-21 on ArchLinux (x86_64)

Versions:
Inkscape trunk-r12557
gcc 4.8.1

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

Reproduced with r12557 on OS X 10.7.5 (same backtrace).

Testing with archived builds:
- works with rev <= 12531
- crashes with rev >= 12532

@Markus - could you take a closer look?

tags: added: clipboard crash regression text
Changed in inkscape:
importance: Undecided → High
milestone: none → 0.49
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :
Revision history for this message
su_v (suv-lp) wrote :

With rev <= 12531, copying a highlighted selection from flowed text produces this console message, but no crash:
e.g. with r12487:

(inkscape-12487:47077): GLib-GObject-WARNING **: invalid cast from `SPString' to `SPItem'

Revision history for this message
Markus Engel (engelmarkus) wrote :

This patch should fix that, please confirm this is working for you.
Note that the style (font, size, ...) of the selected text is not copied along. But this has never worked before it seems.

Changed in inkscape:
assignee: nobody → Markus Engel (engelmarkus)
status: Confirmed → In Progress
Revision history for this message
su_v (suv-lp) wrote :

Patch tested successfully with r12567 (OS X 10.7.5, GTK+/Quartz 2.24.21)

On 2013-09-21 14:21 +0200, Markus Engel wrote:
> Note that the style (font, size, ...) of the selected text is not
> copied along. But this has never worked before it seems.

Not supported, see
- Bug #240382 “Copy & paste text doesn't keep formatting”
  <https://bugs.launchpad.net/inkscape/+bug/240382>

Revision history for this message
Markus Engel (engelmarkus) wrote :

Fixed in r12569.

Changed in inkscape:
status: In Progress → Fix Released
su_v (suv-lp)
Changed in inkscape:
milestone: 0.49 → none
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.