You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Preflight Checklist
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
recordCanvas: true
andsampling.canvas: <number>
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
The text was updated successfully, but these errors were encountered: