Re: Memory Leaks in OpenGL Implementation
Re: Memory Leaks in OpenGL Implementation
- Subject: Re: Memory Leaks in OpenGL Implementation
- From: Alexander Küken <email@hidden>
- Date: Tue, 7 Feb 2006 17:17:09 +0100
With my actual project i get this:
Process 8386: 11168 nodes malloced for 1406 KB
Process 8386: 10 leaks for 160 total leaked bytes.
Leak: 0x0051aa10 size=16
0x00000001 0x00516980 0x97beb8d4 0x00000000 .....Qi.........
Call stack: [thread 1fb3]: | 0x0 | start | _start | main | glutInit
| +[NSApplication sharedApplication] | -[GLUTApplication init] | -
[NSApplication setDelegate:] | -[NSNotificationCenter
(NSNotificationCenterAppKitExtensions)
_addObserver:notificationNamesAndSelectorNames:object:onlyIfSelectorIsIm
plemented:] | -[NSNotificationCenter
addObserver:selector:name:object:] | _nsnoteinfo_new
Leak: 0x0051a9d0 size=16
0x00000001 0x00516980 0x97beb8e8 0x00000000 .....Qi.........
Call stack: [thread 1fb3]: | 0x0 | start | _start | main | glutInit
| +[NSApplication sharedApplication] | -[GLUTApplication init] | -
[NSApplication setDelegate:] | -[NSNotificationCenter
(NSNotificationCenterAppKitExtensions)
_addObserver:notificationNamesAndSelectorNames:object:onlyIfSelectorIsIm
plemented:] | -[NSNotificationCenter
addObserver:selector:name:object:] | _nsnoteinfo_new
Leak: 0x0051a860 size=16
0x00000001 0x00516980 0x97beb8b8 0x00000000 .....Qi.........
Call stack: [thread 1fb3]: | 0x0 | start | _start | main | glutInit
| +[NSApplication sharedApplication] | -[GLUTApplication init] | -
[NSApplication setDelegate:] | -[NSNotificationCenter
(NSNotificationCenterAppKitExtensions)
_addObserver:notificationNamesAndSelectorNames:object:onlyIfSelectorIsIm
plemented:] | -[NSNotificationCenter
addObserver:selector:name:object:] | _nsnoteinfo_new
Leak: 0x0052e7a0 size=16
0x00000001 0xa36c92f4 0x90a3a548 0x00000004 .....l.....H....
Call stack: [thread bfffec0f]: | 0x0 | start | _start | main |
glutCreateWindow | __glutCreateWindow | -[GLUTWindow
initWithContentRect:pixelFormat:windowID:gameMode:fullscreenStereo:treat
AsSingle:] | -[GLUTWindow
_initWithContentRect:styleMask:contentView:] | -[NSWindow
initWithContentRect:styleMask:backing:defer:] | -[NSWindow
_initContent:styleMask:backing:defer:contentView:] | -[NSWindow
frameRectForContentRect:styleMask:] | +[NSWindow
frameRectForContentRect:styleMask:] | objc_msgSend_stret |
_class_lookupMethodAndLoadCache | class_initialize | class_initialize
| class_initialize | -[NSNotificationCenter
addObserver:selector:name:object:] | _nsnoteinfo_new
Leak: 0x005268f0 size=16
0x00000001 0xa36cadc4 0x909fc364 0x00000000 .....l.....d....
Call stack: [thread 1fb3]: | 0x0 | start | _start | main | glutInit
| +[NSBundle(NSNibLoading) loadNibNamed:owner:] | +[NSBundle
(NSNibLoading) loadNibFile:externalNameTable:withZone:] | +[NSBundle
(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] |
old_loadNib | -[NSIBObjectData
nibInstantiateWithOwner:topLevelObjects:] | -[NSSet
makeObjectsPerformSelector:] | -[NSMenu _finishedMakingConnections] |
-[NSMenu _setMenuName:] | -[NSApplication setMainMenu:] |
objc_msgSend | _class_lookupMethodAndLoadCache | class_initialize |
class_initialize | -[NSNotificationCenter
addObserver:selector:name:object:] | _nsnoteinfo_new
Leak: 0x00525750 size=16
0x00000001 0x00530020 0x90a375dc 0x00000000 .....S. ..u.....
Call stack: [thread 1fb3]: | 0x0 | start | _start | main |
glutCreateWindow | __glutCreateWindow | -[GLUTWindow
initWithContentRect:pixelFormat:windowID:gameMode:fullscreenStereo:treat
AsSingle:] | -[GLUTWindow
_initWithContentRect:styleMask:contentView:] | -[NSWindow
initWithContentRect:styleMask:backing:defer:] | -[NSWindow
_initContent:styleMask:backing:defer:contentView:] | -[NSWindow
_commonInitFrame:styleMask:backing:defer:] | -[NSThemeFrame
initWithFrame:styleMask:owner:] | -[NSTitledFrame
initWithFrame:styleMask:owner:] | -[NSFrameView
initWithFrame:styleMask:owner:] | -[NSNotificationCenter
addObserver:selector:name:object:] | _nsnoteinfo_new
Leak: 0x00538f20 size=16
0x00000001 0x005542e0 0x90a01de4 0x00010001 .....UB.........
Call stack: [thread 1fb3]: | 0x0 | start | _start | main |
glutCreateWindow | __glutCreateWindow | -[GLUTView lockFocus] | -
[NSOpenGLContext setView:] | -[NSSurface initWithView:] | -[NSSurface
setView:] | -[NSSurface setWindow:] | -[NSNotificationCenter
addObserver:selector:name:object:] | _nsnoteinfo_new
Leak: 0x00548fb0 size=16
0x00000001 0x00525040 0x909f7c2c 0x00010001 .....RP@..|,....
Call stack: [thread 1fb3]: | 0x0 | start | _start | main |
glutCreateWindow | __glutCreateWindow | -[GLUTWindow
initWithContentRect:pixelFormat:windowID:gameMode:fullscreenStereo:treat
AsSingle:] | -[GLUTWindow
_initWithContentRect:styleMask:contentView:] | -[NSWindow
initWithContentRect:styleMask:backing:defer:] | -[NSWindow
_initContent:styleMask:backing:defer:contentView:] | -
[NSNotificationCenter addObserver:selector:name:object:] |
_nsnoteinfo_new
Leak: 0x00555390 size=16
0x00000001 0xa36c8454 0x90a15208 0x01785000 .....l.T..R..xP.
Call stack: [thread 1fb3]: | 0x0 | start | _start | main |
glutMainLoop | -[GLUTApplication run] | -[NSApplication
finishLaunching] | _NSAccessibilityInit | -[NSNotificationCenter
addObserver:selector:name:object:] | _nsnoteinfo_new
Looking at the content, the instances are different.
With another programm i got this:
Leak: 0x0050f500 size=32
0x000186a0 0x00000000 0x000186b4
0x000186ac ................
0x00000000 0x00000000 0x02812a00
0x00000002 ..........*.....
Call stack: [thread 1eff]: | 0xbffff664 | start | _start |
main | initializeDisplayLists | renderWheel | gluNewQuadricCTX
Leak: 0x00516190 size=16
0x00000001 0x0050e580 0x909dd6a8
0x00081000 .....P..........
Call stack: [thread 1eff]: | 0xbffff664 | start | _start |
main | glutInit | +[NSApplication sharedApplication] | -
[GLUTApplication init] | -[NSApplication init] | -
[NSDistributedNotificationCenter
addObserver:selector:name:object:suspensionBehavior:] | _nsnoteinfo_new
Leak: 0x0050a580 size=16
0x00000001 0x00000000 0x907d3924 0x00000000 .........}9
$....
Call stack: [thread bfffec0f]: | 0xbffff664 | start | _start
| main | glutInit | __glutSetForeground | GetCurrentProcess |
INIT_Processes | RegisterProcess | _CGSDefaultConnection |
CGSInitialize | pthread_once | cgsInit | initCGDisplayMappings |
initCGDisplayState | CGSScoreboard | CGSServerPort |
CFBundleGetValueForInfoDictionaryKey | CFBundleGetLocalInfoDictionary
| CFBundleCopyResourceURL | _CFBundleGetLanguageSearchList |
_CFBundleAddPreferredLprojNamesInDirectory |
_CFBundleCopyUserLanguages | CFPreferencesCopyAppValue |
_CFStandardApplicationPreferences | CFNotificationCenterAddObserver |
CFAllocatorAllocate
Am 07.02.2006 um 17:08 schrieb Shawn Erickson:.
How many instances are you seeing the report leaks? It could be that
leaks is just mislabeling it as a leak.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden