#πŸ”’ Bug in Memory Managamenet Python 3.9 dan Python 3.12

4 messages Β· Page 1 of 1 (latest)

wise otter
#

Hello, sorry to disturb your time.

I found a bug, I'm currently working on a project using kivy and Python. I tried running kivy and I looked at the memory management, when I ran kivy using Python version 3.9, the memory when adding the wiget increased to around 400 Mb, then I cleared the widget and I added the widget again the memory remained at 400 Mb, it could be said that python/ Kivy here saves the object reference so that there is no increase in memory size when clearing and adding the widget again.

Then I tried running kivy with Python version 3.12, I added widgets until the memory size became 400 Mb, then I cleared the widget and I added more, the memory increased to around 600 Mb, unlike Python 3.9 where the memory remained at 400 Mb.

So I want to ask, why is memory management different in Python 3.12 and Python 3.9? or is there another reason please help explain this bug that I found. Thank You

jaunty kilnBOT
#

@wise otter

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

jaunty kilnBOT
#

@wise otter

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.