enigo raises SIGTRAP error when used in conjunction with Bevy
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
## Bevy version
0.10.1
The release number or commit hash of the version you're using.
## \[Optional\] Relevant system information
M1 Macbook Air, Running Macos Ventura 13.3.1
## What you did
While attempting to make a macro recorder app that uses engo to simulate key presses and bevy as a display, encountered SIGTRAP when trying to simulate keypress.
To Reproduce:
```rust
fn main() {
thread::spawn(|| {
thread::sleep(Duration::from_millis(5000));
let mut engio = Enigo::new();
engio.key_click(Key::Layout('u'));
});
App::new()
.insert_resource(ClearColor(Color::NONE))
.add_plugins(DefaultPlugins.set(WindowPlugin {
primary_window: Some(Window {
transparent: true,
decorations: true,
window_level: WindowLevel::AlwaysOnTop,
resizable: true,
focused: false,
resolution: WindowResolution::new(500.0, 50.0),
#[cfg(target_os = "macos")]
composite_alpha_mode: CompositeAlphaMode::PostMultiplied,
..default()
}),
..default()
})).run();
}
```
## What went wrong
App crashed and printed this error to console
```
Process finished with exit code 133 (interrupted by signal 5: SIGTRAP)
```
Contributor guide
Assessment
This issue has not been assessed yet.