AAA3A-AAA3A / AAA3A-cogs

Many cogs for Red-DiscordBot.
https://aaa3a-cogs.readthedocs.io/en/latest
Other
35 stars 28 forks source link

[GetDocs] Regular CPU spike when cog has been loaded. #55

Open madebylydia opened 4 months ago

madebylydia commented 4 months ago

What cog is this bug report for?

GetDocs

Describe the bug

The cog GetDocs has an alarming CPU spike usage when loaded.

The following is a representation of the bot's process when the cog is loaded

Process's usage **with** cog ![image](https://github.com/AAA3A-AAA3A/AAA3A-cogs/assets/61093863/de20bf1f-cfb0-4c66-b913-d9c0d029630c) ![image](https://github.com/AAA3A-AAA3A/AAA3A-cogs/assets/61093863/9ba12e4a-c1fa-4a7a-b7b9-20f38f8f4f4e)
Process's usage **without ** cog ![image](https://github.com/AAA3A-AAA3A/AAA3A-cogs/assets/61093863/51785aa8-fc26-4bc5-982b-753acfbdb7e7)

This is extremely abnormal and should be fixed, considering the process usage can spike up to 100%.

Worse, those spikes are persisting across cog's unloading and uninstallation. Restarting the bot fix the problem.

I confirm having realized enough research to conclude that the cog GetDocs is the problematic cog, and no other cogs are entering in conflict.

If there's an error, paste it here

No response