After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 774975 - Copying text from Evolution emails in Wayland works erratically
Copying text from Evolution emails in Wayland works erratically
Status: RESOLVED OBSOLETE
Product: evolution
Classification: Applications
Component: Mailer
3.22.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on: 775631
Blocks: wayland
 
 
Reported: 2016-11-23 23:43 UTC by Jean-François Fortin Tam
Modified: 2021-05-19 12:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jean-François Fortin Tam 2016-11-23 23:43:29 UTC
I really don't know how to explain or describe this because the behavior I'm seeing is just so weird and unpredictable... my usecase is copying text from received mails (in Evolution) to Gedit, and sometimes it works, sometimes not.

With ctrl+C and ctrl+V, sometimes it will paste the contents into gedit (or polari) only after I switch to a different GNOME Shell workspace (with alt-tab or ctrl+alt+up/down) and come back to gedit afterwards, where the text will suddenly have appeared. I tried screencasting this but the behavior seems to change each time and depending on the complexity of the emails...
Comment 1 Milan Crha 2016-12-06 12:46:32 UTC
Thanks for a bug report.

Tomas, do I remember correctly that there had been anything with respect of copy under Wayland in webkitgtk4?
Comment 2 Tomas Popela 2016-12-06 13:37:36 UTC
There is this bug with workspaces - https://bugzilla.gnome.org/show_bug.cgi?id=769835 and the clipboard could be broken in some cases in composer on Wayland - to resolve that this needs to be fixed - https://bugzilla.gnome.org/show_bug.cgi?id=775631
Comment 3 krinkodot22 2018-03-12 02:12:43 UTC
For the record, this bug is still present (Evolution 3.26.5, Gnome 3.26.2). In Wayland, sometimes any attempts to copy any sort of content from Evolution has no effect. Things like email text, email addresses, and images don't get sent to the clipboard when copied, and even drag-and-drop operations on text/addresses/images don't work. This doesn't get fixed until Evolution is restarted.

In fact, I tried dragging an email address to a Gedit window just now, and got this crash: https://retrace.fedoraproject.org/faf/reports/1970982/

However, there are other applications in Gnome for which text sometimes doesn't get copied correctly in Wayland (like ABRT/Problem Reporting, as I just discovered!), so this isn't an Evolution-specific issue.
Comment 4 Milan Crha 2018-03-13 13:01:30 UTC
I tried to reproduce this, but no luck, with both up-to-date Fedora 27 and Rawhide. I guess the clipboard breaks after certain operation(s), maybe I didn't press Ctrl+C enough times. I tried with both HTML and plain text messages, just selecting part of the message below the message list, pressing Ctrl+C, then I switched to gedit and pressed Ctrl+V.

Tomas mentions in bug #775631 that the Wayland used to send two "owner-changed" signals, while X11 sent only one. I wonder what it might do when these are received in an opposite order. But whether it's even possible I do not know.

(In reply to krinkodot22 from comment #3)
> In fact, I tried dragging an email address to a Gedit window just now, and
> got this crash: https://retrace.fedoraproject.org/faf/reports/1970982/

I did try this too, but it worked fine here. The gedit didn't crash, it showed that it cannot work with a mailto: URI. I dragged a To address from the message preview. I believe this should be treated separately, while the FAF report shows that the crash happened in the WebKitGTK+ code.
Comment 5 André Klapper 2021-05-19 12:28:01 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. 
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org (resources are unfortunately quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/Community/GettingInTouch/BugReportingGuidelines
and create a new bug report ticket at
  https://gitlab.gnome.org/GNOME/evolution/-/issues/

Thank you for your understanding and your help.