[Qt-interest] Qt 4.7.1 & Mac :: Cocoa widgets seem to be leaking ram (bug - reported)

John Porter john.porter79 at yahoo.com
Thu Jan 6 21:21:26 CET 2011


http://bugreports.qt.nokia.com/browse/QTBUG-16488

How to recreate:

Open the sample Qt file located at:
Qt/Demos/MacMainWindow/
Build (from x-code)
Run app.
Quit app.
Look at the Debugger console and you should see error code such as this:
2011-01-06 12:09:30.552 macmainwindow[16550:a0f] *** __NSAutoreleaseNoPool(): 
Object 0xf33e70 of class NSImage autoreleased with no pool in place - just 
leaking
2011-01-06 12:09:30.554 macmainwindow[16550:a0f] *** __NSAutoreleaseNoPool(): 
Object 0xf33e70 of class NSImage autoreleased with no pool in place - just 
leaking
2011-01-06 12:09:30.555 macmainwindow[16550:a0f] *** __NSAutoreleaseNoPool(): 
Object 0xf33d90 of class QCocoaMenu autoreleased with no pool in place - just 
leaking
2011-01-06 12:09:30.556 macmainwindow[16550:a0f] *** __NSAutoreleaseNoPool(): 
Object 0xa05186ac of class NSCFString autoreleased with no pool in place - just 
leaking
2011-01-06 12:09:30.558 macmainwindow[16550:a0f] *** __NSAutoreleaseNoPool(): 
Object 0xf290a0 of class NSImage autoreleased with no pool in place - just 
leaking
2011-01-06 12:09:30.558 macmainwindow[16550:a0f] *** __NSAutoreleaseNoPool(): 
Object 0xf2b170 of class NSImage autoreleased with no pool in place - just 
leaking
2011-01-06 12:09:30.559 macmainwindow[16550:a0f] *** __NSAutoreleaseNoPool(): 
Object 0xf2d460 of class NSCFString autoreleased with no pool in place - just 
leaking
2011-01-06 12:09:30.559 macmainwindow[16550:a0f] *** __NSAutoreleaseNoPool(): 
Object 0xf29d30 of class NSCFString autoreleased with no pool in place - just 
leaking
2011-01-06 12:09:30.560 macmainwindow[16550:a0f] *** __NSAutoreleaseNoPool(): 
Object 0xa050332c of class NSCFString autoreleased with no pool in place - just 
leaking
I have narrowed this down to the search bar (which is a Cocoa search field).
If you comment this code out, the errors go away.
Even though this affects a sample project, I am unable to use the search field 
code in my own apps due to this Cocoa leak.
Bottom line, the current implementation of the cocoa search bar in Qt/mac (cocoa 
4.7.1) leaks memory.


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110106/2a8b9bee/attachment.html 


More information about the Qt-interest-old mailing list