Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

merge(268): A6 Linux-Depends libvulkan1/libgomp1, Bibliotheks-Hinweis, cargo test in CI (reviewt, nachgeprueft; Konflikt mit A1 in start_failure_message aufgeloest: Bibliothek vor GPU)

purple4c9f036f70bb
diff --cc src-tauri/src/commands/engine.rs
index bfd1d047,0f6eb286..3588a81a
--- a/src-tauri/src/commands/engine.rs
+++ b/src-tauri/src/commands/engine.rs
@@@ -806,24 -781,15 +879,33 @@@ pub(crate) fn start_failure_message(fai
format!(
"Port {port} answers health checks, but the engine this app just started exited immediately. Another llama-server (likely left over from a previous session or crash) is occupying the port. Quit that process or reboot, then try again."
)
- } else if failure.died && stderr_blames_the_gpu(&failure.stderr) && !stderr_blames_the_port(&failure.stderr) {
++ } else if failure.died
++ && stderr_names_a_missing_system_library(&failure.stderr).is_none()
++ && stderr_blames_the_gpu(&failure.stderr)
++ && !stderr_blames_the_port(&failure.stderr)
++ {
++ // A missing system library is asked before the card: the loader line
++ // "error while loading shared libraries: libvulkan.so.1" carries the
++ // word vulkan, and GPU Layers 0 does not install a library.
+ // The graphics card is asked BEFORE the port, because the port branch
+ // used to swallow a CUDA out-of-memory whose allocation happened to
+ // contain 10048, and the GPU-Layers way out is the one setting in this
+ // app that gets such a user chatting at all. The port keeps the case
+ // where the log carries a real bind sentence, because "cuda" appears in
+ // the routine backend-init lines of every start on an NVIDIA box and
+ // "set GPU Layers to 0" does not free a busy port.
+ format!("The built-in engine started and exited again before it could serve on port {port}. It was tried twice. This looks like a graphics-card problem. Open Settings, Built-in Engine and set GPU Layers to 0 to run on the CPU, then try again.")
+ } else if failure.died && stderr_blames_the_port(&failure.stderr) {
+ format!(
+ "The built-in engine could not open port {port}. Another program holds it, or the port sits in a range this system has reserved. The app already tried the next free ports and got the same answer. Close that program or reboot, then try again."
+ )
} else if failure.died {
- let hint = if stderr_blames_the_model(&failure.stderr) {
- " The engine refused the model file. Open Models, Discover and install a different quant."
+ let hint = if let Some(lib) = stderr_names_a_missing_system_library(&failure.stderr) {
+ missing_library_hint(&lib, cfg!(target_os = "linux"))
- } else if stderr_blames_the_gpu(&failure.stderr) {
- " This looks like a graphics-card problem. Open Settings, Built-in Engine and set GPU Layers to 0 to run on the CPU, then try again.".to_string()
+ } else if stderr_blames_the_model(&failure.stderr) {
+ " The engine refused the model file. Open Models, Discover and install a different quant.".to_string()
} else {
- " Reinstall Locally Uncensored if this keeps happening, or pick a different backend in Settings, AI Backends."
+ " Reinstall Locally Uncensored if this keeps happening, or pick a different backend in Settings, AI Backends.".to_string()
};
format!("The built-in engine started and exited again before it could serve on port {port}. It was tried twice.{hint}")
} else {