v0.47: When copying object(s), inkscape received additional data

Bug #487653 reported by Masato HASHIMOTO
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

When copying object (text, rectangle), the following additional data are displayed (Copy works properly.).

If uniconvertor is not installed:
-----------------------------------
Traceback (most recent call last):
  File "/usr/share/inkscape/extensions/plt_output.py", line 27, in <module>
    cmd = get_command()
  File "/usr/share/inkscape/extensions/uniconv_output.py", line 118, in get_command
    sys.stderr.write(_('You need to install the UniConvertor software.\n'+\
NameError: global name '_' is not defined
-----------------------------------
No matching node for expression: /svg:svg/@sodipodi:docname
Traceback (most recent call last):
  File "/usr/share/inkscape/extensions/gimp_xcf.py", line 173, in <module>
    e.affect()
  File "/usr/share/inkscape/extensions/inkex.py", line 207, in affect
    self.effect()
  File "/usr/share/inkscape/extensions/gimp_xcf.py", line 37, in effect
    docname = self.xpathSingle('/svg:svg/@sodipodi:docname')[:-4]
TypeError: 'NoneType' object is unsubscriptable
-----------------------------------

If uniconvertor is inistalled:
-----------------------------------
/usr/lib/python2.6/site-packages/uniconvertor/app/utils/locale_utils.py:9: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
  from popen2 import popen2
I can't find font Sans. I'll use Slim instead
I can't find font Slim. I'll use Slim instead
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 980, in Load
    xml_reader.parse(input_source)
  File "/usr/lib/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.6/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 216, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 312, in start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "/usr/lib/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 338, in startElement
    getattr(self, method)(attrs)
  File "/usr/lib/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 905, in begin_text
    self.parse_style(style)
  File "/usr/lib/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 384, in parse_style
    self.try_add_style(key, val)
  File "/usr/lib/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 422, in try_add_style
    self.style.font = GetFont(str(val))
  File "/usr/lib/python2.6/site-packages/uniconvertor/app/Graphics/font.py", line 425, in GetFont
    return GetFont(config.preferences.fallback_font)
  File "/usr/lib/python2.6/site-packages/uniconvertor/app/Graphics/font.py", line 426, in GetFont
    raise ValueError, 'Cannot find font %s.' % fontname
ValueError: Cannot find font Slim.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.6/site-packages/uniconvertor/__init__.py", line 82, in uniconv
    doc = load.load_drawing(input_file)
  File "/usr/lib/python2.6/site-packages/uniconvertor/app/io/load.py", line 364, in load_drawing
    return load_drawing_from_file(file, filename)
  File "/usr/lib/python2.6/site-packages/uniconvertor/app/io/load.py", line 337, in load_drawing_from_file
    doc = loader.Load()
  File "/usr/lib/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 980, in Load
    xml_reader.parse(input_source)
  File "/usr/lib/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.6/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 216, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 312, in start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "/usr/lib/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 338, in startElement
    getattr(self, method)(attrs)
  File "/usr/lib/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 905, in begin_text
    self.parse_style(style)
  File "/usr/lib/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 384, in parse_style
    self.try_add_style(key, val)
  File "/usr/lib/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 422, in try_add_style
    self.style.font = GetFont(str(val))
  File "/usr/lib/python2.6/site-packages/uniconvertor/app/Graphics/font.py", line 425, in GetFont
    return GetFont(config.preferences.fallback_font)
  File "/usr/lib/python2.6/site-packages/uniconvertor/app/Graphics/font.py", line 426, in GetFont
    raise ValueError, 'Cannot find font %s.' % fontname
ValueError: Cannot find font Slim.
-----------------------------------
No matching node for expression: /svg:svg/@sodipodi:docname
Traceback (most recent call last):
  File "/usr/share/inkscape/extensions/gimp_xcf.py", line 173, in <module>
    e.affect()
  File "/usr/share/inkscape/extensions/inkex.py", line 207, in affect
    self.effect()
  File "/usr/share/inkscape/extensions/gimp_xcf.py", line 37, in effect
    docname = self.xpathSingle('/svg:svg/@sodipodi:docname')[:-4]
TypeError: 'NoneType' object is unsubscriptable
-----------------------------------

And if uniconvertor is installed, Inkscape freezes after a period of time (please see attached gdb log)

Version:
Inkscape version: 0.47 r22583 (build from tarball on SF)
Python 2.6.4
uniconvertor 1.1.4

Build and platform:
Build 2009-11-24 on Arch Linux (x86_64)

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

When this happens, do you have a java-based download manager running in the background that monitors the clipboard (e.g. FreeRapid or jDownloader) or a clipboard manager?

Could be a duplicate of bug #418242 “Incorrect call to output plugins (with persistent error message) on copy”:
<https://bugs.launchpad.net/inkscape/+bug/418242>

tags: added: clipboard
Revision history for this message
Masato HASHIMOTO (hashimo) wrote :

Thanks!! I confirmed that this issue occurs with xfce4-clipman-plugin 1.1.3 (clipboard manager).
As for xfce4-clipman-plugin 1.1.1, there is no problem.
I don't use java-based applications.
I think so, this is duplicate of it.

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

Thank you for reporting back and confirming that the issue (unfortunately) happens with yet another third-party clipboard tool.

The ChangeLog for 1.1.3 says the only change since 1.1.2 was a fix for the issue with firefox reported as #5738 <bugzilla.xfce.org/show_bug.cgi?id=5738>. Maybe this could serve as a hint because somehow Inkscape must receive a change in clipboard content - as a seemingly arbitrary output-extension is triggered by the mime-type of the clipboard content.

Linking as duplicate to bug #418242. Please add a comment and revert the duplicate status if you have new information that these issues are independent and should not be linked as duplicates.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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