Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 308621 - www-client/chromium: copy image -> clipboard fails
Summary: www-client/chromium: copy image -> clipboard fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-09 10:10 UTC by vekin
Modified: 2010-04-20 07:48 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 vekin 2010-03-09 10:10:06 UTC
Copy an via right click Copy Image in chromium. Edit paste in gimp and it says clipboard contains no image.

Reproducible: Always

Steps to Reproduce:
1.Right click on image in chromium and select Copy Image.
2.Edit Paste into gimp.
3.No image in clipboard and nothing is pasted.

Actual Results:  
Popup saying
There is no image data in the clipboard to paste.

Expected Results:  
Image is pasted into gimp.

These errors are shown when I try to copy an image to clipboard.
I tried `chmod 777 /dev/shm` restarted chromium and still I have the same problem and error.

[3:3:72305288766:ERROR:base/shared_memory_posix.cc(192)] Creating shared memory in /dev/shm/org.chromium.fp7TbG failed: Permission denied
[3:3:72305288874:ERROR:base/shared_memory_posix.cc(194)] This is frequently caused by incorrect permissions on /dev/shm.  Try 'sudo chmod 777 /dev/shm' to fix.

emege --info
Portage 2.1.8.1 (default/linux/amd64/10.0/no-multilib, gcc-4.4.3, glibc-2.11-r1, 2.6.33-gentoo x86_64)
=================================================================
System uname: Linux-2.6.33-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 08 Mar 2010 06:30:01 +0000
app-shells/bash:     4.1_p2
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en ja"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alac alsa amd64 apm bash-completion berkdb bluetooth branding bzip2 cairo canna cdr cjk cli consolekit cracklib crypt cups cxx dbus dga dri dts dv dvd dvdr dvdread eds emboss encode evo fam fbcondecor ffmpeg firefox flac fortran gdbm gif gnutls gpm gstreamer gtk h264 hal iconv imagemagick imap immqt-bc ipv6 joystick jpeg lame laptop ldap libnotify lzo mad mikmod mmx mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nss ogg opengl openmp pam pcre pdf perl png pop ppds pppd pulseaudio python qt3support quicktime readline reflection sasl sdl session smtp spell spl sqlite sse sse2 ssl startup-notification svg sysfs tcpd theora thunar tiff truetype unicode usb v4l v4l2 vorbis wavpack x264 xml xorg xscreensaver xulrunner xv xvid zlib zsh-completion" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ja" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Doktor Notor 2010-03-09 10:39:07 UTC
<snip>
This is frequently
caused by incorrect permissions on /dev/shm.  Try 'sudo chmod 777 /dev/shm' to
fix.
</snip>

Did you read the above message? Suggestion: Stop commenting out stuff in default Gentoo /etc/fstab (such as the /dev/shm line which is *REQUIRED* since glibc-2.2).

INVALID bug.


# grep -C2 shm /etc/fstab 

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for 
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm	/dev/shm	tmpfs		nodev,nosuid,noexec	0 0
Comment 2 Doktor Notor 2010-03-09 10:45:43 UTC
And on another note, the permissions are supposed to be 1777, not 777 (which is also the default)

# stat -c %a /dev/shm
1777
Comment 3 vekin 2010-03-09 10:54:15 UTC
(In reply to comment #2)
> And on another note, the permissions are supposed to be 1777, not 777 (which is
> also the default)
> 
> # stat -c %a /dev/shm
> 1777
> 
Ok I added the line to /etc/fstab and now I get
mount | grep shm
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
stat -c %a /dev/shm   
1777

But I still receive the same errors when trying to copy an image.
Will I need to recompile chromium or glibc?
Comment 4 Doktor Notor 2010-03-09 15:15:33 UTC
(In reply to comment #3)
> But I still receive the same errors when trying to copy an image.
> Will I need to recompile chromium or glibc?

I'd suggest a reboot. :) 

Comment 5 vekin 2010-03-09 15:53:01 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > But I still receive the same errors when trying to copy an image.
> > Will I need to recompile chromium or glibc?
> 
> I'd suggest a reboot. :) 
> 

Sorry I should have mentioned that I had rebooted.
This image of the problem may help clear things up.
Omploaded 'error.png' to http://omploader.org/vM3M3bQ
Comment 6 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-04-20 07:48:51 UTC
Works fine with www-client/chromium-5.0.375.9.