Archive for the 'Archer Master' Category

Android: Finding Memory Leaks

Recently while I was working on the next version of Archer Master, I’ve had to roll up my sleeves and find a memory leak. By and large, a memory leak in one’s application is frequently a synonym for having painful time, no matter which language you’re coding in. I have experience in finding leaks in the non-managed languages such as C/C++ but this was my very first time with a managed language (Java). In my case, the leak was caused by a lost strong-reference to a LinearLayout used to hold advertising, so each time a level was played, the entire activity remained in memory and wasn’t collected. As a result, after playing several levels (the number depended upon the particular device), a OOM exception raised and the game crashed.

It’d have been virtually impossible to find the leak without a tool like MAT. Moreover, a good understanding of the different types of references (strong, weak, soft…) and the concept of Dominator Tree  also help.

When I’ve got a little more time I’ll write about the whole process I went thru (if anyone is really interested please let me know)… but meanwhile, this is an invaluable resource if you find yourself in a similar situation and don’t know how to start:

Good luck with your leaks! 😉

_______________________________________________________________

Advertisements

Archer Master weekly report – Week #2

I’ve published  the weekly Archer Master report on Quoders website. The following chart shows downloads per day:

More?  Here.

_______________________________________________________________

Quoders and Archer Master

It’s been a long time since my last post and this time there’s a good reason for it 😉 I’ve been working hard to release the first version of Archer Master, an archery game for Android. Archer Master is free, so give it a try!

Moreover, I’ve co-founded a new development studio named Quoders.

Hopefully, this is the beginning of something great…

_______________________________________________________________


Who’s in charge here?

Follow me on Quoders Blog…



Quoders Twitter

License