Cypress: Failed to deserialize the V8 snapshot blob error during 'run' and 'open in Windows - 3.5.0

Created on 24 Oct 2019  Â·  28Comments  Â·  Source: cypress-io/cypress

Current behavior:

cypress run and cypress open, yield the following error after upgrading to 3.5.0:

Cypress failed to start.

This is usually caused by a missing library or dependency.

The error below should indicate which dependency is missing.

https://on.cypress.io/required-dependencies

If you are using Docker, we provide containers with all required dependencies installed.

----------
cypress open
It looks like this is your first time using Cypress: 3.5.0

#
# Fatal error in , line 0
# Failed to deserialize the V8 snapshot blob. This can mean that the 
snapshot blob file is corrupted or missing.
#
#
#
#FailureMessage Object: 0000003A7AAFEB88

----------

Platform: win32 (10.0.19002)
Cypress Version: 3.5.0
error Command failed with exit code 1.

image

Desired behavior:

Regain the ability to run tests and open the Cypress window.

Steps to reproduce: (app code and test code)

Run cypress run or cypress open on Windows 10 after upgrading to 3.5.0 via yarn upgrade cypress.

Versions

  • Cypress 3.5.0
  • Node 12.13.0
  • Windows 10 Version 1903, Build 19002.1002
windows existing workaround

Most helpful comment

npx cypress install --force

Fixed it completely.

All 28 comments

Hey @dugajean, thanks for opening this issue. This is likely isolated to something about your environment specifically.

In order to address you issue as quickly as possible, could you run Cypress in debug mode mode and print the entire set of logs here? Thanks!

Can you also put information about where you are runinng this from? What CI?

@jennifer-shehane I'm running this on my local machine. I'll run Cypress in debug mode and provide the output here.

@jennifer-shehane I have tried deleting node_modules and running yarn again from scratch, but that didn't help either.

yarn cypress
yarn run v1.19.1
$ cross-env DEBUG=cypress:* cypress open
  cypress:cli cli starts with arguments ["C:\\Program Files\\nodejs\\node.exe","C:\\Users\\lol\\Code\\myproject\\myproject-frontend\\node_modules\\cypress\\bin\\cypress","open"] +0ms
  cypress:cli NODE_OPTIONS is not set +0ms  
  cypress:cli program parsing arguments +2ms
  cypress:cli opening Cypress +1ms
  cypress:cli parsed cli options {} +174ms
  cypress:cli opening from options {"project":"C:\\Users\\lol\\Code\\myproject\\myproject-frontend"} +0ms
  cypress:cli command line arguments ["--project","C:\\Users\\lol\\Code\\myproject\\myproject-frontend"] +1ms
  cypress:cli verifying Cypress app +0ms
  cypress:cli checking environment variables +2ms
  cypress:cli checking if executable exists C:\Users\lol\AppData\Local\Cypress\Cache\3.5.0\Cypress\Cypress.exe +4ms
  cypress:cli Binary is executable? : true +25ms
  cypress:cli binaryDir is  C:\Users\lol\AppData\Local\Cypress\Cache\3.5.0\Cypress +1ms
  cypress:cli Reading binary package.json from: C:\Users\lol\AppData\Local\Cypress\Cache\3.5.0\Cypress\resources\app\package.json +0ms   
  cypress:cli Found binary version 3.5.0 installed in: C:\Users\lol\AppData\Local\Cypress\Cache\3.5.0\Cypress +6ms
  cypress:cli could not read binary_state.json file +8ms
  cypress:cli {} +21ms
  cypress:cli is Verified ? undefined +25ms
  cypress:cli running binary verification check 3.5.0 +1ms
It looks like this is your first time using Cypress: 3.5.0

  cypress:cli clearing out the verified version +8ms
  cypress:cli needs Xvfb? false +3ms
  cypress:cli spawning, should retry on display problem? false +20ms 
  cypress:cli running smoke test +1ms
  cypress:cli using Cypress executable C:\Users\lol\AppData\Local\Cypress\Cache\3.5.0\Cypress\Cypress.exe +1ms
  cypress:cli smoke test command: C:\Users\lol\AppData\Local\Cypress\Cache\3.5.0\Cypress\Cypress.exe --smoke-test --ping=465 +2ms        
  cypress:cli smoke test timeout 30000 ms +1ms
 \  Verifying Cypress can run C:\Users\lol\AppData\Local\Cypress\Cache\3.5.0\Cypress
  cypress:cli Smoke test failed: Error: Command failed: C:\Users\lol\AppData\Local\Cypress\Cache\3.5.0\Cypress\Cypress.exe --smoke-test --ping=465


#
# Fatal error in , line 0
# Failed to deserialize the V8 snapshot blob. This can mean that the 
snapshot blob file is corrupted or missing.
#
#
#
#FailureMessage Object: 0000006AF4EFED78


    at makeError (C:\Users\lol\Code\myproject\myproject-frontend\node_modules\cypress\node_modules\execa\index.js:172:9)
    at C:\Users\lol\Code\myproject\myproject-frontend\node_modules\cypress\node_modules\execa\index.js:277:16
    at processTicksAndRejections (internal/process/task_queues.js:93:5) {
  code: 3,
  stdout: '\r\n',
  stderr: '\r\n' +
    '\r\n' +
    '#\r\n' +
    '# Fatal error in , line 0\r\n' +
    '# Failed to deserialize the V8 snapshot blob. This can mean that the snapshot blob file is corrupted or missing.\r\n' +
    '#\r\n' +
    '#\r\n' +
    '#\r\n' +
    '#FailureMessage Object: 0000006AF4EFED78',
  failed: true,
  signal: null,
  cmd: 'C:\\Users\\lol\\AppData\\Local\\Cypress\\Cache\\3.5.0\\Cypress\\Cypress.exe --smoke-test --ping=465',
  timedOut: false,
  killed: false
} +82ms
  cypress:cli error message: 

#
# Fatal error in , line 0
# Failed to deserialize the V8 snapshot blob. This can mean that the 
snapshot blob file is corrupted or missing.
#
#
#
 ×  Verifying Cypress can run C:\Users\lol\AppData\Local\Cypress\Cache\3.5.0\Cypress
   → Cypress Version: 3.5.0
Cypress failed to start.

This is usually caused by a missing library or dependency.

The error below should indicate which dependency is missing.

https://on.cypress.io/required-dependencies

If you are using Docker, we provide containers with all required dependencies installed.


Platform: win32 (10.0.19002)
Cypress Version: 3.5.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

similar problem, after updating too. similar error messages in debugmode
installed via npm rather than yarn.

C:\Users\KarlGladwin>npx cypress run
  cypress:cli cli starts with arguments ["C:\\Program Files\\nodejs\\node.exe","C:\\Users\\KarlGladwin\\node_modules\\cypress\\bin\\cypress","run"] +0ms
  cypress:cli NODE_OPTIONS is not set +0ms
  cypress:cli program parsing arguments +4ms
  cypress:cli running Cypress +1ms
  cypress:cli parsed cli options {} +97ms
  cypress:cli verifying Cypress app +0ms
  cypress:cli checking environment variables +1ms
  cypress:cli checking if executable exists C:\Users\KarlGladwin\AppData\Local\Cypress\Cache\3.5.0\Cypress\Cypress.exe +4ms
  cypress:cli Binary is executable? : true +2ms
  cypress:cli binaryDir is  C:\Users\KarlGladwin\AppData\Local\Cypress\Cache\3.5.0\Cypress +0ms
  cypress:cli Reading binary package.json from: C:\Users\KarlGladwin\AppData\Local\Cypress\Cache\3.5.0\Cypress\resources\app\package.json +0ms
  cypress:cli Found binary version 3.5.0 installed in: C:\Users\KarlGladwin\AppData\Local\Cypress\Cache\3.5.0\Cypress +4ms
  cypress:cli could not read binary_state.json file +4ms
  cypress:cli {} +0ms
  cypress:cli is Verified ? undefined +2ms
  cypress:cli running binary verification check 3.5.0 +0ms
It looks like this is your first time using Cypress: 3.5.0

  cypress:cli clearing out the verified version +4ms
  cypress:cli needs Xvfb? false +2ms
  cypress:cli spawning, should retry on display problem? false +1ms
  cypress:cli running smoke test +5ms
  cypress:cli using Cypress executable C:\Users\KarlGladwin\AppData\Local\Cypress\Cache\3.5.0\Cypress\Cypress.exe +0ms
  cypress:cli smoke test command: C:\Users\KarlGladwin\AppData\Local\Cypress\Cache\3.5.0\Cypress\Cypress.exe --smoke-test --ping=557 +1ms
  cypress:cli smoke test timeout 30000 ms +1ms
  cypress:cli Smoke test failed: { Error: Command failed: C:\Users\KarlGladwin\AppData\Local\Cypress\Cache\3.5.0\Cypress\Cypress.exe --smoke-test --ping=557


#
# Fatal error in , line 0
# Failed to deserialize the V8 snapshot blob. This can mean that the snapshot blob file is corrupted or missing.
#
#
#
#FailureMessage Object: 00000019900FED68


    at makeError (C:\Users\KarlGladwin\node_modules\execa\index.js:172:9)
    at Promise.all.then.arr (C:\Users\KarlGladwin\node_modules\execa\index.js:277:16)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  code: 3,
  stdout: '\r\n',
  stderr:
   '\r\n\r\n#\r\n# Fatal error in , line 0\r\n# Failed to deserialize the V8 snapshot blob. This can mean that the snapshot blob file is corrupted or missing.\r\n#\r\n#\r\n#\r\n#FailureMessage Object: 00000019900FED68',
  failed: true,
  signal: null,
  cmd:
   'C:\\Users\\KarlGladwin\\AppData\\Local\\Cypress\\Cache\\3.5.0\\Cypress\\Cypress.exe --smoke-test --ping=557',
  timedOut: false,
  killed: false } +60ms
  cypress:cli error message:

#
# Fatal error in , line 0
# Failed to deserialize the V8 snapshot blob. This can mean that the snapshot blob file is corrupted or missing.
#
#
#
#FailureMessage Object: 00000019900FED68 +5ms
 ×  Verifying Cypress can run C:\Users\KarlGladwin\AppData\Local\Cypress\Cache\3.5.0\Cypress
   → Cypress Version: 3.5.0
Cypress failed to start.

This is usually caused by a missing library or dependency.

The error below should indicate which dependency is missing.

https://on.cypress.io/required-dependencies

If you are using Docker, we provide containers with all required dependencies installed.

----------



#
# Fatal error in , line 0
# Failed to deserialize the V8 snapshot blob. This can mean that the snapshot blob file is corrupted or missing.
#
#
#
#FailureMessage Object: 00000019900FED68

----------

Platform: win32 (10.0.18362)
Cypress Version: 3.5.0

I also got the "Failed to deserialize the V8 snapshot blob". Renaming the Cyrpress cache folder and reinstalling with npx cypress install resolved the problem though. Previously I upgrade the Vue CLI and had multiple errors here and interrupts. In my case, I think Cypress simply wasn't install correctly. Just for information for your troubleshooting.

@AsthirWP where's that cache folder located?

On Windows, it's in \AppData\Local\Cypress\Cache\

I also got the "Failed to deserialize the V8 snapshot blob". Renaming the Cyrpress cache folder and reinstalling with npx cypress install resolved the problem though. Previously I upgrade the Vue CLI and had multiple errors here and interrupts. In my case, I think Cypress simply wasn't install correctly. Just for information for your troubleshooting.

This fix worked for me!

This fix worked for me too!

yup, clearing the cache (renaming the above cache folder) and reinstalling cypress fixed this issue.

Worked for me too! Didn't have to clear the cache though, only force reinstall.

npx cypress install --force

Fixed it completely.

npx cypress install --force

Fixed it completely.

I did this too. Fixed for me.

npx cypress install --force also fixed it for me!
Thanks kristianfjelde

I just had this happen to me because I accidentally closed out before installation had completed.

with yarn:

  1. remove cypress from node_modules
  2. yarn install --check-files

Joining the npx cypress install --force bandwagon, problem solved for me.

We'll be closing this issue as resolved. Please follow the workaround above for clearing cache during install if you see this error.

I also got the "Failed to deserialize the V8 snapshot blob". Renaming the Cyrpress cache folder and reinstalling with npx cypress install resolved the problem though. Previously I upgrade the Vue CLI and had multiple errors here and interrupts. In my case, I think Cypress simply wasn't install correctly. Just for information for your troubleshooting.

Worked for me! Thanks!

for me yarn run cypress install --force has worked well. to force the installation.

Joining npx cypress install --force gang! Fixed it.

cypress cache clear && cypress install fixed this issue in my case while upgrading from v4.1.0 to v4.5.0

npx cypress install --force

Fixed it completely.

it works for me too!
@kristianfjelde you saved my day (and my sanity), thanks a lot!

I have to find this thread and rename the cache folder every time I upgrade Cypress. Hoping this gets fixed.

For some reason I seem to be needing to do this a lot lately: npx cypress install --force Not sure why.

At our company it seems to happen to one or two / 100 employees every time we upgrade.

Also happened to me today on a new install.
FYI: on local machine, Windows 10, Cypress 4.4.0, using yarn. The above fix worked: yarn run cypress install --force

npx force works but this must be the longest route possible to reinstall cypress - taking a LONG time lol.

Was this page helpful?
0 / 5 - 0 ratings