From d30b952215328ad837ae4471892fb7dfce7eb18c Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Sat, 26 Oct 2024 19:46:28 +0100 Subject: [PATCH] fix: add `@julusian/segfault-raub` to try and produce better logging for segfaults --- satellite/package.json | 1 + satellite/src/electron.ts | 2 ++ satellite/src/main.ts | 2 ++ yarn.lock | 11 +++++++++++ 4 files changed, 16 insertions(+) diff --git a/satellite/package.json b/satellite/package.json index 64ecd21..4224f55 100644 --- a/satellite/package.json +++ b/satellite/package.json @@ -52,6 +52,7 @@ "@julusian/bonjour-service": "^1.3.0-2", "@julusian/image-rs": "^1.1.1", "@julusian/jpeg-turbo": "^2.2.0", + "@julusian/segfault-raub": "^2.3.1", "@loupedeck/node": "^1.2.0", "@napi-rs/canvas": "0.1.58", "@xencelabs-quick-keys/node": "^1.0.0", diff --git a/satellite/src/electron.ts b/satellite/src/electron.ts index 8bbe8ba..e3f45ba 100644 --- a/satellite/src/electron.ts +++ b/satellite/src/electron.ts @@ -1,3 +1,5 @@ +import '@julusian/segfault-raub' + // eslint-disable-next-line node/no-unpublished-import import { app, Tray, Menu, MenuItem, dialog, nativeImage, BrowserWindow, ipcMain } from 'electron' import * as path from 'path' diff --git a/satellite/src/main.ts b/satellite/src/main.ts index 3dacb02..0435df3 100644 --- a/satellite/src/main.ts +++ b/satellite/src/main.ts @@ -1,3 +1,5 @@ +import '@julusian/segfault-raub' + import exitHook from 'exit-hook' import { CompanionSatelliteClient } from './client.js' import { DeviceManager } from './devices.js' diff --git a/yarn.lock b/yarn.lock index f79f243..ab021a3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -836,6 +836,16 @@ __metadata: languageName: node linkType: hard +"@julusian/segfault-raub@npm:^2.3.1": + version: 2.3.1 + resolution: "@julusian/segfault-raub@npm:2.3.1" + dependencies: + node-gyp: "npm:latest" + pkg-prebuilds: "npm:^1.0.0" + checksum: 10c0/297f243bff81260b122303e137d8ac6fd98f5bc56da4aac10e160d6024f58b91d076faceb6cd0961f8a1f349c3824e8b081273a38f2fc42c93e078261cf2d7b6 + languageName: node + linkType: hard + "@leichtgewicht/ip-codec@npm:^2.0.1": version: 2.0.5 resolution: "@leichtgewicht/ip-codec@npm:2.0.5" @@ -6767,6 +6777,7 @@ __metadata: "@julusian/bonjour-service": "npm:^1.3.0-2" "@julusian/image-rs": "npm:^1.1.1" "@julusian/jpeg-turbo": "npm:^2.2.0" + "@julusian/segfault-raub": "npm:^2.3.1" "@loupedeck/node": "npm:^1.2.0" "@napi-rs/canvas": "npm:0.1.58" "@sofie-automation/eslint-plugin": "npm:^0.1.1"