Text objects can't be converted to a pattern with 'Object to pattern'

Bug #169051 reported by Bug Importer
0
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Low
Unassigned

Bug Description

Applying the 'Object to Pattern' operation on a Effects->Render->Lorem
ipsum, results in the object contents no longer being displayed and console
output of:

(inkscape:9246): GLib-GObject-WARNING **: invalid cast from `SPPattern' to
`SPItem'

(inkscape:9246): GLib-GObject-WARNING **: invalid cast from `SPDefs' to
`SPItem'

This operation gives the user no output message if the application is not
run from the Console.

- 2180626 4030168

Tags: pattern text
Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Originator: NO

first of all, lorem ipsum does not work in svn - some python error -
Aaron, can you please look into that?

after that i'll check this bug :)

vonHalenbach (lustik)
Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Tom Davidson (tjd-mit) wrote :

The python error Bulia refers to is pasted below. It looks a lot like the error also being generated by the gear (bug 175115) and barcode (no separate bug report) effects right now . SVN rev 16895, linux x86.

Traceback (most recent call last):
  File "/usr/local/share/inkscape/extensions/lorem_ipsum.py", line 232, in ?
    e.affect()
  File "/usr/local/share/inkscape/extensions/inkex.py", line 153, in affect
    self.effect()
  File "/usr/local/share/inkscape/extensions/lorem_ipsum.py", line 224, in effect
    g=inkex.etree.SubElement(svg,inkex.addNS('g','svg'),gattribs)
  File "etree.pyx", line 1854, in etree.SubElement
  File "apihelpers.pxi", line 145, in etree._initNodeAttributes
  File "apihelpers.pxi", line 723, in etree._getNsTag
ValueError: Invalid tag name

Revision history for this message
Tom Davidson (tjd-mit) wrote :

For the recent regression of Lorem Ipsum (and other effects) not working in SVN mentioned by Bulia, please see bug 179770. Resetting this report to 'Incomplete'/'Unknown', since we can't verify that the bug exists until the effect is working again.

Changed in inkscape:
importance: Medium → Unknown
status: Confirmed → Incomplete
Revision history for this message
Tom Davidson (tjd-mit) wrote :

All lorem ipsum does is generate random text. The bug is therefore that text objects can't be converted to patterns with 'object->pattern->object to pattern'. I'll rename the bug to reflect this.
Steps to reproduce: (SVN rev 16895, linux x86)

-open a new document
-create a text object
-object->pattern->object to pattern

Result:
 The text object disappears, and the errors noted above are generated. The pattern can still be assigned to objects, but they remain blank.

Expected result:
 The text object remains visible, and can be used to pattern other objects.

Workaround:
 Convert the text to a path (with 'Path->Object to path') before converting it to a pattern.

Revision history for this message
Tom Davidson (tjd-mit) wrote :

Low priority since simple workaround is available.

Changed in inkscape:
importance: Unknown → Low
status: Incomplete → Triaged
Revision history for this message
Tom Davidson (tjd-mit) wrote :

Removing assignment to acspike, since this is not an extensions bug

Changed in inkscape:
assignee: acspike → nobody
Revision history for this message
su_v (suv-lp) wrote :

Tests based on the steps as detailed in comment #4 (using a regular text object):

> Steps to reproduce: (SVN rev 16895, linux x86)
>
> -open a new document
> -create a text object
> -object->pattern->object to pattern

- with a regular text object:
Not reproduced with Inkscape 0.46, 0.47, 0.48.x and current trunk (r12168)

- with a flowed text object:
Reproduced with 0.46 (Note: applying the just created pattern to a new object however works as expected and shows the text as pattern fill)
Not reproduced with 0.47, 0.48.x and current trunk (r12168)

- with text as created by the extension 'Text > Lorem ipsum' (default settings)
Reproduced with 0.46 (Note: applying the just created pattern to a new object fails, too, and doesn't show the pattern fill either)
Not reproduced with 0.47, 0.48.x and current trunk (r12158)

Based on the current bug summary, closing as 'Fix Released'. Feel free to reopen the report if you think it was closed in error, and can still be triggered with current stable (0.48.4) or trunk.

tags: added: text
Changed in inkscape:
status: Triaged → 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.