question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Memory Leak with Safari

See original GitHub issue

Hi,

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:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gruhncommented, May 2, 2019

Closing this due to inactivity. Please reopen if the issue persists.

1reaction
bradley-varolcommented, Dec 13, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to reduce Safari memory usage
Open a Finder Window, select Applications> Utilities> Activity Monitor. · Select the Memory tab from the top. · Press the Memory column to...
Read more >
Safari is taking too much memory | Apple Developer Forums
Everything starts fine, but there must be a memory leak somewhere. Just after a few minutes, even with no activity in the browser...
Read more >
Safari memory leak?
I noticed with just one tab open to MacRumors.com, Safari was seriously lagging / beach balling. It turns out it was using over...
Read more >
Safari memory leak on M1 MacBook Air? : r/MacOS
A memory leak is an issue where the application isn't capable of cleaning up memory during runtime, which is often caused by reference...
Read more >
Monterey's memory leak and how to avoid it
The leak appears to occur when the pointer type changes, for example from a standard arrow to an I-beam for the insertion of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found