Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-26-2009, 05:37 AM   #1 (permalink)
Divine avenger
 
Johanovski's Avatar
 
Join Date: Nov 2009
Location: Vic, Catalunya (Spain)
Posts: 320
Default Do anyone know what this memory leaks are?

Hi there!

I'm working with Instruments on my app, seeking leaks, object allocations, etc and, after cleaning my own leaks, I still found some which are not mine. I'm not sure if they are real leaks or just an Instruments error because I don't know where they came from but I'm sure they don't came from my own code, so it's strange... I found 2 types of leaks:

************************************************** **********
Leaked Object: GeneralBlock-16
#: 14
Address: < multiple > --> Example: 0x258de0
Size: 224 Bytes (16 Bytes each one)
Responsible Library: GraphicsServices
Responsible Frame: PurplePushEvent

Leaked Object: GSEvent
#: 6
Address: <multiple > --> Example: 0x258d60
Size: 768 Bytes (128 Bytes each one)
Responsible Library: GraphicsServices
Responsible Frame: CreateWithEventRecord
************************************************** **********

Does anyone know what can be happening? What can I do to solve this leaks? Are them a real problem or just a minor issue?

Thanks in advance for your help!
Johanovski is offline   Reply With Quote
Old 11-26-2009, 06:02 AM   #2 (permalink)
Registered Member
 
Join Date: Oct 2009
Location: Belfast, Northern Ireland
Posts: 36
Send a message via AIM to materialised Send a message via MSN to materialised Send a message via Yahoo to materialised
Default

Quote:
Originally Posted by Johanovski View Post
Hi there!

I'm working with Instruments on my app, seeking leaks, object allocations, etc and, after cleaning my own leaks, I still found some which are not mine. I'm not sure if they are real leaks or just an Instruments error because I don't know where they came from but I'm sure they don't came from my own code, so it's strange... I found 2 types of leaks:

************************************************** **********
Leaked Object: GeneralBlock-16
#: 14
Address: < multiple > --> Example: 0x258de0
Size: 224 Bytes (16 Bytes each one)
Responsible Library: GraphicsServices
Responsible Frame: PurplePushEvent

Leaked Object: GSEvent
#: 6
Address: <multiple > --> Example: 0x258d60
Size: 768 Bytes (128 Bytes each one)
Responsible Library: GraphicsServices
Responsible Frame: CreateWithEventRecord
************************************************** **********

Does anyone know what can be happening? What can I do to solve this leaks? Are them a real problem or just a minor issue?

Thanks in advance for your help!
Are you testing on the device and not the simulator? Memory usage on the device is different to the simulator.
materialised is offline   Reply With Quote
Old 11-26-2009, 06:14 AM   #3 (permalink)
Divine avenger
 
Johanovski's Avatar
 
Join Date: Nov 2009
Location: Vic, Catalunya (Spain)
Posts: 320
Default

I'm testing on the device with 3.0 OS, no problems in the simulator... I don't know what to do because these leaks have no sense for me!
Johanovski is offline   Reply With Quote
Old 04-21-2010, 12:56 PM   #4 (permalink)
Registered Member
 
finefin's Avatar
 
Join Date: Jun 2009
Posts: 259
Default

This post is quite old. But... because I recently had the same problem and this thread appears on 3rd place on google I will answer it here:

What I found out is that the rising GSEvent-memory allocations are caused by the accelerator in conjunction with an enabled NSZombie variable.

The solution is to kill the NSZombie!
(you should do that before releasing the app, anyway)

hope that helps.
__________________

I help you, you buy my app - you help me, I buy your app

PARALLAX, The Book Of Sayings - chopped up edition! (HD),omicron,
Canupa Band deluxe (universal), Canupa Band FREE!, Your Face --- follow me on twitter
finefin is offline   Reply With Quote
Old 06-01-2010, 07:12 AM   #5 (permalink)
krishnan
 
krish's Avatar
 
Join Date: Sep 2009
Location: Chennai
Posts: 38
Send a message via Yahoo to krish
Default

Quote:
Originally Posted by finefin View Post
This post is quite old. But... because I recently had the same problem and this thread appears on 3rd place on google I will answer it here:

What I found out is that the rising GSEvent-memory allocations are caused by the accelerator in conjunction with an enabled NSZombie variable.

The solution is to kill the NSZombie!
(you should do that before releasing the app, anyway)

hope that helps.
How can I achieve that? Please help me.
krish is offline   Reply With Quote
Old 06-04-2010, 08:19 AM   #6 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 4
Default

I've the same issue, disabled NSAutoreleaseFreedObjectCheckEnabled, NSZombieEnabled and NSDebugEnabled and leaks disappeared.
plug-in is offline   Reply With Quote
Old 06-04-2010, 08:24 AM   #7 (permalink)
krishnan
 
krish's Avatar
 
Join Date: Sep 2009
Location: Chennai
Posts: 38
Send a message via Yahoo to krish
Default

Quote:
Originally Posted by plug-in View Post
I've the same issue, disabled NSAutoreleaseFreedObjectCheckEnabled, NSZombieEnabled and NSDebugEnabled and leaks disappeared.
Where did you disable it?
krish is offline   Reply With Quote
Old 06-11-2010, 04:30 AM   #8 (permalink)
Registered Member
 
finefin's Avatar
 
Join Date: Jun 2009
Posts: 259
Default

look for "Executables" in your project overview.
find your executable file and press cmd+i
click the "Arguments" tab
see if there's anything listed under "Variables to be set..."

more info: CocoaDev: NSZombieEnabled
__________________

I help you, you buy my app - you help me, I buy your app

PARALLAX, The Book Of Sayings - chopped up edition! (HD),omicron,
Canupa Band deluxe (universal), Canupa Band FREE!, Your Face --- follow me on twitter
finefin is offline   Reply With Quote
Old 06-23-2010, 09:02 AM   #9 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 4
Default

Yes, finefin is right.
Just click on "plus" in this section and type "NSZombieEnabled" and value "NO". Same for other variables.
plug-in is offline   Reply With Quote
Reply

Bookmarks

Tags
graphicsservices, gsevent, leaks, memory, memory leaks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 241
21 members and 220 guests
ADY, AragornSG, bookesp, BrianSlick, Dani77, Dattee, Dominus, dre, glenn_sayers, HemiMG, JasonR, karlam963, nobre84, Oral B, prchn4christ, Raggou, Rudy, spiderguy84, themathminister, viniciusdamone, vvenkatachallam
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,229
Posts: 380,763
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:21 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0