diff --git a/Cargo.lock b/Cargo.lock index ef697517e0..9cbd1837a4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2350,6 +2350,7 @@ dependencies = [ name = "veloren-voxygen" version = "0.2.0" dependencies = [ + "backtrace 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)", "config 0.9.2 (registry+https://github.com/rust-lang/crates.io-index)", "conrod_core 0.63.0 (git+https://gitlab.com/veloren/conrod.git)", "conrod_winit 0.63.0 (git+https://gitlab.com/veloren/conrod.git)", diff --git a/voxygen/Cargo.toml b/voxygen/Cargo.toml index b622a16a06..9334546e4f 100644 --- a/voxygen/Cargo.toml +++ b/voxygen/Cargo.toml @@ -48,3 +48,4 @@ msgbox = "0.1" directories = "1.0" portpicker = "0.1" num = "0.2" +backtrace = "0.3" \ No newline at end of file diff --git a/voxygen/src/main.rs b/voxygen/src/main.rs index f57958ba4e..24561d228a 100644 --- a/voxygen/src/main.rs +++ b/voxygen/src/main.rs @@ -138,7 +138,11 @@ The information below is intended for developers and testers. Panic Payload: {:?} PanicInfo: {}", settings_clone.log.file, reason, panic_info); - log::error!("VOXYGEN HAS PANICKED\n\n{}", msg); + log::error!( + "VOXYGEN HAS PANICKED\n\n{}\n\nBacktrace:\n{:?}", + msg, + backtrace::Backtrace::new() + ); msgbox::create("Voxygen has panicked", &msg, msgbox::IconType::ERROR);