Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(macos): listen for errors on the helper's output pipes too

Etienne Lescot42115ad7f847
diff --git a/electron/ipc/handlers.ts b/electron/ipc/handlers.ts
index d270e8b77..5837502da 100644
--- a/electron/ipc/handlers.ts
+++ b/electron/ipc/handlers.ts
@@ -1566,6 +1566,14 @@ function attachNativeMacCaptureOutputDrain(
proc.stdin.on("error", (error) => {
console.warn("[native-sck] helper command pipe error:", error);
});
+ // The output pipes too, as the Windows drain does: the guard only swallows a few
+ // codes, and any other stream error would take the main process down.
+ proc.stdout.on("error", (error) => {
+ console.warn("[native-sck] helper stdout error:", error);
+ });
+ proc.stderr.on("error", (error) => {
+ console.warn("[native-sck] helper stderr error:", error);
+ });
}
function waitForNativeMacCaptureStart(proc: ChildProcessWithoutNullStreams) {