fix(core): harden OpenXR/Vulkan lifecycle, DVR composited mode, and telemetry CRC validation

- Accept 'composited' and 'osd' in DvrMode::from_str, set filesink location via GObject property, and avoid overwriting files within the same second
- Validate MAVLink v1/v2 CRC-16 and CRSF CRC-8 DVB-S2 in TelemetryReceiver, join UDP worker thread on Drop, and preserve UTF-8 char boundaries in StackStr
- Ensure OpenXR swapchain image release and session.end() on error paths, reuse pre-allocated raw frame buffer in render loops, and remove forced monado.service stop
- Make egui SSH/RNDIS helper scripts non-blocking and flush log file buffer only on Warn/Error
This commit is contained in:
bleackstorm committed 2026-11-15 13:53:13 +01:00
1 parent b8f2f00f09
commit 26279836d9
7 files changed
+568 -473

No files matched your search

+67 -51
View File
@@ -149,39 +149,41 @@ impl SteamFrameGuiApp {
fn run_usb_rndis_setup_script(&self) {
log::info!("[Action Utilisateur] Exécution du script de configuration USB RNDIS (scripts/setup_usb_rndis.sh)...");
match Command::new("bash")
.arg("scripts/setup_usb_rndis.sh")
.output()
{
Ok(output) => {
let stdout = String::from_utf8_lossy(&output.stdout);
let stderr = String::from_utf8_lossy(&output.stderr);
if output.status.success() {
log::info!(
"[USB RNDIS] Interface configurée avec succès : {}",
stdout.trim()
);
} else {
std::thread::spawn(move || {
match Command::new("bash")
.arg("scripts/setup_usb_rndis.sh")
.output()
{
Ok(output) => {
let stdout = String::from_utf8_lossy(&output.stdout);
let stderr = String::from_utf8_lossy(&output.stderr);
if output.status.success() {
log::info!(
"[USB RNDIS] Interface configurée avec succès : {}",
stdout.trim()
);
} else {
log::error!(
"[USB RNDIS] Échec du script (code {:?}) : {}",
output.status.code(),
stderr.trim()
);
}
}
Err(e) => {
log::error!(
"[USB RNDIS] Échec du script (code {:?}) : {}",
output.status.code(),
stderr.trim()
"[USB RNDIS] Impossible de lancer scripts/setup_usb_rndis.sh : {}",
e
);
}
}
Err(e) => {
log::error!(
"[USB RNDIS] Impossible de lancer scripts/setup_usb_rndis.sh : {}",
e
);
}
}
});
}
/// Configure à distance la carte Radxa Zero 3W (OpenIPC `runcam_wifilink_sdcard.img`) via SSH sur le lien USB OTG
fn configure_radxa_vrx_over_usb(&self) {
let ch = self.cfg.wifi_channel;
let ip = &self.cfg.radxa_vrx_ip;
let ip = self.cfg.radxa_vrx_ip.clone();
let port = self.cfg.video_udp_port;
log::info!(
"[Radxa Zero 3W] Envoi de la configuration OpenIPC (Canal 5.8GHz={} / Redirection RTP -> 192.168.1.10:{}) vers root@{}...",
@@ -196,35 +198,38 @@ impl SteamFrameGuiApp {
echo 'Radxa Zero 3W 8812EU configurée sur le canal {ch}'"
);
match Command::new("ssh")
.args([
"-o",
"ConnectTimeout=2",
"-o",
"StrictHostKeyChecking=no",
&format!("root@{}", ip),
&remote_cmd,
])
.output()
{
Ok(output) => {
if output.status.success() {
log::info!(
"[Radxa Zero 3W] Succès : {}",
String::from_utf8_lossy(&output.stdout).trim()
);
} else {
log::error!(
"[Radxa Zero 3W] Échec SSH vers root@{} : {}",
ip,
String::from_utf8_lossy(&output.stderr).trim()
);
std::thread::spawn(move || {
match Command::new("ssh")
.args([
"-o",
"ConnectTimeout=2",
"-o",
"StrictHostKeyChecking=no",
"--",
&format!("root@{}", ip),
&remote_cmd,
])
.output()
{
Ok(output) => {
if output.status.success() {
log::info!(
"[Radxa Zero 3W] Succès : {}",
String::from_utf8_lossy(&output.stdout).trim()
);
} else {
log::error!(
"[Radxa Zero 3W] Échec SSH vers root@{} : {}",
ip,
String::from_utf8_lossy(&output.stderr).trim()
);
}
}
Err(e) => {
log::error!("[Radxa Zero 3W] Erreur exécution SSH : {}", e);
}
}
Err(e) => {
log::error!("[Radxa Zero 3W] Erreur exécution SSH : {}", e);
}
}
});
}
fn test_nomad_udp_packet(&self) {
@@ -734,6 +739,17 @@ impl eframe::App for SteamFrameGuiApp {
egui::ComboBox::from_id_salt("res_profile_combo")
.selected_text(&self.cfg.vrx_video_profile)
.show_ui(ui, |ui| {
if ui
.selectable_value(
&mut self.cfg.vrx_video_profile,
"720p60".to_string(),
"720P @ 60 FPS (Défaut)",
)
.clicked()
{
self.cfg.video_width = 1280;
self.cfg.video_height = 720;
}
if ui
.selectable_value(
&mut self.cfg.vrx_video_profile,