From a493c7da5de20db22982afc5aefad4da3d94eb17 Mon Sep 17 00:00:00 2001 From: Zii Date: Sun, 11 Jun 2023 09:09:49 -0400 Subject: [PATCH] v3.0.t17 -finally fixed the crashing issue. it turns out EventLoop::exec() was calling vidList.removeLast() on an empty list every now and then, causing qt to fatal assert. I removed the line since it is not even needed. --- src/camera.cpp | 1 - src/common.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/camera.cpp b/src/camera.cpp index 3ff8b7a..e6995d1 100644 --- a/src/camera.cpp +++ b/src/camera.cpp @@ -323,7 +323,6 @@ bool EventLoop::exec() } vidList.append(backwardFacingFiles("live", ".ts", event.timeStamp, maxFiles / 2)); - vidList.removeLast(); vidList.append(forwardFacingFiles("live", ".ts", event.timeStamp, maxFiles / 2)); } diff --git a/src/common.h b/src/common.h index e0b4868..c828b72 100644 --- a/src/common.h +++ b/src/common.h @@ -29,7 +29,7 @@ using namespace std; -#define APP_VER "3.0.t16" +#define APP_VER "3.0.t17" #define APP_NAME "Motion Watch" #define APP_BIN "mow" #define REC_LOG_NAME "rec_log_lines.html"