GNOME Bugzilla – Bug 783106
Crash under webkit_editor_paste_clipboard_targets_cb()
Last modified: 2017-05-30 11:19:42 UTC
Try to copy text from Firefox into Evolution mail composer. It often fails. You see this in the console: (evolution:23846): Gdk-WARNING **: gdkselection-wayland.c:266: error reading selection buffer: Operation was cancelled (evolution:23846): Gdk-WARNING **: gdkselection-wayland.c:266: error reading selection buffer: Operation was cancelled Sometimes after a few seconds it does get inserted though. And so far whenever this happened, copying from Firefox to gedit and then from gedit to Evolution always worked. Evolution has also crashed twice for me with this output: Thread 1 "evolution" received signal SIGSEGV, Segmentation fault. 0x00007fffbdf8fec8 in webkit_editor_paste_clipboard_targets_cb (clipboard=0x555556a7b240, targets=0x5555593b8760, n_targets=11, wk_editor=0x555558151510) at e-webkit-editor.c:5659 5659 if (wk_editor->priv->html_mode && evolution-3.22.6-2.fc25.x86_64 webkitgtk4-2.16.2-1.fc25.x86_64 evolution-data-server-3.22.7-2.fc25.x86_64
Thanks for a bug report. I'm not able to reproduce this fully myself, I saw those Wayland runtime warnings only once, when copying from Firefox, but the next evolution start, neither when using epiphany instead. How do you copy&paste the content from Firefox to Evolution? There are several ways, like using Ctrl+V, Shift+Ins, mouse-middle-click, Edit->Paste option,... Also, what mode the composer window is in, please? Plain text or HTML? Can you reproduce it on some public page, like with part of this bug report page, or with http://www.gnome.org, and specifically which part of the page? I tried with the text in the top blue bar of the GNOME page. By the way, had been the composer window closed before the crash happened, or it had been still alive? I'd guess that it had been freed, and only then an asynchronous callback had been called, thus the callback had been accessing already freed data. But I can be wrong.
Ctrl+C and Ctrl+V. Plain text mode in composer. Yes I can reproduce in Firefox 53 by copying and (not) pasting text from this very page https://bugzilla.gnome.org/show_bug.cgi?id=783106 Don't remember if window was closed; at least has not crashed in the last two days.
Okay. I'm still not able to reproduce it, but from the behaviour you describe I understand that the query for clipboard content can take "indefinitely" long (several seconds), which can be caused by all related parties, like FireFox not giving the data quickly enough, or Wayland postponing the delivery for whatever reason. I'm not able to do anything with that, as far as I know, but I can avoid the crash under webkit_editor_paste_clipboard_targets_cb(), thus I'm going to use this bug report for that crash. Created commit eb5f82a in evo master (3.25.3+) Created commit f5d352f in evo gnome-3-24 (3.24.3+)