Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

ue

Manav Rathi0b5317867ffc
diff --git a/desktop/src/main/services/ffmpeg-worker.ts b/desktop/src/main/services/ffmpeg-worker.ts
index 7434682171..e9131568c8 100644
--- a/desktop/src/main/services/ffmpeg-worker.ts
+++ b/desktop/src/main/services/ffmpeg-worker.ts
@@ -53,6 +53,8 @@ export interface FFmpegUtilityProcess {
log.debugString("Started ffmpeg utility process");
+process.on("uncaughtException", (e, origin) => log.error(origin, e));
+
process.parentPort.once("message", (e) => {
// Expose an instance of `FFmpegUtilityProcess` on the port we got from our
// parent.
diff --git a/desktop/src/main/services/ml-worker.ts b/desktop/src/main/services/ml-worker.ts
index cb94de0a50..234c3abb23 100644
--- a/desktop/src/main/services/ml-worker.ts
+++ b/desktop/src/main/services/ml-worker.ts
@@ -24,6 +24,8 @@ import { fsStatMtime } from "./fs";
log.debugString("Started ML utility process");
+process.on("uncaughtException", (e, origin) => log.error(origin, e));
+
process.parentPort.once("message", (e) => {
// Initialize ourselves with the data we got from our parent.
parseInitData(e.data);