vexide / vexide

Open-source Rust runtime for VEX V5 robots.
https://vexide.dev
MIT License
23 stars 6 forks source link

Graphical panic messages do not appear in DoubleBuffered render mode #92

Open doinkythederp opened 3 months ago

doinkythederp commented 3 months ago

Bug Description

After using Screen::set_render_mode to set the render mode to DoubleBuffered, graphical panic messages will not appear and it will appear as if the program is frozen upon a panic.

Code to reproduce

#![no_std]
#![no_main]

use vexide::prelude::*;

#[vexide::main]
async fn main(mut p: Peripherals) {
    p.screen.set_render_mode(vexide::devices::screen::RenderMode::DoubleBuffered);
    panic!("something failed");
}

Expected vs. actual behavior

The panic message should appear on screen in a red box, but instead nothing appears at all.

Additional information