kapoorlakshya / screen-recorder

A Ruby gem to video record and take screenshots of your desktop or specific application window. Works on Windows, Linux, and macOS.
MIT License
192 stars 17 forks source link

Broken Pipe line #82

Closed Rajagopalan-M closed 4 years ago

Rajagopalan-M commented 4 years ago

This new error is showing up now

Errno::EPIPE: Broken pipe

  0) StingRay(AGCS) Scenario6-WCPOLSEndorsedPolicy AGCSPolicyEndorsement_Test1
     Failure/Error: @process.io.stdin.close

     Errno::EPIPE:
       Broken pipe

This error is happening when I close the recorder recorder.stop unless recorder.nil? Here is the ffmepg log

https://gist.github.com/Rajagopalan-M/fc7b4fe0de5cd2dca7936ba8c79321be

kapoorlakshya commented 4 years ago

Hey @Rajagopalan-M, the video recording itself is successful based on the ffmpeg log. I'll need the debug log from the gem to properly troubleshoot this.

Rajagopalan-M commented 4 years ago

@kapoorlakshya Okay, this error is not happening right now. If it happens again, I will let you know. And I use your recorder while I do parallel run, it is not recording properly. Video records the first page and stops there and after few minutes it catches other pages. This recorder can't be used for parallel run?

kapoorlakshya commented 4 years ago

@Rajagopalan-M I have not tested the gem for parallel test executions.

Video records the first page and stops there and after few minutes it catches other pages.

That's probably because ffmpeg is focusing on the new window with the same title. It's just something that ffmpeg is designed to do I guess. I can't think of a solution that I can implement in the gem to change that behavior.

Rajagopalan-M commented 4 years ago

@kapoorlakshya

Sure, thanks.

kapoorlakshya commented 4 years ago

I'm closing this for now, but feel free to revive it when you have more information.