persists (in fact, it seems worse). Note that I'm creating a QDialog, and that
leaks when I set a parent to it or not. I'm attached a new version of the
script and the output result from my machine.
Saludos,
Nahuel Greco.
isolate.log
Description: Binary data
#!/usr/bin/python
import os, sys
objects?
Btw, if you want, I can provide ssh access to the machine where this bug
happens.
Ricardo: Maybe it will be helpful if you post your tests to the list.
Saludos,
Nahuel Greco.
#include qapplication.h
#include qmainwindow.h
#include qdialog.h
#include qevent.h
#include qfile.h
#include
On Thu, 17 Feb 2005 09:24:36 - (GMT)
Phil Thompson [EMAIL PROTECTED] wrote:
Qt 3.3.4 from Trolltech.
Ok, maybe this is a problem related to Qt 3.3.3, I will try using Qt 3.3.4.
Do you tried the previous test program with Qt 3.3.4? There where no leaks?
Saludos,
Nahuel Greco
the
problem is in other place (xlibs?)..
What distribution are you using (I mean, the one where you ran the c++ test)?
I don't think so - unless I misinterpreted the output.
If it increases, then it leaks :)
Saludos,
Nahuel Greco.
___
PyKDE mailing list
.
Saludos,
Nahuel Greco.
#include qapplication.h
#include qmainwindow.h
#include qdialog.h
#include qevent.h
#include qfile.h
#include qpushbutton.h
#include iostream
class Main : public QMainWindow {
public:
void keyPressEvent( QKeyEvent *k);
};
QApplication *app;
void presentMemData
will install Gentoo to check this on that distribution.
Saludos,
Nahuel Greco.
pyqt_leaks.tar.gz
Description: Binary data
___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
to the conclusion that this bug
seems to be only present in the PyQT version packaged for Debian (3.13). Using
the latest PyQT snapshot fixed it.
Thanks for your help.
Saludos,
Nahuel Greco
___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http
connecting their signals. This case leaks, the memory increased after
each run, and you can see in the gc debug messages that for each created form
an object of type 'weakref' remains without beign collected.
Saludos,
Nahuel Greco.
Saludos,
Nahuel Greco.
without_signal_connections.log
that in
account if you add gc debug flags). See the attached script and their logs.
Saludos,
Nahuel Greco.
using_pure_python_class.log
Description: Binary data
using_qobject_class.log
Description: Binary data
#!/usr/bin/python
from qt import *
import sys, os, gc
# Query Memory Usage
#
Saludos,
Nahuel Greco.
___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Sorry, I forgot to attach the file :) here is.
Saludos,
Nahuel Greco.
#!/usr/bin/python
import sys,os
from qt import *
def report(s):
print s
sys.stdout.flush()
def f():
pass
report(QT Version: + qVersion())
report(PYQT Version: + PYQT_VERSION_STR)
report(SIP Version
to Python objects to play nicely. The only example in PyQt is
QCustomEvent.
So, only QCustomEvent is supported? I mean, if I use QDialog instead of QObject
in the previous test, then it will leak?. I'm correct?
Saludos,
Nahuel Greco.
___
PyKDE
time)
from the main window _and_ then make sure that are deallocated?
Note, I exit from the dialogs with a done(x) triggered by a dialog
button clicked() signal.
(If somebody needs an example script in addition to this description
of the problem, please tell me and I will post it).
Saludos,
Nahuel
VmRss: 15572 Kb list.childcount(): 0
VmRss: 15720 Kb list.childcount(): 0
...
Saludos,
Nahuel Greco.
qlist_leak.py
Description: Binary data
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Note, doing:
for i in range(self.list.childCount()):
i = self.list.firstChild()
self.list.takeItem(i)
del i
instead of self.list.clear(), also leaks. Maybe a bug in SIP?
Saludos,
Nahuel Greco.
On Thu, Jun 9, 2011 at 3:35 PM, Nahuel Greco ngr...@gmail.com wrote:
Hi
,
Nahuel Greco.
On Tue, Jun 14, 2011 at 6:28 AM, Hans-Peter Jansen h...@urpla.net wrote:
On Tuesday 14 June 2011, 07:09:27 Vivek Narvekar wrote:
Hello,
I was previously using SIP 3.3 and PyQt 3.3 versions with Qt 3.0.8.
Now I am planning to migrate to QT 3.3.6-8.
This might work
16 matches
Mail list logo