Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm developing a 2d survival shooter using Box2d extension and I've got some questions:

  1. I have two AnalogOnScreenControls. Their listeners modify both sprites and bodies. I receive TouchEventPool was exhausted and as their number grows the game crashes accidently. I've tried to put the modification of the bodies and sprites on the UpdateThread but that does not solve the problem. What could be the cause?
  2. I have a class that at the beginnig of the game loads all the textures. After I relaunch the game activity several times I receive Unable to find Phys Addr for and "green color" interface. But that doesn't happen if I clear the memory manually through the Task Manager before relaunch What could be the cause? I unload my atlas at the end of the game.
  3. The game sometimes crashes at start with NullPointerException in onResumeGame. The solution suggested is to set android:configChanges="orientation|screenSize" but my device is API 10 so it doesn't have screenSize property and orientation only does not seem to help, because the game starts in portrait mode at times (though landscape is set in the code)
share|improve this question
    
Hi , How did you solved this issue ,I am facing similar one now,, please help... –  Renjith K N Dec 16 '12 at 17:29
    
It seems that these kind of problems depend on the device you use, so there is no actully programmatical solution... –  OneMoreVladimir Dec 23 '12 at 7:57

1 Answer 1

up vote 2 down vote accepted
  1. TouchEventPool was exhausted this is perfectly normal, don't worry about it. AndEngine allocates touch events when needed. This should not happen all the time though. Make sure you are not "saving" the events into some array or something like that.

  2. You probably load your textures over and over again. It's impossible to tell, but I guess your activity is not destroyed (e.g. when you press home) and when you relaunch the game, textures are loaded again.

  3. This is probably a bug in your code :)

share|improve this answer
    
'Slightly' later than expected :D, but still great thanks! –  OneMoreVladimir Jun 22 '13 at 8:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.