Toot

Written by MetalSnake on 2024-12-14 at 13:28

I have a very weird memory bug in python or QT6. I add a few thousand rows to a QTableWidget. That works just fine, but if I first move the window, and then add the rows it takes a long time and memory usage goes over 40gb.

And it triggers only on the Mac I'm developing on. Other Mac with the same OS version, same python version has no problem.

On the dev Mac I tried different python3 version, created a new venv, but nothing helps.

tracemalloc doesn't seem to see the huge memory usage.

Any ideas on how to find the cause of this? I'm out of ideas.

[#]python #qt6 #memoryleak #debugging

=> More informations about this toot | View the thread | More toots from MetalSnake@oldbytes.space

Mentions

Tags

=> View python tag | View qt6 tag | View memoryleak tag | View debugging tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113651409624264440
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
231.931912 milliseconds
Gemini-to-HTML Time
0.460159 milliseconds

This content has been proxied by September (ba2dc).