cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.77k stars 3.16k forks source link

cypress open just quits, no error message, after a few minutes idle #24811

Closed simondrabble closed 11 months ago

simondrabble commented 1 year ago

Current behavior

If I leave cypress open idle for a few minutes (varies) it will just exit without any kind of error message. This occurs in the cypress/included:11.2.0 docker image and was also present in 10.10.x

Often, I will be adjusting tests or code and thus not actively executing tests. To have to restart cypress, resize windows, disable network cache, open the console* etc because I didn't interact with the UI for a few minutes is frustrating to say the least.

This occurs no matter what tests I have loaded, and since the amount of time before exit is inconsistent I can't even set a reminder to click a button or whatever.

Desired behavior

Stay running until I explicitly close it.

Test code to reproduce

I have no test code to reproduce because this is behaviour of the UI itself, not the test runner.

Cypress Version

11.2.0

Node version

Whatever is in cypress/included:11.2.0

Operating System

Host is Mac OS Monterey 12.1

Debug Logs

cypress:cli:cli cli starts with arguments ["/usr/local/bin/node","/usr/local/bin/cypress","open","--project","."] +0ms
  cypress:cli NODE_OPTIONS is not set +0ms
  cypress:cli:cli program parsing arguments +1ms
  cypress:cli:cli opening Cypress +1ms
  cypress:cli parsed cli options { project: '.' } +61ms
  cypress:cli verifying Cypress app +0ms
  cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable +1ms
  cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable +0ms
  cypress:cli using environment variable CYPRESS_CACHE_FOLDER /root/.cache/Cypress +0ms
  cypress:cli checking environment variables +0ms
  cypress:cli checking if executable exists /root/.cache/Cypress/11.2.0/Cypress/Cypress +2ms
  cypress:cli Binary is executable? : true +6ms
  cypress:cli binaryDir is  /root/.cache/Cypress/11.2.0/Cypress +0ms
  cypress:cli Reading binary package.json from: /root/.cache/Cypress/11.2.0/Cypress/resources/app/package.json +9ms
  cypress:cli Found binary version 11.2.0 installed in: /root/.cache/Cypress/11.2.0/Cypress +3ms
  cypress:cli { verified: true } +3ms
  cypress:cli is Verified ? true +2ms
  cypress:cli opening from options {"project":"."} +0ms
  cypress:cli command line arguments ["--project","."] +0ms
  cypress:cli DISPLAY environment variable is set to 192.168.0.81:0 on Linux
  cypress:cli Assuming this DISPLAY points at working X11 server,
  cypress:cli Cypress will not spawn own Xvfb
  cypress:cli
  cypress:cli NOTE: if the X11 server is NOT working, Cypress will exit without explanation,
  cypress:cli   see https://github.com/cypress-io/cypress/issues/4034
  cypress:cli Solution: Unset the DISPLAY variable and try again:
  cypress:cli   DISPLAY= npx cypress run ... +0ms
  cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable +14ms
  cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable +0ms
  cypress:cli using environment variable CYPRESS_CACHE_FOLDER /root/.cache/Cypress +3ms
  cypress:cli needs to start own Xvfb? false +0ms
  cypress:cli spawning, should retry on display problem? true +0ms
  cypress:cli passing DISPLAY 192.168.0.81:0 +3ms
  cypress:cli spawn args [ '--no-sandbox', '--', '--project', '.', '--cwd', '/e2e', '--userNodePath', '/usr/local/bin/node', '--userNodeVersion', '16.16.0' ] { detached: false, stdio: [ 'inherit', 'inherit', 'pipe' ] } +0ms
  cypress:cli spawning Cypress with executable: /root/.cache/Cypress/11.2.0/Cypress/Cypress +1ms
  cypress:cli piping child STDERR to process STDERR +5ms
  cypress:ts registering ts-node on directory undefined +0ms
  cypress:ts Running without ts-node hook in environment "production" +38ms
  cypress:server:appdata path: /root/.config/Cypress/cy/production/cache +0ms
  cypress:server:appdata path: /root/.config/Cypress/cy/production/browsers +33ms
  cypress:server:cypress starting cypress with argv [ '/root/.cache/Cypress/11.2.0/Cypress/Cypress', '--no-sandbox', '--', '--project', '.', '--cwd', '/e2e', '--userNodePath', '/usr/local/bin/node', '--userNodeVersion', '16.16.0' ] +0ms
  cypress:server:args argv array: [ '/root/.cache/Cypress/11.2.0/Cypress/Cypress', '--no-sandbox', '--project', '.', '--cwd', '/e2e', '--userNodePath', '/usr/local/bin/node', '--userNodeVersion', '16.16.0' ] +0ms
  cypress:server:args parsed argv options { options: { _: [ '/root/.cache/Cypress/11.2.0/Cypress/Cypress' ], sandbox: false, project: '.', cwd: '/e2e', userNodePath: '/usr/local/bin/node', userNodeVersion: '16.16.0' } } +1ms
  cypress:server:args argv parsed: { _: [ '/root/.cache/Cypress/11.2.0/Cypress/Cypress' ], sandbox: false, project: '.', cwd: '/e2e', userNodePath: '/usr/local/bin/node', userNodeVersion: '16.16.0', invokedFromCli: true } +2ms
  cypress:server:util:proxy found proxy environment variables {} +0ms
  cypress:server:args options { _: [ '/root/.cache/Cypress/11.2.0/Cypress/Cypress' ], sandbox: false, project: '.', cwd: '/e2e', userNodePath: '/usr/local/bin/node', userNodeVersion: '16.16.0', invokedFromCli: true, config: {} } +1ms
  cypress:server:args argv options: { _: [ '/root/.cache/Cypress/11.2.0/Cypress/Cypress' ], sandbox: false, project: '.', cwd: '/e2e', userNodePath: '/usr/local/bin/node', userNodeVersion: '16.16.0', invokedFromCli: true, config: {}, projectRoot: '/e2e' } +0ms
  cypress:server:cypress from argv [ '/root/.cache/Cypress/11.2.0/Cypress/Cypress', '--no-sandbox', '--project', '.', '--cwd', '/e2e', '--userNodePath', '/usr/local/bin/node', '--userNodeVersion', '16.16.0' ] got options { _: [ '/root/.cache/Cypress/11.2.0/Cypress/Cypress' ], sandbox: false, project: '.', cwd: '/e2e', userNodePath: '/usr/local/bin/node', userNodeVersion: '16.16.0', invokedFromCli: true, config: {}, projectRoot: '/e2e' } +5ms
  cypress:server:appdata path: /root/.config/Cypress/cy/production +118ms
[764:1124/192039.971833:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
  cypress:server:util:process_profiler error running process profiler: Error: Expected DataContext to already have been set via setCtx. If this is a testing context, make sure you are calling "setCtx" in a before hook, otherwise check the application flow.  at getCtx (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/data-context/src/index.js:32:15) at Object.getPluginPid (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/plugins/index.js:10:38) at isPluginProcess (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/util/process_profiler.js:46:37) at getProcessGroup (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/util/process_profiler.js:79:13) at classifyProcess (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/util/process_profiler.js:103:18) at arrayMap (/root/.cache/Cypress/11.2.0/Cypress/resources/app/node_modules/lodash/lodash.js:653:23) at Function.map (/root/.cache/Cypress/11.2.0/Cypress/resources/app/node_modules/lodash/lodash.js:9622:14) at interceptor (/root/.cache/Cypress/11.2.0/Cypress/resources/app/node_modules/lodash/lodash.js:17094:35) at thru (/root/.cache/Cypress/11.2.0/Cypress/resources/app/node_modules/lodash/lodash.js:8859:14) at /root/.cache/Cypress/11.2.0/Cypress/resources/app/node_modules/lodash/lodash.js:4430:28 at arrayReduce (/root/.cache/Cypress/11.2.0/Cypress/resources/app/node_modules/lodash/lodash.js:697:21) at baseWrapperValue (/root/.cache/Cypress/11.2.0/Cypress/resources/app/node_modules/lodash/lodash.js:4429:14) at LazyWrapper.lazyValue [as value] (/root/.cache/Cypress/11.2.0/Cypress/resources/app/node_modules/lodash/lodash.js:1901:16) at baseWrapperValue (/root/.cache/Cypress/11.2.0/Cypress/resources/app/node_modules/lodash/lodash.js:4427:25) at LodashWrapper.wrapperValue (/root/.cache/Cypress/11.2.0/Cypress/resources/app/node_modules/lodash/lodash.js:9114:14) at classify (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/util/process_profiler.js:101:18) at classifyProcess (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/util/process_profiler.js:103:9) at _groupCyProcesses (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/util/process_profiler.js:105:5) +0ms
  cypress:server:cypress starting in mode interactive with options { _: [ '/root/.cache/Cypress/11.2.0/Cypress/Cypress' ], sandbox: false, project: '.', cwd: '/e2e', userNodePath: '/usr/local/bin/node', userNodeVersion: '16.16.0', invokedFromCli: true, config: {}, projectRoot: '/e2e' } +131ms
  cypress:server:cypress running Electron currently +0ms
[918:1124/192039.991483:WARNING:sandbox_linux.cc(380)] InitializeSandbox() called with multiple threads in process gpu-process.
[918:1124/192039.997845:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
  cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for Query.cloudLatestRunUpdateSpecData +0ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for Query.cloudProjectBySlug +0ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for Query.cloudProjectsBySlugs +0ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for Query.cloudSpecByPath +1ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for Query.cloudViewer +0ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for Query.versions +0ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for CurrentProject.cloudProject +1ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for RemoteFetchableCloudProjectResult.data +2ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for RemoteFetchableCloudProjectSpecResult.data +0ms
  cypress:server:browsers:utils getBrowsers +0ms
  cypress:launcher:detect detecting if the following browsers are present [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', versionRegex: /Google Chrome (\S+)/m, binary: [ 'google-chrome', 'chrome', 'google-chrome-stable' ], minSupportedVersion: 64 }, { name: 'chromium', family: 'chromium', channel: 'stable', displayName: 'Chromium', versionRegex: /Chromium (\S+)/m, binary: [ 'chromium-browser', 'chromium' ], minSupportedVersion: 64 }, { name: 'chrome', family: 'chromium', channel: 'beta', displayName: 'Chrome Beta', versionRegex: /Google Chrome (\S+) beta/m, binary: 'google-chrome-beta', minSupportedVersion: 64 }, { name: 'chrome', family: 'chromium', channel: 'canary', displayName: 'Canary', versionRegex: /Google Chrome Canary (\S+)/m, binary: 'google-chrome-canary', minSupportedVersion: 64 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', versionRegex: /^Mozilla Firefox ([^\sab]+)$/m, binary: 'firefox', minSupportedVersion: 86, validator: [Function: validator] }, { name: 'firefox', family: 'firefox', channel: 'dev', displayName: 'Firefox Developer Edition', versionRegex: /^Mozilla Firefox (\S+b\S*)$/m, binary: [ 'firefox-developer-edition', 'firefox' ], minSupportedVersion: 86 }, { name: 'firefox', family: 'firefox', channel: 'nightly', displayName: 'Firefox Nightly', versionRegex: /^Mozilla Firefox (\S+a\S*)$/m, binary: [ 'firefox-nightly', 'firefox-trunk' ], minSupportedVersion: 86 }, { name: 'edge', family: 'chromium', channel: 'stable', displayName: 'Edge', versionRegex: /Microsoft Edge (\S+)/m, binary: [ 'edge', 'microsoft-edge' ], minSupportedVersion: 79 }, { name: 'edge', family: 'chromium', channel: 'canary', displayName: 'Edge Canary', versionRegex: /Microsoft Edge Canary (\S+)/m, binary: 'edge-canary', minSupportedVersion: 79 }, { name: 'edge', family: 'chromium', channel: 'beta', displayName: 'Edge Beta', versionRegex: /Microsoft Edge Beta (\S+)/m, binary: 'edge-beta', minSupportedVersion: 79 }, { name: 'edge', family: 'chromium', channel: 'dev', displayName: 'Edge Dev', versionRegex: /Microsoft Edge Dev (\S+)/m, binary: [ 'edge-dev', 'microsoft-edge-dev' ], minSupportedVersion: 79 } ] +0ms
  cypress:server:browsers:utils WebKit is enabled, but there was an error constructing the WebKit browser: { err: Error: Cannot find module 'playwright-webkit' Require stack: - /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/browsers/utils.js - /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/browsers/index.js - /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/util/process_profiler.js - /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/server-entry.js - /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/index.js - /root/.cache/Cypress/11.2.0/Cypress/resources/app/index.js -     at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)     at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1105)     at Function.resolve (node:internal/modules/cjs/helpers:108:19) at getWebKitBrowser (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/browsers/utils.js:155:36) at Object.getBrowsers (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/browsers/utils.js:179:9) at BrowserDataSource.machineBrowsers (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/data-context/src/sources/BrowserDataSource.js:67:45) at ProjectLifecycleManager._setCurrentProject (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/data-context/src/data/ProjectLifecycleManager.js:316:26) at new ProjectLifecycleManager (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/data-context/src/data/ProjectLifecycleManager.js:65:18) at new DataContext (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/data-context/src/DataContext.js:92:33) at makeDataContext (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/makeDataContext.js:28:17) at module.exports (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/modes/index.js:24:82) at /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/cypress.js:86:34 at tryCatcher (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/util.js:16:23) at Function.Promise.attempt.Promise.try (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/method.js:39:29) at Object.runElectron (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/cypress.js:72:23) at Object.startInMode (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/cypress.js:249:21) at /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/cypress.js:179:19 at tryCatcher (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:547:31) at Promise._settlePromise (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:604:18) at Promise._settlePromise0 (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:649:10) at Promise._settlePromises (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:729:18) at Promise._fulfill (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:673:18) at Promise._settlePromise (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:617:21) at Promise._settlePromise0 (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:649:10) at Promise._settlePromises (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:729:18) at Promise._fulfill (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:673:18) at Promise._settlePromise (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:617:21) at Promise._settlePromise0 (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:649:10) at Promise._settlePromises (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:729:18) at Promise._fulfill (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:673:18) at PromiseArray._resolve (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise_array.js:127:19) at PromiseArray._promiseFulfilled (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise_array.js:145:14) at Promise._settlePromise (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:609:26) at Promise._settlePromise0 (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:649:10) at Promise._settlePromises (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:729:18) at Promise._fulfill (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/promise.js:673:18) at /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/nodeback.js:42:21 at /root/.cache/Cypress/11.2.0/Cypress/resources/app/node_modules/fs-extra/node_modules/universalify/index.js:22:54 { code: 'MODULE_NOT_FOUND', requireStack: [ '/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/browsers/utils.js', '/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/browsers/index.js', '/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/lib/util/process_profiler.js', '/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/server-entry.js', '/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server/index.js', '/root/.cache/Cypress/11.2.0/Cypress/resources/app/index.js', undefined ] } } +5ms
  cypress:data-context:sources:GitDataSource config: { isRunMode: false, projectRoot: '/e2e', onError: [Function (anonymous)], onBranchChange: [Function: onBranchChange], onGitInfoChange: [Function: onGitInfoChange] } +0ms
  cypress:server:util:editors get user editor +0ms
  cypress:server:saved_state making saved state from /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server +0ms
  cypress:server:saved_state missing project path, looking for project here +0ms
  cypress:lifecycle:ProjectConfigIpc fork child process { CHILD_PROCESS_FILE_PATH: '/root/.cache/Cypress/11.2.0/Cypress/resources/app/node_modules/@packages/server/lib/plugins/child/require_async_child.js', configProcessArgs: [ '--projectRoot', '/e2e', '--file', '/e2e/cypress.config.js' ], childOptions: { stdio: 'pipe', cwd: '/e2e', execPath: '/usr/local/bin/node' } } +0ms
  cypress:lifecycle:ProjectConfigIpc no typescript found, just use regular Node.js +3ms
  cypress:lifecycle:ProjectConfigIpc trigger the load of the file +8ms
  cypress:server:performance-benchmark elapsed time at open mode ready: 1177.928ms +0ms
  cypress:server:saved_state making saved state from /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server +29ms
  cypress:server:saved_state for project path /e2e +0ms
  cypress:server:saved_state state path for project /e2e +110ms
  cypress:server:appdata path: /root/.config/Cypress/cy/production/projects/e2e-81f6a8af1f0d55c08160ab5e6fafdc0e/state.json +574ms
  cypress:server:saved_state full state path /root/.config/Cypress/cy/production/projects/e2e-81f6a8af1f0d55c08160ab5e6fafdc0e/state.json +1ms
  cypress:server:saved_state making new state file around /root/.config/Cypress/cy/production/projects/e2e-81f6a8af1f0d55c08160ab5e6fafdc0e/state.json +0ms
  cypress:data-context:sources:GitDataSource Skipping branch watching because a git error was reported +240ms
  cypress:server:saved_state state path for global mode +103ms
  cypress:server:appdata path: /root/.config/Cypress/cy/production/projects/__global__/state.json +104ms
  cypress:server:saved_state full state path /root/.config/Cypress/cy/production/projects/__global__/state.json +1ms
  cypress:server:saved_state making new state file around /root/.config/Cypress/cy/production/projects/__global__/state.json +1ms
  cypress:lifecycle:child:run_require_async_child:941 configFile: /e2e/cypress.config.js +0ms
  cypress:lifecycle:child:run_require_async_child:941 projectRoot: /e2e +0ms
  cypress:data-context:sources:GitDataSource this is not a git repo +42ms
  cypress:lifecycle:child:run_require_async_child:941 try loading /e2e/cypress.config.js +15ms
  cypress:lifecycle:child:run_require_async_child:941 Loading file /e2e/cypress.config.js +0ms
  cypress:lifecycle:child:run_require_async_child:941 loaded config file /e2e/cypress.config.js +4ms
  cypress:lifecycle:child:run_require_async_child:941 loaded config from /e2e/cypress.config.js { e2e: { baseUrl: 'https://crazytales.local', setupNodeEvents: [Function: setupNodeEvents] } } +0ms
  cypress:lifecycle:ProjectConfigIpc loadConfig:reply +250ms
  cypress:lifecycle:ProjectConfigManager config is loaded for file /e2e/cypress.config.js null +0ms
  cypress:config:browser validating configuration {
  e2e: {
    baseUrl: 'https://crazytales.local',
    setupNodeEvents: '[Function setupNodeEvents]'
  }
} +0ms
  cypress:server:windows creating electron window with options { url: 'http://localhost:57969/__launchpad/index.html', backgroundColor: 'white', width: 1200, height: 800, minWidth: 597, minHeight: 400, x: null, y: null, type: 'INDEX', devTools: false, trackState: { width: 'appWidth', height: 'appHeight', x: 'appX', y: 'appY', devTools: 'isAppDevToolsOpen' }, onBlur: [Function: onBlur], onFocus: [Function: onFocus], onClose: [Function: onClose], show: true, frame: true, transparent: false, icon: NativeImage { toPNG: [Function: toPNG], toJPEG: [Function: toJPEG], toBitmap: [Function: toBitmap], getBitmap: [Function: getBitmap], getScaleFactors: [Function: getScaleFactors], getNativeHandle: [Function: getNativeHandle], toDataURL: [Function: toDataURL], isEmpty: [Function: isEmpty], getSize: [Function: getSize], setTemplateImage: [Function: setTemplateImage], isTemplateImage: [Function: isTemplateImage], isMacTemplateImage: [Getter/Setter], resize: [Function: resize], crop: [Function: crop], getAspectRatio: [Function: getAspectRatio], addRepresentation: [Function: addRepresentation] }, webPreferences: { contextIsolation: true, partition: null, webSecurity: false, nodeIntegration: false, backgroundThrottling: false }, contextMenu: false, recordFrameRate: null, onCrashed: [Function: onCrashed], onNewWindow: [Function: onNewWindow] } +0ms
  cypress:server:browsers:utils found browsers { browsers: [] } +552ms
  cypress:server:util:editors user has the following editors: [] +538ms
  cypress:server:saved_state making saved state from /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server +294ms
  cypress:server:saved_state missing project path, looking for project here +0ms
  cypress:server:saved_state state path for global mode +4ms
  cypress:server:appdata path: /root/.config/Cypress/cy/production/projects/__global__/state.json +299ms
  cypress:server:saved_state full state path /root/.config/Cypress/cy/production/projects/__global__/state.json +0ms
  cypress:server:util:editors saved preferred editor: undefined +7ms
  cypress:server:util:editors return available editors: [ { id: 'computer', name: 'File System', binary: 'computer' } ] +0ms
  cypress:server:saved_state making saved state from /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server +5ms
  cypress:server:saved_state missing project path, looking for project here +0ms
  cypress:server:saved_state state path for global mode +3ms
  cypress:server:appdata path: /root/.config/Cypress/cy/production/projects/__global__/state.json +8ms
  cypress:server:saved_state full state path /root/.config/Cypress/cy/production/projects/__global__/state.json +0ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Racing execution for CurrentProject.cloudProject +967ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Racing execution for Query.versions +1ms
  cypress:network:agent addRequest called { isHttps: true, href: 'https://registry.npmjs.org/cypress' } +0ms
  cypress:network:connect beginning getAddress { hostname: 'registry.npmjs.org', port: 80 } +0ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Racing execution for Query.cloudViewer +17ms
  cypress:graphql:remoteSchemaWrapped executing: {"operationName":"HeaderBar_HeaderBarQuery_cloudViewer","requestPolicy":"cache-first"} +0ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Racing Query.cloudViewer resolved immediately +6ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin CurrentProject.cloudProject did not resolve immediately +0ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Query.versions did not resolve immediately +1ms
  cypress:config:browser validating configuration {} +654ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Racing CurrentProject.cloudProject eventually resolved with null HeaderBar_HeaderBarQuery +3ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Remote execution error TypeError: Cannot read properties of null (reading 'id') at GraphQLDataSource.pushResult (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/data-context/src/sources/GraphQLDataSource.js:44:87) at /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/graphql/src/plugins/nexusDeferIfNotLoadedPlugin.js:82:33  +0ms
  cypress:config:browser validating configuration {} +1ms
  cypress:network:agent addRequest called { isHttps: true, href: 'https://download.cypress.io/desktop.json' } +17ms
  cypress:network:connect beginning getAddress { hostname: 'download.cypress.io', port: 80 } +16ms
  cypress:server:saved_state making saved state from /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server +417ms
  cypress:server:saved_state missing project path, looking for project here +0ms
  cypress:network:connect got addresses { hostname: 'registry.npmjs.org', port: 80, addresses: [ { address: '104.16.20.35', family: 4 }, { address: '104.16.23.35', family: 4 }, { address: '104.16.16.35', family: 4 }, { address: '104.16.18.35', family: 4 }, { address: '104.16.24.35', family: 4 }, { address: '104.16.21.35', family: 4 }, { address: '104.16.26.35', family: 4 }, { address: '104.16.25.35', family: 4 }, { address: '104.16.19.35', family: 4 }, { address: '104.16.22.35', family: 4 }, { address: '104.16.17.35', family: 4 }, { address: '104.16.27.35', family: 4 }, { address: '2606:4700::6810:1b23', family: 6 }, { address: '2606:4700::6810:1923', family: 6 }, { address: '2606:4700::6810:1323', family: 6 }, { address: '2606:4700::6810:1023', family: 6 }, { address: '2606:4700::6810:1223', family: 6 }, { address: '2606:4700::6810:1523', family: 6 }, { address: '2606:4700::6810:1423', family: 6 }, { address: '2606:4700::6810:1823', family: 6 }, { address: '2606:4700::6810:1623', family: 6 }, { address: '2606:4700::6810:1723', family: 6 }, { address: '2606:4700::6810:1123', family: 6 }, { address: '2606:4700::6810:1a23', family: 6 } ] } +34ms
  cypress:network:connect got addresses { hostname: 'download.cypress.io', port: 80, addresses: [ { address: '104.22.10.239', family: 4 }, { address: '172.67.25.250', family: 4 }, { address: '104.22.11.239', family: 4 }, { address: '2606:4700:10::ac43:19fa', family: 6 }, { address: '2606:4700:10::6816:aef', family: 6 }, { address: '2606:4700:10::6816:bef', family: 6 } ] } +4ms
  cypress:server:saved_state state path for global mode +8ms
  cypress:server:appdata path: /root/.config/Cypress/cy/production/projects/__global__/state.json +425ms
  cypress:server:saved_state full state path /root/.config/Cypress/cy/production/projects/__global__/state.json +0ms
  cypress:network:agent got family { family: 4, href: 'https://registry.npmjs.org/cypress' } +76ms
  cypress:network:agent got family { family: 4, href: 'https://download.cypress.io/desktop.json' } +13ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Racing execution for Query.cloudViewer +122ms
  cypress:graphql:remoteSchemaWrapped executing: {"operationName":"CloudViewerAndProject_RequiredData_cloudViewer","requestPolicy":"cache-first"} +128ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Racing execution for CurrentProject.cloudProject +1ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Racing Query.cloudViewer resolved immediately +1ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin CurrentProject.cloudProject did not resolve immediately +2ms
  cypress:config:browser validating configuration {} +130ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Racing CurrentProject.cloudProject eventually resolved with null CloudViewerAndProject_RequiredData +5ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Remote execution error TypeError: Cannot read properties of null (reading 'id') at GraphQLDataSource.pushResult (/root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/data-context/src/sources/GraphQLDataSource.js:44:87) at /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/graphql/src/plugins/nexusDeferIfNotLoadedPlugin.js:82:33  +1ms
  cypress:data-context:sources:VersionsDataSource retrieving latest version information with headers: { 'Content-Type': 'application/json', 'x-cypress-version': '11.2.0', 'x-os-name': 'linux', 'x-arch': 'arm64', 'x-initial-launch': 'true', 'x-logged-in': 'false', 'x-machine-id': 'e5565a8ba718d041f2e397de914aabbc7262a8680370c5ddc788d6b8b7a20f29' } +0ms
  cypress:data-context:sources:VersionsDataSource latest version information: { name: 'Cypress', version: '11.2.0', packages: { mac: { url: 'https://cdn.cypress.io/desktop/11.2.0/darwin-x64/cypress.zip' }, linux64: { url: 'https://cdn.cypress.io/desktop/11.2.0/linux-x64/cypress.zip' }, darwin: { url: 'https://cdn.cypress.io/desktop/11.2.0/darwin-x64/cypress.zip' }, linux: { url: 'https://cdn.cypress.io/desktop/11.2.0/linux-x64/cypress.zip' }, 'darwin-x64': { url: 'https://cdn.cypress.io/desktop/11.2.0/darwin-x64/cypress.zip' }, 'darwin-arm64': { url: 'https://cdn.cypress.io/desktop/11.2.0/darwin-arm64/cypress.zip' }, 'linux-x64': { url: 'https://cdn.cypress.io/desktop/11.2.0/linux-x64/cypress.zip' }, 'linux-arm64': { url: 'https://cdn.cypress.io/desktop/11.2.0/linux-arm64/cypress.zip' }, 'win32-x64': { url: 'https://cdn.cypress.io/desktop/11.2.0/win32-x64/cypress.zip' } } } +2ms
  cypress:data-context:sources:VersionsDataSource NPM release dates received { modified: '2022-11-22T19:16:54.278Z' } +364ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Racing Query.versions eventually resolved with { latest: { id: '11.2.0', version: '11.2.0', released: '2022-11-22T15:50:11.397Z' }, current: { id: '11.2.0', version: '11.2.0', released: '2022-11-22T15:50:11.397Z' } } HeaderBar_HeaderBarQuery +588ms
  cypress:graphql:nexusDeferIfNotLoadedPlugin Resolving versions for pushFragment with {"latest":{"id":"11.2.0","version":"11.2.0","released":"2022-11-22T15:50:11.397Z"},"current":{"id":"11.2.0","version":"11.2.0","released":"2022-11-22T15:50:11.397Z"}} +1ms
  cypress:data-context:sources:GraphQLDataSource pushFragment value {"data":{"versions":{"current":{"id":"11.2.0","version":"11.2.0","released":"2022-11-22T15:50:11.397Z","__typename":"Version"},"latest":{"id":"11.2.0","version":"11.2.0","released":"2022-11-22T15:50:11.397Z","__typename":"Version"},"__typename":"VersionData"}}} +0ms
  cypress:server:saved_state making saved state from /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server +41s
  cypress:server:saved_state missing project path, looking for project here +0ms
  cypress:server:saved_state state path for global mode +8ms
  cypress:server:appdata path: /root/.config/Cypress/cy/production/projects/__global__/state.json +41s
  cypress:server:saved_state full state path /root/.config/Cypress/cy/production/projects/__global__/state.json +1ms
  cypress:server:saved_state making saved state from /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server +3ms
  cypress:server:saved_state missing project path, looking for project here +0ms
  cypress:server:saved_state state path for global mode +1ms
  cypress:server:appdata path: /root/.config/Cypress/cy/production/projects/__global__/state.json +5ms
  cypress:server:saved_state full state path /root/.config/Cypress/cy/production/projects/__global__/state.json +0ms
  cypress:server:saved_state making saved state from /root/.cache/Cypress/11.2.0/Cypress/resources/app/packages/server +3ms
  cypress:server:saved_state missing project path, looking for project here +0ms
  cypress:server:saved_state state path for global mode +1ms
  cypress:server:appdata path: /root/.config/Cypress/cy/production/projects/__global__/state.json +4ms
  cypress:server:saved_state full state path /root/.config/Cypress/cy/production/projects/__global__/state.json +0ms
  cypress:data-context:sources:GitDataSource Refreshing git data +1m
  cypress:data-context:sources:GitDataSource Skipping branch watching because a git error was reported +38ms
  cypress:data-context:sources:GitDataSource this is not a git repo +17ms
  cypress:data-context:sources:GitDataSource Refreshing git data +1m
  cypress:data-context:sources:GitDataSource Skipping branch watching because a git error was reported +21ms
  cypress:data-context:sources:GitDataSource this is not a git repo +12ms
  cypress:data-context:sources:GitDataSource Refreshing git data +1m
  cypress:data-context:sources:GitDataSource Skipping branch watching because a git error was reported +27ms
  cypress:data-context:sources:GitDataSource this is not a git repo +11ms
  cypress:data-context:sources:GitDataSource Refreshing git data +1m
  cypress:data-context:sources:GitDataSource Skipping branch watching because a git error was reported +19ms
  cypress:data-context:sources:GitDataSource this is not a git repo +15ms
  cypress:data-context:sources:GitDataSource Refreshing git data +1m
  cypress:data-context:sources:GitDataSource Skipping branch watching because a git error was reported +27ms
  cypress:data-context:sources:GitDataSource this is not a git repo +12ms
  cypress:data-context:sources:GitDataSource Refreshing git data +1m
  cypress:data-context:sources:GitDataSource Skipping branch watching because a git error was reported +29ms
  cypress:data-context:sources:GitDataSource this is not a git repo +12ms
[918:1124/192716.469398:ERROR:connection.cc(46)] X connection error received.
[918:1124/192716.469562:ERROR:connection.cc(46)] X connection error received.
  cypress:cli child event fired { event: 'exit', code: 1, signal: null } +7m

Other

Doesn't seem like the docker container is exiting since if I run the container without executing cypress, the container will stay open happily as long as I leave it.

simondrabble commented 1 year ago

Update: also I have left other X apps running for long periods with no issue.

jennifer-shehane commented 11 months ago

We’ll have to close this issue since there’s no way for us to reproduce and no info to lead us to why this may be happening on your container. Please try newer versions.