wingman-jr-addon/wingman_jr

Crash watchdog can't recover if processors don't load correctly

Closed this issue · 0 comments

I recently ran into what I believe was an OOM. For a bit after the crash, the processors were unable to start due to WebGL compilation failing and other stuff going bonkers. While Firefox eventually recovered and the addon would work on a manual refresh, the watchdog just assumed the processors hadn't loaded yet. I think some number of checks of failure on this condition should also probably trigger a reload.

The problematic code:

wingman_jr/background.js

Lines 337 to 340 in fdb787e

if(!processorReq) {
console.warn(`CRASH: Processors not yet ready.`);
return;
}