You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you connect to a voice channel it creates 9 threads that are never cleaned up.
Steps to Reproduce
Connect to a voice channel
Disconnect
Measure the ammount of threads
Repeat
TheIgloo has confirmed he is able to reproduce this
...
Expected behavior: When disconnecting from a voice channel the connection's threads are cleaned up.
Actual behavior: The threads are never cleaned up, not even when calling the Garbage Collector.
Stacktrace (if applicable): [PASTEBIN or HASTEBIN link to the stacktrace]
I made a bot to test this. It is a blank bot that simply connects to a voiceChannel, disconnects, and measures the amount of threads present 10 x, then measures the amount of threads every 15 seconds.
Here is the output: http://hastebin.com/ogixonadet.py Version affected: Current Dev build
Additional Information
TheIgloo tested this as well and he found the same thing. I have also looked at the threads with VisualVM and they are infact at the levels that are being output.
The text was updated successfully, but these errors were encountered:
robot-rover
changed the title
Connecting to Voice Channel Creates permanently running Threads
Connecting to Voice Channel Creates Memory Leaks
Sep 13, 2016
I am pretty sure this is not fixed. After seeing thousands of threads on FlareBot I ran the same test. It quickly went over 500 threads. Here's that threaddump http://hastebin.com/miwaxuqona.pl
Prerequisites
already
Description
When you connect to a voice channel it creates 9 threads that are never cleaned up.
Steps to Reproduce
TheIgloo has confirmed he is able to reproduce this
...
Expected behavior: When disconnecting from a voice channel the connection's threads are cleaned up.
Actual behavior: The threads are never cleaned up, not even when calling the Garbage Collector.
Stacktrace (if applicable): [PASTEBIN or HASTEBIN link to the stacktrace]
I made a bot to test this. It is a blank bot that simply connects to a voiceChannel, disconnects, and measures the amount of threads present 10 x, then measures the amount of threads every 15 seconds.
Here is the output: http://hastebin.com/ogixonadet.py
Version affected: Current Dev build
Additional Information
TheIgloo tested this as well and he found the same thing. I have also looked at the threads with VisualVM and they are infact at the levels that are being output.
The text was updated successfully, but these errors were encountered: