Memory Leak with Safari
See original GitHub issueHi,
Thanks for a great package, but I have encountered a memory leak with Safari on iOS 11.4.1.
The qrcode-reader
component is being used like so:
<qrcode-reader :paused="paused" @decode="onDecode" @init="onInit"></qrcode-reader>
When using the Timeline in Safari’s Web Inspector, I’m noticing that while the component is active, Javascript memory usage rises up to several gigabytes before crashing Safari with the “A problem occurred with this webpage so it was reloaded.” alert.
Javascript “Animation Frame” events containing t > drawImage
and getImageData
are firing several times a second, with some of these events taking longer than 30ms to execute.
In 30 seconds, 127 “Message Event Dispatched” events containing flushCallbacks
are also firing, taking an average of 193ms to execute.
I hope that this is sufficient information. Cheers 👍
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Closing this due to inactivity. Please reopen if the issue persists.
I’d also like to note here for you that before disabling tracking, a qr code would sometimes be scanned after unpausing. Sometimes it would “scan” something that wasn’t a qr code, like my face or desk 😂. The red tracking box would appear in the same place. It would only happen 1 in maybe 10 scans, and the decoded string would be the same as the scan. Disabling tracking has fixed this, probably due to the lower scans per second.