Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 358135 - media-gfx/inkscape-0.48.1 gives an error trying to copy/paste the object
Summary: media-gfx/inkscape-0.48.1 gives an error trying to copy/paste the object
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-09 20:42 UTC by Vladimir
Modified: 2012-06-08 12:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir 2011-03-09 20:42:53 UTC
When I create som object in the Inkscape document and then press "Copy", I get the following error message:
    
    "Inkscape has received additional data from the script executed.  The script did not return an error, but this may indicate the results will not be as expected.

No layers found"

If I press "Copy" and then wait for this message to appear, I still can close it and work further. But if I press "Paste" before this message appears, I get two of them (one after I close another) and after that I get:

    "Inkscape has received additional data from the script executed.  The script did not return an error, but this may indicate the results will not be as expected.

This extension requires at least one non empty layer."

And in such case I loose the control over Inkscape. It just does not respond to any mouse clicks. So I have to restart it to continue my work.

Reproducible: Always

Steps to Reproduce:
1. emerge media-gfx/inkscape-0.48.1
2. Start Inkscape and create some object (let's say, a circle).
3. Press "Ctrl+C" and then "Ctrl+V".
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-10 19:52:53 UTC
Please paste your `emerge --info media-gfx/inkscape' output into a comment.
Also, this reminds me of bug #353166. Are you using XFCE? If not, what desktop environment or "clipboard manager" do you use?
Comment 2 Vladimir 2011-03-11 09:39:12 UTC
Hello!
(In reply to comment #1)
> Please paste your `emerge --info media-gfx/inkscape' output into a comment.
> Also, this reminds me of bug #353166. Are you using XFCE? If not, what desktop
> environment or "clipboard manager" do you use?

Here is my 'emerge --info media-gfx/inkscape' output:

WARNING: One or more repositories have missing repo_name entries:

	/usr/local/overlays/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.


Portage 2.2.0_alpha26 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.13-r1, 2.6.37-gentoo-r1 x86_64)
====================================================
                        System Settings
====================================================
System uname: Linux-2.6.37-gentoo-r1-x86_64-Mobile_AMD_Sempron-tm-_Processor_3800+-with-gentoo-2.0.1
Timestamp of tree: Wed, 09 Mar 2011 13:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.2_p7
dev-lang/python:     2.6.6-r2::sage-on-gentoo, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.4.5, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo science sage-on-gentoo x-overlays
Installed sets: 
ACCEPT_KEYWORDS="amd64 x86 ~amd64 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/home/Install/GNU-Linux/distfiles/"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS=" http://gentoo.kiev.ua/ftp/ ftp://gentoo.kiev.ua/"
LANG="uk_UA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru uk"
MAKEOPTS="-j3"
PKGDIR="/home/Install/GNU-Linux/binpkg/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/sage-on-gentoo /usr/local/overlays"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit 7zip X a52 aac aalib acpi alsa amd64 amrnb amrwb apm ass bash-completion bzip2 cairo cgi cli consolekit cracklib crypt ctype curl cxx dbus dga djvu dri dts dvd encode exif expat faac faad fbcon fbcondecor festival ffmpeg fftw flac freetds fuse gd gdbm geoip gif git glut gmp gnuplot gnutls gsl gtk hddtemp iconv idn imlib irc jabber jack jbig jpeg lame laptop latex libcaca libnotify libsamplerate lm_sensors lua lzo mad matroska mmap mmx mmxext mng modplug modules mudflap multilib nas ncurses nforce2 nls nptl nptlonly nvidia ogg openal opencore-amr opengl openmp pam pdf plotutils pmu png policykit pppd profile python qt3support qt4 readline rtc samba sasl sdl session shorten skins slang sndfile sockets speex spell sse sse2 ssl startup-notification svg sysfs syslog systray taglib tcl tcpd theora threads timidity truetype udev unicode usb vorbis wavpack webkit x264 xattr xcb xcomposite xinerama xml xorg xosd xpm xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru uk" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

======================================================
                        Package Settings
======================================================

media-gfx/inkscape-0.48.1 was built with the following:
USE="gs (multilib) nls spell -debug -dia -gnome -inkjar -lcms -wmf"
CFLAGS="-march=k8 -O2 -pipe -fno-strict-aliasing"
CXXFLAGS="-march=k8 -O2 -pipe -fno-strict-aliasing"


And yes, I use Xfce-4.8.

Regards,
  Vladimir
Comment 3 buzz22 2011-03-12 16:43:57 UTC
I've also noticed a similar behavior (and I'm using Xfce 4.8 too -- I tried with and without clipman plugin activated, and this doesn't change anything).
In my case I didn't loose the control over Inskcape because the GUI was still responding to keyboard actions. And after few workspace shifts and clics everywhere it was working again. But it seems to be a side effect to the other problem, because if the warning windows don't show up, I don't have any problem.

And those warnings actually come from the Gimp and JessyInk extensions.
If you don't use them you can remove/deactivate them and you'll get rid of this annoying Copy/Paste behavior.
I've only commented the line that raises the warning in both Python scripts (gimp_xcf.py and jessyInk_export.py) so that I can still use them. Now copy/paste works like a charm for me.

But this NOT a solution to the real problem, because I think the extensions are doing the right stuff. The real problem seems related to the crazy way Inkscape is managing his internal clipboard. Unfortunately I don't have time to investigate more. I was trying to figure out why Inkscape uses Gimp or jessyInk extension during a copy/paste operation, so I just took a look at the src/ui/clipboard.cpp file and saw that they are doing different things using the available extensions -- but I didn't go further because I don't have time (and skill) to do it.
Maybe this is a good place to start or perhaps I'm wrong, I don't know. But I hope this can help.
Comment 4 Vladimir 2011-03-17 10:24:22 UTC
(In reply to comment #3)
> If you don't use them you can remove/deactivate them and you'll get rid of this
> annoying Copy/Paste behavior.
  That would be helpful, but how to deactivate the extensions?
Comment 5 Lars 2011-05-08 12:30:38 UTC
same here.
"Inkscape has received additional data from the script executed.  The script did not return an error, but this may indicate the results will not be as expected.

You need to install the UniConvertor software.
For GNU/Linux: install the package python-uniconvertor.
For Windows: download it from
http://sk1project.org/modules.php?name=Products&product=uniconvertor
and install into your Inkscape's Python location"

if they mean media-gfx/uniconvertor - it is yellow masked.

Also immediately afterwards, I get this error:
"No matching node for expression: /svg:svg/@sodipodi:docname
Traceback (most recent call last):
  File "gimp_xcf.py", line 185, in <module>
    e.affect()
  File "/usr/share/inkscape/extensions/inkex.py", line 215, in affect
    self.effect()
  File "gimp_xcf.py", line 43, in effect
    docname = self.xpathSingle('/svg:svg/@sodipodi:docname')[:-4]
TypeError: 'NoneType' object is not subscriptable"

and new popups come up every few seconds - with skill and a lot patience, I was able to safe my work...

inkscape used to work pretty stable for me - what happend? is this a python problem? (i updated python to 2.7 not so long ago, but i ran python-updater). does inkscape depend on uniconvertor? than why does it not come in as dependency? also, m revdep-rebuild claims everything is consistent.

media-gfx/inkscape-0.48.0 was built with the following:
USE="gs lcms (multilib) nls spell -debug -dia -gnome -inkjar -wmf"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -msse -msse2 -msse3 -mmmx -fno-strict-aliasing"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -msse -msse2 -msse3 -mmmx -fno-strict-aliasing"
Comment 6 Tim Harder gentoo-dev 2011-05-08 22:32:00 UTC
(In reply to comment #0)
> Steps to Reproduce:
> 1. emerge media-gfx/inkscape-0.48.1
> 2. Start Inkscape and create some object (let's say, a circle).
> 3. Press "Ctrl+C" and then "Ctrl+V".

I can't reproduce this using the above steps, but I'm not running any kind of desktop environment or clipboard manager.
Comment 7 Tim Harder gentoo-dev 2011-05-08 22:35:21 UTC
(In reply to comment #5)
> inkscape used to work pretty stable for me - what happend? is this a python
> problem? (i updated python to 2.7 not so long ago, but i ran python-updater).
> does inkscape depend on uniconvertor? than why does it not come in as
> dependency? also, m revdep-rebuild claims everything is consistent.

Note that the ebuilds for >=media-gfx/inkscape-0.48.1 depend on uniconvertor so it should be pulled in.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2011-11-16 16:47:36 UTC
http://bugzilla.xfce.org/show_bug.cgi?id=6521#c24

<upstream quote>
Currently the xfce4-settings-helper provides an X11 clipboard manager that
works properly for the default clipboard based on pure X11 code and not Gtk.

The manager in clipman stays as is currently, and I'm marking this bug as
LATER.
</upstream quote>


I'm curious, does installing and running xfce4-clipman-plugin help?
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2011-11-16 16:48:50 UTC
Propably a duplicate of 353166 (more or less)
Comment 10 Sergey S. Starikoff 2011-11-17 05:23:34 UTC
(In reply to comment #1)
> Are you using XFCE? If not, what desktop
> environment or "clipboard manager" do you use?
Excuse me, but this question looks incorrect.
For specific (seems to be not-reproducable in GNOME DE) GNOME-apps issues more right is to ask:
"Do you use GNOME DE, or some (what?) other one?"
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2011-11-18 16:22:44 UTC
Closing as NEEDINFO per Comment #8 question "Does installing and _running_ xfce4-clipman-plugin help?"
Comment 12 Joaquim Uchoa 2012-06-08 12:23:28 UTC
Hi, 

Please reopen the bug.
I'm with the same error, with versions 0.48.2 or 0.48.3.1. 
I'm running xfce.

Installing and _running_ xfce4-clipman-plugin doesn't help!

One error showed is "No layers found". Other error is 

UniConvertor failed:

Traceback (most recent call last):
  File "/usr/bin/uniconvertor-2.7", line 13, in <module>
    uniconv_run()
  File "/usr/lib64/python2.7/site-packages/uniconvertor/__init__.py", line 100, in uniconv_run
    saver(doc, output_file)
  File "/usr/lib64/python2.7/site-packages/sk1libs/filters/__init__.py", line 212, in __call__
    module.save(document, file, filename, options)
  File "/usr/lib64/python2.7/site-packages/sk1libs/filters/export/wmfsaver.py", line 461, in save
    saver.SaveDocument(document)
  File "/usr/lib64/python2.7/site-packages/sk1libs/filters/export/wmfsaver.py", line 448, in SaveDocument
    self.SaveLayers(doc.Layers())
  File "/usr/lib64/python2.7/site-packages/sk1libs/filters/export/wmfsaver.py", line 366, in SaveLayers
    self.SaveObjects(layer.GetObjects())
  File "/usr/lib64/python2.7/site-packages/sk1libs/filters/export/wmfsaver.py", line 353, in SaveObjects
    self.SaveObjects(object.GetObjects())
  File "/usr/lib64/python2.7/site-packages/sk1libs/filters/export/wmfsaver.py", line 353, in SaveObjects
    self.SaveObjects(object.GetObjects())
  File "/usr/lib64/python2.7/site-packages/sk1libs/filters/export/wmfsaver.py", line 361, in SaveObjects
    self.PolyBezier(object.Paths(), object.Properties())
  File "/usr/lib64/python2.7/site-packages/sk1libs/filters/export/wmfsaver.py", line 264, in PolyBezier
    self.FillStyle(Properties)
  File "/usr/lib64/python2.7/site-packages/sk1libs/filters/export/wmfsaver.py", line 234, in FillStyle
    self.CreateSelectBrush(Props.fill_pattern.gradient.Sample(3)[1])
  File "/usr/lib64/python2.7/site-packages/uniconvertor/app/Graphics/gradient.py", line 91, in Sample
    pos2, color2 = colors[cur]
IndexError: list index out of range

Other time is "This extension requires at least one non empty layer."

What other informations did you need?