Stream-Viewer-Chat-Bot icon indicating copy to clipboard operation
Stream-Viewer-Chat-Bot copied to clipboard

Possible Memory Leak

Open mustafacagataytulun opened this issue 2 years ago • 0 comments

Describe the bug The used RAM by StreamViewerBot process dramatically increases over time. It starts normally 300-400 MB. After starting around 10 bots, again, no problem. However, after some time, RAM usage starts to increase. It is more noticeable after a couple of hours.

To Reproduce Steps to reproduce the behavior:

  1. Start program as usual.
  2. Start 10-15 bots non-Headless to watch any live stream on Twitch.
  3. Open Task Manager.
  4. See that RAM usage by StreamViewerBot process is about 300-500 MB on Task Manager.
  5. Wait a couple of hours (Even before 1 hour, you will notice the increase of RAM usage).
  6. See that RAM usage is increased.

Screenshots Bot settings

Task Manager

Desktop (please complete the following information):

  • OS: Windows 10
  • Chrome Version 103.0.5060.114 (Official Build) (64-bit)
  • Bot Version 3.0.2
  • Twitch stream service

Additional context Note that it is only for StreamViewerBot process. Usage of Chrome processes can be seen separately on Task Manager normally, each eating about 300-400 MB.

Additional note: It may be related to #175 as we can see that RAM usage has been increased there also. Some kind of memory pressure could cause that unexpected behavior.

P.S. I could debug this. However, I cannot build the application on my machine right now as there is no development branch I can see, and BotCore is deleted, so I cannot build the project even on main branch.

mustafacagataytulun avatar Jul 17 '22 20:07 mustafacagataytulun