Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by Crazydadz · May 07, 2013 at 09:43 PM · iosmemorystorekit

Memory leaks on ios

Hi guys,

i'm currently working on my first ios game. I'm doing some memory leak test with xcode and it seems that Prime31 Storekit and RevMob for unity is creating a bunch of memory leaks. I don't want my app to have leaks and i don't know what i can do to avoid them. (I'm a beginner in Objective-C so that is why i'm using plugin, but I understand reference counting)

Also, even with an empty unity project, there's always a 16 bytes leak at startup : IphoneNewLabelAllocator:Allocate. I'm working with unity 3.5.

Is it normal to have a bunch of leaks because of unity, prime31 store kit or revmob?

P.S. I tested revmob alone and prime31 storekit alone and there's a bunch of memory leaks. Unfornately it would have be easier to resolve it if the leaks was due to my game coding.

(Sorry for my bad english! xD)

Thanks in advance!

EDIT: Ok the leaks doesn't come from plugins. I found that each time Unity/Mono send a message to Xcode(so the objective-c) there's a leak: mono_dl_open 16 bytes.

So my question now is how do i avoid that? Is it possible?

Comment
Add comment · Show 8
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Loius · May 07, 2013 at 10:42 PM 1
Share

bad english? where? your english is amazing!

avatar image Graham-Dunnett ♦♦ · May 08, 2013 at 08:12 PM 0
Share

$$anonymous$$ono will not be talking to xcode in your shipping title, so I don't think that this is a problem. If it is a problem, then how many memory leaks of 16 bytes do you get a second? How long will it be before these leaks create any kind of problem? (Note, I have helped probably over 100 $$anonymous$$ms ship iOS games and I have yet to see a memory leak of any real significance.)

avatar image Crazydadz · May 08, 2013 at 08:59 PM 0
Share

Im only getting leaks when i initialize revmob and in-app purchase. And each time i show an ad and also when user request a purchase. So the leaks isnt happening while playing. Its happening only on startup and each time user purchase items. What do you mean by the mono isnt talking to xcode(objective-c) on release build? How does unity communicate with the storekit for example? I don't know if i'm checking leaks the right way. After building the game, i open an xcode instrument and choose my game as target. Should i use play in profile ins$$anonymous$$d than in build inside xcode?

avatar image Crazydadz · May 08, 2013 at 09:06 PM 0
Share

In fact, does apple will reject my game if theres some leaks that isnt growing each second but only when i call some methods from my script inside unity for the ads and in-app purchase?

So many questions my bad!

avatar image Graham-Dunnett ♦♦ · May 09, 2013 at 01:56 PM 1
Share

You said that the alleged leak happens when Unity/$$anonymous$$ono talk to XCode. When you make your final game and upload to Apple servers there is no XCode for the game to talk to. I don't think Apple will apply memory leak tests and refuse to publish your game. I'd sooner put money on XCode not knowing enough about how the plugins and Unity and XCode talk, and gives you a false positive. If the game crashes out of memory after playing for 3 $$anonymous$$utes then you have a problem. If it plays for 24 hours without crashing then is a memory leak a problem? Why's the forum and Answers not full of people complaining about memory leaks?

Show more comments

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Memory Allocation Continues to Grow? iOS. 4.6.3 0 Answers

iOS VideoPlayer doesn't unload temp RenderTexture in 2019 0 Answers

iOS app's storage usage (app's size after installation) 0 Answers

"stream from disc" WAV/AIFF file allocates tons of memory 0 Answers

Phone App(not game) : should I load UI panels as assets or load it as new scene? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges