#bevy-plugin #error-logging #bevy #panic #popup #panic-handler #panic-message

bevy-panic-handler

A Bevy plugin that creates a popup message and logs to error on panic

11 stable releases (4 major)

4.0.1 Feb 21, 2025
3.0.0 Jul 17, 2024
2.2.0 Feb 20, 2024
2.1.0 Dec 21, 2023
0.1.0 Sep 25, 2023

#344 in Game dev

Download history 2/week @ 2024-11-20 5/week @ 2024-11-27 4/week @ 2024-12-04 24/week @ 2024-12-11 8/week @ 2024-12-18 1/week @ 2025-01-29 8/week @ 2025-02-05 12/week @ 2025-02-12 241/week @ 2025-02-19 53/week @ 2025-02-26

314 downloads per month

MIT/Apache

59KB
107 lines

Bevy Panic Handler

Crates.io

A Plugin for bevy that creates a popup and logs to error on panic.

Usage

use bevy::prelude::*;

fn main() {
    App::new()
        .add_plugins(bevy::log::LogPlugin)
        .add_plugins(bevy_panic_handler::PanicHandler::new().build())
        // Normal bevy code...
}

Check examples for more usages.

Example

popup image

Version Compatibility

Bevy bevy-panic-handler
0.15.0 4.0.0
0.14.0 3.0.0

lib.rs:

A wrapper for panics using Bevy's plugin system.

On supported platforms (windows, macos, linux) will produce a popup using the msgbox crate in addition to writing via log::error!, or if bevy::log::LogPlugin is not enabled, stderr.

Dependencies

~23–36MB
~610K SLoC