question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Video processing times out on videos where 0 frames were written

See original GitHub issue

Current behavior

Happens in our kitchensink tests for any video that is less than 3 seconds long: https://app.circleci.com/pipelines/github/cypress-io/cypress-example-kitchensink/1063/workflows/081e2595-85f7-4cc9-a5f7-fa3f23006b8e/jobs/6905

Screen Shot 2021-05-24 at 9 54 42 AM

Also may be the issue with our desktop-gui-component-tests for app/nav_spec.jsx where the test runs for 0 seconds.

CircleCI failure: https://app.circleci.com/pipelines/github/cypress-io/cypress/20691/workflows/a3b97c80-6b4e-4697-b047-bbaf32471656/jobs/750928

Screen Shot 2021-05-20 at 10 26 30 AM (1)

Versions

7.3.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jennifer-shehanecommented, Jun 3, 2021

With verbose video frame logging, you can see before the error throws that there were 0 video frames written.

Seems to be isolated to running on Mac in our CI, even though the Mac version is 10.15.7, which I can’t recreate running locally on the same OSX.

@flotwig thoughts:

i think the issue is that it’s simply not getting enough frames still. flaky recurrence of the bug we thought we solved with this recursive stuff. i would try bumping waitForMoreChunksTimeout first, and then try bumping line 119 to expect writtenChunksCount to be bigger

…or some other form of increasing the frames.

  cypress-verbose:server:video:frames frames written: 0 +13s
Warning: We failed processing this video.

This error will not alter the exit code.

TimeoutError: operation timed out
    at afterTimeout (/Users/runner/.cache/Cypress/7.3.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/bluebird/js/release/timers.js:46:19)
    at Timeout.timeoutTimeout [as _onTimeout] (/Users/runner/.cache/Cypress/7.3.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/bluebird/js/release/timers.js:76:13)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)
Screen Shot 2021-06-03 at 10 48 34 AM
0reactions
BlueWindscommented, Feb 7, 2022

I am fairly confident in saying that this has been resolved. I’m going to close this; If we see fresh instances, I’d suggest a new ticket with a more recent example.

https://app.circleci.com/pipelines/github/cypress-io/cypress/31138/workflows/70a8e975-295d-4ab9-80f9-d5c1f41fc74b/jobs/1215113 is an example of a recent run of the kitchen sink on mac. The task contains multiple spec files that complete in under a second, and video processing has succeeded consistently. I’ve checked the last half dozen runs, no video encoding failures.

Video does fail in Firefox, but that’s a known and unrelated issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

20 most common video errors & how to fix them
This article guide you how to fix all 20 problems or errors while playing videos like playback errors, audio video sync, issues, choppy, ......
Read more >
error while writing a video - MATLAB Answers
Without seeing the code, it is impossible to guess, what you are doing exactly. Perhaps there is a bug, which ignores the last...
Read more >
Faster video file FPS with cv2.VideoCapture and OpenCV
The answer is almost always video compression and frame decoding. Depending on your video file type, the codecs you have installed, and not...
Read more >
Is there a way to cut frames from a video to reduce its size ...
Just ignore the rest of the frames. Every time you retrieve a frame from your video, you increment a counter. Process only a...
Read more >
Lightning Fast Video Reading in Python | by Benjamin Lowe
The good news is there is a large selection of open source libraries that will solve these problems. If you need frame-accurate seeking...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found