Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

fix(window): an event loop that could not run says why, and the process exits 1

Jareerb607491bb3bd
diff --git a/src/crates/concat/src/lib.rs b/src/crates/concat/src/lib.rs
index 49a82267..0fed29b9 100644
--- a/src/crates/concat/src/lib.rs
+++ b/src/crates/concat/src/lib.rs
@@ -1927,6 +1927,14 @@ fn start(project: Option<std::path::PathBuf>, smoke: bool) -> Result<(), slint::
let result = app.run();
drop(reader_sweep);
log::info!("close: event loop exited (ok={})", result.is_ok());
+ // The loop failing is the window never having run at all - on a phone
+ // whose Vulkan driver wgpu will not take, it is the whole launch, and
+ // the person sees the app vanish. Its reason goes in the log before
+ // anything else can end the process, and the exit says it failed.
+ if let Err(error) = &result {
+ log::error!("close: the window could not run: {error}");
+ leave(1);
+ }
leave(0);
}