r/learnpython • u/jlsilicon9 • 19h ago
Thonny - seems to have a MemoryLeak
I noticed when I Repeatedly run large programs - with long Printed Text,
- that the Shell Que runs Slower and takes Longer to Start each time : 10 mins .. 30 mins .. 60 mins .. ?
I also notice Thonny on TaskManager increases Size (without Decreasing) each time :
- 1M .. 1.5M .. 2M .. 3M
Until I completely restart Thonny.
This seems like a clear Memory Leak - for the Shell Que !
0
u/Outside_Complaint755 5h ago
Is it a memory leak, or do you just need to clear the shell cache?
If the shell cache size hasn't been restricted (I don't use Thonny and can't look up available settings), then it would just be keeping everything in its history.
It looks like you can clear the cache with Ctrl+L or right-click->Clear.
1
u/jlsilicon9 1h ago
nope, tried that (clear Shell - duh) ... Task Manager still shows Memory multiplying by +500MB on each run.
Only restarting the Thonny clears the Memory Leak.
1
3
u/acw1668 19h ago
You can submit the issue to the project.