From 5de16fea2642f71ed09ce31ca1da53504599ca90 Mon Sep 17 00:00:00 2001 From: Mattk70 Date: Fri, 29 Mar 2024 00:37:20 +0000 Subject: [PATCH] Added toast re: failed DLL load issue bumped version --- js/worker.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/worker.js b/js/worker.js index 389bb852..d193af10 100644 --- a/js/worker.js +++ b/js/worker.js @@ -47,7 +47,8 @@ console.error = function(message) { }; // Implement error handling in the worker self.onerror = function(message, file, lineno, colno, error) { - STATE.track && trackEvent(STATE.UUID, 'Unhandled Worker Error', error.message, customURLEncode(error.stack)); + STATE.track && trackEvent(STATE.UUID, 'Unhandled Worker Error', message, customURLEncode(error?.stack)); + if (message.includes('dynamic link library')) UI.postMessage({event: 'generate-alert', message: 'There has been an error loading the model. This may be due to missing AVX support. Chirpity AI models require AVX instructions to run. If you have AVX enabled and still see this notice, please refer to this issue on Github.'}) // Return false not to inhibit the default error handling return false; }; diff --git a/package.json b/package.json index 9a2c5029..0c4c1742 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chirpity", - "version": "1.6.4", + "version": "1.6.5", "description": "Chirpity Nocmig", "main": "main.js", "scripts": {