Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress runs hanging when video stream was not able to be generated #4033

Closed
testingtrail opened this issue Apr 25, 2019 · 1 comment
Closed
Labels
type: duplicate This issue or pull request already exists

Comments

@testingtrail
Copy link

testingtrail commented Apr 25, 2019

Current behavior:

When having a set of specs and there was an error generating the video output for any of them then the specific run is hanging and looping. I had to delete the project to have those runs finished. To make it work had to put "video":false

Desired behavior:

Even if the video failed to generate it should continue with the next test of abort the run as a whole, it is looping forever.

Steps to reproduce: (app code and test code)

this is how the cypress.json looks like inside plugins

{
    "baseUrl": "http://eaapp.somee.com",
    "video":true,
    "screenshotsFolder":"cypress/videos",
    "env":{
        "username":"admin"
    }
}

this is the folder structure
image

this is the error message

Warning: We failed to record the video.

This error will not alter the exit code.

Error: ffmpeg exited with code 1: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

    at ChildProcess.<anonymous> (C:\Users\jorge\AppData\Local\Cypress\Cache\3.2.0\Cypress\resources\app\packages\server\node_modules\fluent-ffmpeg\lib\processor.js:182:22)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

{ Error: ffmpeg exited with code 1: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

    at ChildProcess.<anonymous> (C:\Users\jorge\AppData\Local\Cypress\Cache\3.2.0\Cypress\resources\app\packages\server\node_modules\fluent-ffmpeg\lib\processor.js:182:22)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
 recordingVideoFailed: true }
Error: ffmpeg exited with code 1: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

    at ChildProcess.<anonymous> (C:\Users\jorge\AppData\Local\Cypress\Cache\3.2.0\Cypress\resources\app\packages\server\node_modules\fluent-ffmpeg\lib\processor.js:182:22)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

Versions

Cypress: 3.2.0
OS: Windows 10 │
Browser: Electron 59 (headless)

@testingtrail testingtrail changed the title Cypress runner is hanging when running a .feature file, not moving to next spec. Cypress runs hanging when video stream was not able to be generated Apr 25, 2019
@jennifer-shehane
Copy link
Member

Duplicate of #3491

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants