<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Copy and paste not working properly + crash"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=85475#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Copy and paste not working properly + crash"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=85475">bug 85475</a>
              from <span class="vcard"><a class="email" href="mailto:arzeth0@gmail.com" title="Artem Chudinov <arzeth0@gmail.com>"> <span class="fn">Artem Chudinov</span></a>
</span></b>
        <pre>In Weston 1.9.0 the steps to reproduce are:
(Optional step) 0. Run in another tty:
sleep 60 && killall -9 Xwayland
(-9 is necessary). It helps to get rid of the lockup.
1. Run `weston` in any X11 environment or run `weston-launch` in a tty.
2. Open any X11 app (firefox, for example).
(Optional step) 3. Close it.
4. Open gnome-terminal (also you can this step before step 2).
5. Select something.
6. Copy the selection using Ctrl+Shift+C or using a context menu.
(Optional step 7). Deselect the selection.
(Optional step 8). Click in the terminal with the right mouse button, select
"Profile" -> "Profile Preferences". Close the popup window, nothing bad should
happen.
9. Either repeat step 6 or just close gnome-terminal.
10. Now keyboard and mouse don't work. Switching to another tty doesn't work.
Process `weston` (or `weston-launch`) slowly increases its CPU usage to 100%
(only 1 thread).

After the recent commit
<a href="http://cgit.freedesktop.org/wayland/weston/commit/?id=a1f3f3c9f209be52d19793d36bbda68ca24a714e">http://cgit.freedesktop.org/wayland/weston/commit/?id=a1f3f3c9f209be52d19793d36bbda68ca24a714e</a>
the steps to reproduce now are:
1-8 steps are the same.
9. Now you can safely copy & paste a text, and you can safely close
gnome-terminal.
10. Run an X11 app. The same lockup happens immediately.

My weston's log's last messages are the same as for Jonas Heinrich.

The infinite loop is `weston_wm_handle_event`'s `while`:
<a href="http://cgit.freedesktop.org/wayland/weston/tree/xwayland/window-manager.c#n1913">http://cgit.freedesktop.org/wayland/weston/tree/xwayland/window-manager.c#n1913</a>
The message `xfixes selection notify event: owner 0` is output by
`weston_wm_handle_selection_event` which is called in the loop.

By the way, there is no such issue in sway (i3-compatible window manager for
Wayland, it uses wlc).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>