# Flappy Dragon Crashes on mouse over window on Linux with XWayland

**URL:** <https://forum.devtalk.com/t/flappy-dragon-crashes-on-mouse-over-window-on-linux-with-xwayland/76900>\
**Category:** PragProg Customers\
**Tags:** book-hands-on-rust\
**Created:** [6 October 2022 07:07 UTC](https://forum.devtalk.com/t/flappy-dragon-crashes-on-mouse-over-window-on-linux-with-xwayland/76900 "2022-10-06T07:07:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mesh2325](https://forum.devtalk.com/user_avatar/forum.devtalk.com/mesh2325/32/4518_2.png) [@mesh2325](https://forum.devtalk.com/u/mesh2325)\
**Post date:** [6 October 2022 07:07 UTC](https://forum.devtalk.com/t/flappy-dragon-crashes-on-mouse-over-window-on-linux-with-xwayland/76900/1 "2022-10-06T07:07:00Z")

</div>

@herbert

Flappy Dragon Example:

> <https://github.com/thebracket/HandsOnRust/tree/main/FirstGameFlappyAscii/flappy_dragon>
>
> //github.com/thebracket/HandsOnRust/tree/main/FirstGameFlappyAscii/flappy\_dragon

Sync this code, and then copy the flappy\_dragon director into another outside of the HandsOnRust tree (i.e. as if you were just following the example in the book).

On Linux when you run (cargo run) and mouse over the game window, the app window closes (crashes?) with the following error:

> Error sending request: Resource temporarily unavailable

This only occurs when running under XWayland. If you switch the X11 every thing runs fine.

Note, if you run directly from the source tree, everything runs ok. There seems to be some setting or config (not covered in the book) in the parent directory / cargo.toml file causing different behavior.

System info:

> PRETTY\_NAME=“Ubuntu 22.04.1 LTS”  
> NAME=“Ubuntu”  
> VERSION\_ID=“22.04”  
> VERSION=“22.04.1 LTS (Jammy Jellyfish)”  
> VERSION\_CODENAME=jammy  
> ID=ubuntu  
> ID\_LIKE=debian  
> HOME\_URL=“[https://www.ubuntu.com/](https://www.ubuntu.com/)”  
> SUPPORT\_URL=“[https://help.ubuntu.com/](https://help.ubuntu.com/)”  
> BUG\_REPORT\_URL=“[Bugs : Ubuntu](https://bugs.launchpad.net/ubuntu/)”  
> PRIVACY\_POLICY\_URL=“[https://www.ubuntu.com/legal/terms-and-policies/privacy-policy](https://www.ubuntu.com/legal/terms-and-policies/privacy-policy)”  
> UBUNTU\_CODENAME=jammy

rust info:

> rustup 1.25.1 (bb60b1e89 2022-07-12)  
> info: This is the version for the rustup toolchain manager, not the rustc compiler.  
> info: The currently active `rustc` version is `rustc 1.64.0 (a55dd71d5 2022-09-19)`
