-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
segfault on mouseDown on macOS #343
Comments
Oh, this sounds bad. Thanks for a great report. I will have a look at it after work today. |
I had a quick look at the code and I think I know what the issue is. If you change your loop to something like this while screen_b.is_open() && !screen_b.is_key_down(Key::Escape) {
screen_b
.update_with_buffer(&buffer, SCREEN_B_WIDTH, SCREEN_B_HEIGHT)
.unwrap();
if screen_a.is_open() {
screen_a.update();
}
} It should not crash anymore. |
That does indeed fix it |
Alright. I will have a look at why it crashes, but |
Steps for reproduction
cargo run
Crash report:
Macbook details:
The text was updated successfully, but these errors were encountered: