Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

[Bug] large memory leak #92

Open
buck2202 opened this issue Jan 24, 2020 · 6 comments
Open

[Bug] large memory leak #92

buck2202 opened this issue Jan 24, 2020 · 6 comments
Labels

Comments

@buck2202
Copy link

Describe the bug
MixrElixr memory usage continually increases in the background, even if mixer isn't visited at all in a browser session. Have to kill the extension or restart the browser to reclaim the memory.

I very rarely completely close out my browser; after a few days, I find the extension using GB of memory when it hasn't even been active.

To Reproduce
Steps to reproduce the behavior:

  1. Install mixrelixr
  2. Start browser
  3. Wait

Expected behavior
Not leak, especially when the plugin isn't in active use.

Screenshots
Screenshot from 2020-01-24 14-24-38

Environment (please complete the following information):

  • OS: Linux Mint 19.1 5.0.0-25-generic
  • Browser: Chrome 79.0.3945.117
  • MixrElixr Version: 2.10.2

Additional context
I'm not really sure how to provide more detailed debugging information about a browser extension, but this happens repeatably on multiple PCs for me. So, if you can tell me how to get more useful information, let me know.

@buck2202 buck2202 added the bug label Jan 24, 2020
@brumoen
Copy link
Member

brumoen commented Jan 24, 2020

Elixr_MemoryFoorprint

This is from
Ubuntu 19.04 5.0.0-38
Chrome 79.0.3945.130
MixrElixr: 2.10.2

With a system uptime of 3 days and 23 hours, Chrome has, right now, been running for 3 days and 22 hours.

How many days is "a few days"?
Chrome is usually running 24/7 on my setup without seeing this issue. But I do watch some streams during the week, so I would have to run another session with just Elixr loaded up to see if the same issue crops up there.

@buck2202
Copy link
Author

buck2202 commented Jan 24, 2020

That particular browser session is about 10 days old. I have another 9-day-old session on a different PC where the current consumption is 1,387,040K--on that PC, I've visited mixer to watch a handful of VODs. If you want a more precise timeline, I can note the usage for a while after killing/restarting the extension to get a fresh start.

Might also be useful to note that I only really use the extension to get access to theater mode and I'm not logged into a mixer account. Dunno there's some initialization check for an active account that might be leaking that you wouldn't see in your usage?

edit: just a quick observation--watching the chrome task manager with no active mixer tabs, I see a small network usage from mixrelixr every ~15s. Memory usage increases every 45s

@buck2202
Copy link
Author

I killed/restarted mixrelixr and have watched the memory usage for a while. I'm at about 350000K after 40 hours.

image

@buck2202
Copy link
Author

The leak has stayed linear for a number of days now, and the pattern of increased memory every ~45s continues. The "few days" to reach a gig seems to be about 5.

image

If there's something I can provide to help debugging, let me know.

@SReject
Copy link

SReject commented Jan 30, 2020

  • Are you sure its every 45s, or could it be every ~15s?
  • Are you continuously leaving a tab to mixer.com open or does your mem usage increase with all tabs to mixer.com closed

Just to be clear, we are looking into this but are not having luck in reproducing the issue.

@buck2202
Copy link
Author

In the chrome task manager, I do see network usage from the extension every ~15s. When I was watching it before, the memory footprint would increase consistently with every third network pulse, so every 45s. For whatever reason, it's not consistent as I'm watching it now. Once it took 1m30s to increase, then the next cycle 2m. It could be that I didn't watch it long enough last time before concluding there was a pattern, or maybe it's behaving differently now; sorry, I'm not sure. The memory increase does always occur coincident with a network pulse, but it doesn't happen with every network pulse.

This doesn't seem to be impacted by there being mixer tabs open or not. On the PC I was posting usage from above, I don't think there was a mixer tab open at any point during the ~5 days.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants