-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Angular : Page frozen when recording and then hovering over button with tooltip #469
Comments
Well I retried today and the repl tool is not working anymore. |
Start to debug Now I found it will emit this event infinitely when hovering tooltip:
|
Okay, after some debugging, I can simplify the reproduce code to this basic mutation observer usage
A native mutation observer can make the tooltip into a dead loop. So this is not rrweb's issue, but I'm going to check why this happened. |
Finally, I find the root cause is an Angular bug: angular/angular#26948 . Looks like using |
Thank you very much for the investigation! |
We found Angular's zone module will patch MutationObserver which make the browser hang in some scenarios. Reference: angular/angular#26948
We found Angular's zone module will patch MutationObserver which make the browser hang in some scenarios. Reference: angular/angular#26948
Hello,
When I try to record a page everything seems to record normally but when I hover a button to show a tooltip, the page freezes and becomes unresponsive.
The cpu spikes to 100 and memory usage increases.
The project is based on ngx-admin which is based on angular.
To reproduce this :
git clone https://github.com/akveo/ngx-admin
cd ngx-admin
git checkout c2ce881c
(this is the version my project is based on, i tried the latest but does not work too)npm install
npm i --save rrweb
src/app/pages/modal-overlays/tooltip/tooltip.component.ts
so the class contains :export class TooltipComponent { constructor() { record({ emit: (event) => { console.log(event); }, }); } }
npm run start
It seems other people had the same problem but no solution or reproduction was posted (#432, #167).
Also, when I use the repl tool and point it to my link, everything works nicely.
Thanks in advance for the help!
The text was updated successfully, but these errors were encountered: