[ wxwindows-Bugs-1722284 ] [wxMac 2.8.4] NSAutoReleaseNoPool memory
leaks
SourceForge.net
noreply at sourceforge.net
Thu Feb 28 18:32:53 PST 2008
Bugs item #1722284, was opened at 2007-05-20 19:38
Message generated for change (Comment added) made by auria
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1722284&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Marianne Gagnon (auria)
Assigned to: Nobody/Anonymous (nobody)
Summary: [wxMac 2.8.4] NSAutoReleaseNoPool memory leaks
Initial Comment:
Seems like more calls need to be surrounded with NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; and [pool release]; or similar
here is the tarces got from a debugger
#0 0x92a27bac in _NSAutoreleaseNoPool
#1 0x929394c0 in -[NSObject autorelease]
#2 0x93900858 in -[NSCarbonWindow initWithCarbonWindowRef:takingOwnership:disableOrdering:]
#3 0x937bc544 in _cocoaAppApplicationEventHandler
#4 0x93202554 in DispatchEventToHandlers
#5 0x93201cac in SendEventToEventTargetInternal
#6 0x93201b28 in SendEventToEventTargetWithOptions
#7 0x934b3a4c in SendShowHideEvent
#8 0x93234640 in PostUpdateWindowVisibility
#9 0x9321cb40 in _ShowHideWindows
#10 0x9321ca20 in ShowHide
#11 0x9324564c in ShowWindow
#12 0x000e869c in wxTopLevelWindowMac::Show at toplevel.cpp:1343
#13 0x00010434 in AriaMaestosa::MainFrame::init at MainFrame.cpp:438
#14 0x00055510 in AriaMaestosa::wxWidgetApp::OnInit at main.cpp:76
#15 0x002e87a0 in wxAppConsole::CallOnInit at app.h:76
#16 0x00134e8c in wxEntry at init.cpp:433
#17 0x00135000 in wxEntry at init.cpp:461
#18 0x000552bc in main at main.cpp:35
#0 0x92a27bac in _NSAutoreleaseNoPool
#1 0x929394c0 in -[NSObject autorelease]
#2 0x937a83e0 in -[NSWindow close]
#3 0x939ac674 in _cocoaAppWindowCloseHandler
#4 0x93202554 in DispatchEventToHandlers
#5 0x93201cac in SendEventToEventTargetInternal
#6 0x93201b28 in SendEventToEventTargetWithOptions
#7 0x9321c7fc in WindowData::Destruct
#8 0x907bcf34 in _CFRelease
#9 0x00151294 in UMADisposeWindow at uma.cpp:425
#10 0x00316670 in wxMacDeferredWindowDeleter::~wxMacDeferredWindowDeleter at toplevel.cpp:918
#11 0x0013a224 in wxAppBase::DeletePendingObjects at vidmode.h:419
#12 0x00137b34 in wxApp::MacDoOneEvent at app.cpp:1225
#13 0x0020c510 in wxEventLoop::Dispatch at evtloop.cpp:107
#14 0x00205de8 in wxEventLoopManual::Run at evtloop.h:115
#15 0x0013a73c in wxAppBase::MainLoop at vidmode.h:308
#16 0x0013a9f0 in wxAppBase::OnRun at vidmode.h:363
#17 0x00134ee4 in wxEntry at init.cpp:449
#18 0x00135000 in wxEntry at init.cpp:461
#19 0x000552bc in main at main.cpp:35
#0 0x92a27bac in _NSAutoreleaseNoPool
#1 0x929394c0 in -[NSObject autorelease]
#2 0x9370a410 in -[NSApplication _setCurrentEvent:]
#3 0x939ac790 in _cocoaAppModalHandler
#4 0x93202554 in DispatchEventToHandlers
#5 0x93201cac in SendEventToEventTargetInternal
#6 0x93208a60 in SendEventToEventTarget
#7 0x00137984 in wxApp::MacHandleOneEvent at app.cpp:1249
#8 0x00137a94 in wxApp::MacDoOneEvent at app.cpp:1218
#9 0x0020c510 in wxEventLoop::Dispatch at evtloop.cpp:107
#10 0x00205de8 in wxEventLoopManual::Run at evtloop.h:115
#11 0x0013a73c in wxAppBase::MainLoop at vidmode.h:308
#12 0x0013a9f0 in wxAppBase::OnRun at vidmode.h:363
#13 0x00134ee4 in wxEntry at init.cpp:449
#14 0x00135000 in wxEntry at init.cpp:461
#15 0x000552bc in main at main.cpp:35
----------------------------------------------------------------------
>Comment By: Marianne Gagnon (auria)
Date: 2008-02-29 02:32
Message:
Logged In: YES
user_id=1688878
Originator: YES
I have not met this bug again with recent wx versions
----------------------------------------------------------------------
Comment By: Marianne Gagnon (auria)
Date: 2007-05-20 19:41
Message:
Logged In: YES
user_id=1688878
Originator: YES
The message looks like:
*** _NSAutoreleaseNoPool(): Object 0x25c93d0 of class
NSCarbonWindowContentView autoreleased with no pool in place - just leaking
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1722284&group_id=9863
More information about the wx-dev
mailing list