Bug 1377652

Summary: Unable to create image from the screenshot in the clipboard
Product: [Fedora] Fedora Reporter: Jaroslav Škarvada <jskarvad>
Component: xfce4-screenshooterAssignee: Mukundan Ragavan <nonamedotc>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: christoph.wickert, jridky, jskarvad, mikedep333, nphilipp, phracek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-28 19:34:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jaroslav Škarvada 2016-09-20 09:55:03 UTC
Description of problem:
I am not sure whether it is bug in gimp or xfce/xfce4-screenshooter, but filing against gimp, because it (at least) behaves strangely. I haven't tried in different DE.

Version-Release number of selected component (if applicable):
gimp-2.8.18-1.fc24.x86_64
xfce4-screenshooter-1.8.2-6.fc24.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Login to xfce
2. Run xfce4-screenshooter
3. Took screenshot to the clipboard
4. Open gimp
5. File-New-Create from clipboard  (CTRL + SHIFT + V)

Actual results:
It takes some time than it writes "There is no image data in the clipboard"

Expected results:
Import of image data without timeout

Additional info:

Comment 1 Nils Philippsen 2016-09-21 09:45:54 UTC
Hmm, works just fine for me:

- in both GNOME and XFCE
- using the menu entry or keyboard shortcut
- with GIMP already running when taking the screenshot and started afterwards
- without delay

Same versions of gimp, xfce4-screenshooter here.

Can you reproduce under a different (preferably newly created) user, or on a different machine?

Comment 2 Jaroslav Škarvada 2016-09-21 10:41:50 UTC
I will try with newly provisioned machine. So far I have tried with one physical machine and one virtual machine. Both had Czech locale (maybe it is not related, I will check).

Comment 3 Jaroslav Škarvada 2016-09-21 16:41:48 UTC
Yes it's locale specific, it works OK with en_US.UTF-8, reproducible with:

$ export LANG=cs_CZ.UTF-8
$ export LC_ALL=cs_CZ.UTF-8
$ startxfce4

Not tested with other DEs.

Comment 4 Jaroslav Škarvada 2016-09-21 16:43:50 UTC
(In reply to Jaroslav Škarvada from comment #3)
> Yes it's locale specific, it works OK with en_US.UTF-8, reproducible with:
> 
> $ export LANG=cs_CZ.UTF-8
> $ export LC_ALL=cs_CZ.UTF-8
> $ startxfce4
> 
> Not tested with other DEs.

Tested on newly provisioned system.

Comment 5 Nils Philippsen 2016-09-27 11:27:20 UTC
Ahh, interesting!

I've tried it out in two constellations:

- xfce4-screenshooter with Czech, GIMP with English locale
- xfce4-screenshooter with English, GIMP with Czech locale

The first way failed, the second worked. I conclude that xfce4-screenshooter fails to properly copy the image to the clipboard (whyever). Changing component to xfce4-screenshooter.

Comment 6 Fedora Admin XMLRPC Client 2017-01-28 15:40:24 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Mukundan Ragavan 2017-01-28 21:00:33 UTC
Is this still an issue?

I am able to do this on F25 without problems.

Comment 8 Jaroslav Škarvada 2017-02-01 14:30:17 UTC
Yes, F25 cs_CZ.UTF-8 locale, Xorg, Xfce and it still doesn't work.

It seems to be xfce4-screenshooter issue, because I can reproduce the problem even with e.g. libreoffice.

$ xfce4-screenshooter

# Store to clipboard

$ oowriter

# CTRL + V

Comment 9 Mukundan Ragavan 2017-02-01 22:24:39 UTC
I cannot reproduce this in 

- libreoffice-writer
- pinta
- gimp


Any chance your clipboard is being used by something else?

Comment 10 Jaroslav Škarvada 2017-02-02 09:27:46 UTC
Hmm, interesting, I am going to retry on cleanly provisioned system.

Comment 11 Jaroslav Škarvada 2017-02-02 10:50:48 UTC
Maybe I got it, it seems to be related to my desktop size, it's 5280 x 1080, which is, well, not low. If I took screenshot of screen selection, let's say 100x100 pixels, it works OK. But in the past it worked OK for the whole screen as well, IIRC F23, so it's probably regression.

Comment 12 Jaroslav Škarvada 2017-02-02 10:53:22 UTC
Machine has 8GB physical RAM and another 8GB in swap, free is currently showing 3GB of free physical RAM and 8GB free swap, so memory cannot be the problem and no error is shown in xfce4-screenshooter.

Comment 13 Mukundan Ragavan 2017-02-02 12:33:31 UTC
(In reply to Jaroslav Škarvada from comment #11)
> Maybe I got it, it seems to be related to my desktop size, it's 5280 x 1080,
> which is, well, not low. If I took screenshot of screen selection, let's say
> 100x100 pixels, it works OK. But in the past it worked OK for the whole
> screen as well, IIRC F23, so it's probably regression.



Aha!!! I can reproduce this. I have an external monitor attached to my system.

1920x1080 + 1280x1024  (old monitor ... ) seems to "not work" either!


But .. what's happening is that xfce4-screenshooter is taking awfully long to actually paste it to any application under test. For the above resolution, it took me close to 2 mins to paste - but it did paste.

So, clearly, it is unusable. I will file this upstream. To me it seems like screenshooter has some issues handling large images.

Comment 14 Jaroslav Škarvada 2017-02-02 12:55:33 UTC
(In reply to Mukundan Ragavan from comment #13)
> (In reply to Jaroslav Škarvada from comment #11)
> > Maybe I got it, it seems to be related to my desktop size, it's 5280 x 1080,
> > which is, well, not low. If I took screenshot of screen selection, let's say
> > 100x100 pixels, it works OK. But in the past it worked OK for the whole
> > screen as well, IIRC F23, so it's probably regression.
> 
> 
> 
> Aha!!! I can reproduce this. I have an external monitor attached to my
> system.
> 
> 1920x1080 + 1280x1024  (old monitor ... ) seems to "not work" either!
> 
> 
> But .. what's happening is that xfce4-screenshooter is taking awfully long
> to actually paste it to any application under test. For the above
> resolution, it took me close to 2 mins to paste - but it did paste.
> 
> So, clearly, it is unusable. I will file this upstream. To me it seems like
> screenshooter has some issues handling large images.

OK, thanks. This is probably different issue than my original issue with the cs_CZ.UTF-8 locale, but it's still unusable. With my resolution I gave up in LibreOffice after cca. 5 minutes, in Gimp there is some timeout or something, because after while it shows dialog saying that paste failed or something similar.

Comment 15 Mukundan Ragavan 2017-02-08 02:52:56 UTC
Bug filed upstream.

https://bugzilla.xfce.org/show_bug.cgi?id=13342

Comment 16 Fedora End Of Life 2017-07-25 23:09:08 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 17 Jaroslav Škarvada 2017-07-26 09:02:43 UTC
Moving to f25, it's still an issue with:

xfce4-screenshooter-1.8.2-6.fc24.x86_64

which I have on f25 (i.e. it probably hasn't been recompiled for f25). I am going to check with:

xfce4-screenshooter-1.8.2-7.fc26

once I upgrade to f26 (soon :)

Comment 18 Mukundan Ragavan 2017-08-16 02:46:46 UTC
Moved to rawhide. I don't think this works yet.

Comment 19 Fedora End Of Life 2018-02-20 15:29:02 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 20 Ben Cotton 2019-05-02 22:05:15 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 21 Ben Cotton 2019-05-28 19:34:10 UTC
Fedora 28 changed to end-of-life (EOL) status on 2019-05-28. Fedora 28 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.