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

fix: wait for ffmpeg to finish writing even if page was closed #6648

Merged
merged 1 commit into from
May 19, 2021

Conversation

yury-s
Copy link
Member

@yury-s yury-s commented May 19, 2021

The bug was introduced in 53d50f9. The problem was that the video was removed from the map when the page was closing, after that context.close() wouldn't find the video artifact and wouldn't wait for it. Since page.close itself doesn't wait for the video to complete we could end up closing context and browser before the video was fully written to disk.

Refs: microsoft/playwright-java#432

@yury-s yury-s added the v1.11.1 label May 19, 2021
@yury-s yury-s merged commit b946437 into microsoft:master May 19, 2021
@yury-s yury-s deleted the video-finish-on-page-close branch May 19, 2021 05:29
aslushnikov pushed a commit to aslushnikov/playwright that referenced this pull request May 19, 2021
yury-s added a commit to yury-s/playwright that referenced this pull request May 19, 2021
aslushnikov added a commit that referenced this pull request May 19, 2021
Cherry-picking PR #6648 SHA b946437

Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
aslushnikov pushed a commit to aslushnikov/playwright that referenced this pull request May 20, 2021
aslushnikov added a commit that referenced this pull request May 20, 2021
- Cherry-Pick PR #6648 SHA b946437
- Cherry-Pick PR #6664 SHA 2ef47b9

References microsoft/playwright-java#432

Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants