1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 14:50:03 -04:00

Fix gif crash and add debug logging

This commit is contained in:
lucasmerlin
2026-04-20 19:17:28 +02:00
parent e55a691305
commit 92b127c688
4 changed files with 87 additions and 24 deletions

View File

@@ -70,10 +70,15 @@ impl Inspector {
.map(PathBuf::from)
.unwrap_or_else(|_| PathBuf::from("kittest_inspector"));
// Important: do NOT inherit stderr. The cargo-test / nextest stderr capture pipe
// can close between tests while the inspector is still alive; a later `eprintln!`
// in the inspector would then panic ("failed printing to stderr: Broken pipe") and
// take the window down. The inspector keeps its own log file at
// `{temp}/kittest_inspector.log` for diagnostics.
let mut child = Command::new(&bin)
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(Stdio::inherit())
.stderr(Stdio::null())
.spawn()
.map_err(InspectorError::Launch)?;