← Back to team overview

ubuntustudio-bugs team mailing list archive

[Bug 418242] Re: Incorrect call to output plugins (with persistent error message) on copy

 

I have done some debugging on this. I inserted

                  printf("output plugin activated for clipboard: %s\n",
(*out)->get_id());

at line 1202 of src/ui/clipboard.cpp.

The routine ClipboardManagerImpl::_onGet is called repeatedly (presumably triggered by an external program creating a clipboard read request), with different possible clipboard formats.
In my case, I was running Matlab and Teamviewer, and the following clipboard requests were tracked over a 10 second period:

output plugin activated for clipboard: org.inkscape.output.svg.inkscape
output plugin activated for clipboard: org.inkscape.output.png.cairo
output plugin activated for clipboard: org.inkscape.output.svg.inkscape
output plugin activated for clipboard: org.inkscape.output.svg.inkscape
output plugin activated for clipboard: org.ekips.output.dxf_outlines
output plugin activated for clipboard: org.inkscape.output.sif
output plugin activated for clipboard: org.inkscape.output.svg.inkscape
output plugin activated for clipboard: org.inkscape.output.wmf
output plugin activated for clipboard: org.inkscape.output.emf
output plugin activated for clipboard: org.inkscape.print.eps.cairo
output plugin activated for clipboard: org.inkscape.print.ps.cairo
output plugin activated for clipboard: org.inkscape.output.png.cairo
output plugin activated for clipboard: org.inkscape.output.svg.inkscape
output plugin activated for clipboard: org.inkscape.output.svg.plain
output plugin activated for clipboard: org.inkscape.output.svgz.inkscape
output plugin activated for clipboard: org.inkscape.output.svgz.plain
output plugin activated for clipboard: org.inkscape.output.LAYERS
output plugin activated for clipboard: org.inkscape.output.ZIP
output plugin activated for clipboard: org.inkscape.output.latex
output plugin activated for clipboard: org.inkscape.output.jfx
output plugin activated for clipboard: org.inkscape.output.pov
output plugin activated for clipboard: org.inkscape.output.pdf.cairorenderer
output plugin activated for clipboard: org.inkscape.output.svg.inkscape
output plugin activated for clipboard: org.ekips.output.dxf_outlines
output plugin activated for clipboard: org.inkscape.output.sif
output plugin activated for clipboard: org.inkscape.output.wmf
output plugin activated for clipboard: org.inkscape.output.emf
output plugin activated for clipboard: org.inkscape.print.eps.cairo
output plugin activated for clipboard: org.inkscape.print.ps.cairo
output plugin activated for clipboard: org.inkscape.output.png.cairo
output plugin activated for clipboard: org.inkscape.output.svg.inkscape
output plugin activated for clipboard: org.inkscape.output.svg.plain
output plugin activated for clipboard: org.inkscape.output.svgz.inkscape
output plugin activated for clipboard: org.inkscape.output.svgz.plain
output plugin activated for clipboard: org.inkscape.output.LAYERS
output plugin activated for clipboard: org.inkscape.output.ZIP
output plugin activated for clipboard: org.inkscape.output.latex
output plugin activated for clipboard: org.inkscape.output.jfx
output plugin activated for clipboard: org.inkscape.output.pov
output plugin activated for clipboard: org.inkscape.output.svg.inkscape
output plugin activated for clipboard: org.inkscape.output.svg.inkscape
output plugin activated for clipboard: org.inkscape.output.pdf.cairorenderer


As can be seen, the repeated requests cause Inkscape to try and export the copied data every few seconds, in multiple formats. 
Some of the formats cause errors, for example 

   org.ekips.output.hpgl
   org.inkscape.output.plt

So one temporary workaround to prevent the error dialogs is to remove
those extensions:

    cd /usr/local/share/inkscape/extensions
    files="
      gimp_xcf.inx
      dxf_output.inx
      hpgl_output.inx
      jessyInk_export.inx
      plt_output.inx
      sk1_output.inx
      svg2fxg.inx
      svg2xaml.inx
      ink2canvas.inx
    "
    for x in $files ; do  sudo mv $x $x.disabled ; done

(you may need to do this in /usr/share/inkscape/extensions, depending on
installation).


However this doesn't fix the underlying problem, and inkscape is still silently exporting the clipoard many times a second in many other formats.

-- 
You received this bug notification because you are a member of Ubuntu
Studio Bugs, which is subscribed to inkscape in Ubuntu.
Matching subscriptions: Ubuntu Studio Bugs
https://bugs.launchpad.net/bugs/418242

Title:
  Incorrect call to output plugins (with persistent error message) on
  copy

Status in Inkscape:
  Triaged
Status in inkscape package in Ubuntu:
  Triaged
Status in inkscape package in Arch Linux:
  New
Status in inkscape package in Debian:
  Confirmed
Status in Gentoo Linux:
  Unknown

Bug description:
  UPDATE: After further investigation it turned out to be a problem related to the copy operation, in combination with a totally unrelated running Java program (FreeRapid).
  Reading some followups and other bug reports, it seems to be caused by the new clipboard management system (introduced as a fix for the bug #170185), as reported in bug #421597. 

  The routine ClipboardManagerImpl::_onGet is called repeatedly by an
  external program, with different possible clipboard formats, causing
  Inkscape to try and export the copied data every few seconds, in
  multiple formats.

  So far these applications are known to randomly trigger an input/output extension (on linux):
  - FreeRapid Downloader
  - jDownloader
  - xfce4-clipman-plugin 1.1.3
  - Netbeans
  - xfce4-settings-helper (Xfce 4.8)
  - Team Viewer (teamviewerd 10.0.36)

  -----

  The original report was this:
  I'm getting this error when I try to edit a text object created previously with a font that's not available in this system.
  It looks like Inkscape has problems to resolve the font substitution and displays the error message in a popup window that keeps appearing again and again, leaving no other remedy than closing inkscape and reopening it.

  The error message is attached.

To manage notifications about this bug go to:
https://bugs.launchpad.net/inkscape/+bug/418242/+subscriptions