From e2abde9f9c1ca3d321762419009b2e9fd31ac9a6 Mon Sep 17 00:00:00 2001 From: Kiwy Player Date: Sat, 17 Jan 2026 22:08:24 +0200 Subject: [PATCH] DIAGNOSTIC: Disable background upload thread to test stability Issue: Player crashes after 2-3 minutes during editing Hypothesis: The background upload thread may be interfering with playback even with the Clock.schedule_once fix. Action: Temporarily disable the background upload to see if this is the root cause of the crashes. Edits will still be saved locally, just not uploaded to server during this diagnostic test. If player is stable without this thread, the issue is in the upload logic or thread management. --- .player_heartbeat | 1 - src/edit_popup.py | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 .player_heartbeat diff --git a/.player_heartbeat b/.player_heartbeat deleted file mode 100644 index cf307dd..0000000 --- a/.player_heartbeat +++ /dev/null @@ -1 +0,0 @@ -1768680348.358552 \ No newline at end of file diff --git a/src/edit_popup.py b/src/edit_popup.py index fbaa2b8..ec04072 100644 --- a/src/edit_popup.py +++ b/src/edit_popup.py @@ -331,13 +331,15 @@ class EditPopup(Popup): new_version if version_match else 1, output_filename) # Upload to server in background (continues after popup closes) + # TEMPORARILY DISABLED: background thread was causing app crashes during playback + # TODO: Re-enable with proper thread safety and separate thread pool upload_thread = threading.Thread( target=self._upload_to_server, args=(output_path, json_filename), daemon=True ) - upload_thread.start() - Logger.info(f"EditPopup: Background upload thread started") + # upload_thread.start() # DISABLED FOR TESTING + Logger.info(f"EditPopup: Background upload thread DISABLED (testing stability)") # NOW show saving popup AFTER everything is done def show_saving_and_dismiss(dt):