Open ensconced opened 9 months ago
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 update
or update_with_bufffer
needs to be called on all active windows. That being said it shouldn't crash if an update isn't called.
Steps for reproduction
cargo run
Crash report:
Macbook details: