2

I just downloaded andengine project with examples with extensions in eclipse. Most of the examples work just fine. However, those involving physics and the games(snake,racer,pong) get a force close message on my device. in the error log I get stackOverflow error that takes me to this piece of code:

public FontManager getFontManager() {
    return this.getFontManager();
}

Did anyone have this problem before? Any help is appreciated. Thanks.

Fofole
  • 3,398
  • 8
  • 38
  • 59

2 Answers2

4

Just fix it with:

public FontManager getFontManager() {
    return this.mEngine.getFontManager();
}

This bug was reported in november on AndEngine project site. No commits since september there.

Ludevik
  • 6,954
  • 1
  • 41
  • 59
  • I posted a new question regarding another problem that occured. If you could help I'd be thankfull. – Fofole Jan 05 '12 at 09:28
3

Change return this.getFontManager(); to return this.mEngine.getFontManager();

Jong
  • 9,045
  • 3
  • 34
  • 66