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

[Bug]: page with multiple canvases freezes in Chrome when sampling is set #1427

Open
1 task done
p-mazhnik opened this issue Mar 14, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@p-mazhnik
Copy link

p-mazhnik commented Mar 14, 2024

Preflight Checklist

  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.

What package is this bug report for?

rrweb

Version

2.0.0-alpha.11

Expected Behavior

Page doesn't freeze in Chrome

Actual Behavior

Page freezes

Steps to Reproduce

  • open html page in Chrome browser that:
    • has multiple canvases
    • starts recording with recordCanvas: true and sampling.canvas: <number>
    • makes changes to canvases
  • the page may be frozen immediately, but sometimes you have to press the refresh button (possibly several times)

Sample code can be found in https://github.com/p-mazhnik/rrweb-sample/tree/canvas-freeze-issue

Video attached

Video
rrweb-canvas-freeze.mov

Additional Information

Note that issue is not reproducible in Firefox and Safari. I suspect the issue exists in web worker, where operations with offscreen canvas somehow block the main thread in Chrome. Related report from StackOverflow: https://stackoverflow.com/questions/61475472/does-web-worker-block-on-the-main-thread-for-some-offscreencanvas-functions

@p-mazhnik p-mazhnik added the bug Something isn't working label Mar 14, 2024
@p-mazhnik p-mazhnik changed the title [Bug]: page with multiple canvases sometimes freezes in Chrome when sampling is set [Bug]: page with multiple canvases freezes in Chrome when sampling is set Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant