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
=> View python tag | View qt6 tag | View memoryleak tag | View debugging tag This content has been proxied by September (ba2dc).Proxy Information
text/gemini