This error occurs frequently running running our playwright tests against chromium, causing the test to fail. It doesn't seem like there is a process crash anywhere and that we should be robust enough to recover if this is thrown in pageLog.
/home/ubuntu/recordreplay/playwright-tests/node_modules/playwright/lib/utils/stackTrace.js:48
const stack = new Error().stack;
^
page.evaluate: Execution context was destroyed, most likely because of a navigation.
Error:
at Object.captureStackTrace (/home/ubuntu/recordreplay/playwright-tests/node_modules/playwright/lib/utils/stackTrace.js:48:19)
at Connection.sendMessageToServer (/home/ubuntu/recordreplay/playwright-tests/node_modules/playwright/lib/client/connection.js:69:48)
at Proxy.<anonymous> (/home/ubuntu/recordreplay/playwright-tests/node_modules/playwright/lib/client/channelOwner.js:64:61)
at /home/ubuntu/recordreplay/playwright-tests/node_modules/playwright/lib/client/frame.js:179:42
at Frame._wrapApiCall (/home/ubuntu/recordreplay/playwright-tests/node_modules/playwright/lib/client/channelOwner.js:77:34)
at Frame.evaluate (/home/ubuntu/recordreplay/playwright-tests/node_modules/playwright/lib/client/frame.js:178:21)
at /home/ubuntu/recordreplay/playwright-tests/node_modules/playwright/lib/client/page.js:385:60
at Page._attributeToPage (/home/ubuntu/recordreplay/playwright-tests/node_modules/playwright/lib/client/page.js:231:20)
at Page.evaluate (/home/ubuntu/recordreplay/playwright-tests/node_modules/playwright/lib/client/page.js:385:21)
at pageLog (/home/ubuntu/recordreplay/playwright-tests/src/helpers.js:82:17)
undefined
/home/ubuntu/recordreplay/playwright-tests/utils.ts:55
throw new Error(`Spawned process failed with exit code ${rv.status}`);
^
Error: Spawned process failed with exit code 1
at Object.spawnChecked (/home/ubuntu/recordreplay/playwright-tests/utils.ts:55:11)
at /home/ubuntu/recordreplay/playwright-tests/run.ts:205:3
at step (/home/ubuntu/recordreplay/playwright-tests/run.ts:44:23)
at Object.next (/home/ubuntu/recordreplay/playwright-tests/run.ts:25:53)
at /home/ubuntu/recordreplay/playwright-tests/run.ts:19:71
at new Promise (<anonymous>)
at __awaiter (/home/ubuntu/recordreplay/playwright-tests/run.ts:15:12)
at runTest (/home/ubuntu/recordreplay/playwright-tests/run.ts:163:12)
at /home/ubuntu/recordreplay/playwright-tests/run.ts:230:11
at step (/home/ubuntu/recordreplay/playwright-tests/run.ts:44:23)
This error occurs frequently running running our playwright tests against chromium, causing the test to fail. It doesn't seem like there is a process crash anywhere and that we should be robust enough to recover if this is thrown in pageLog.