Jaaspioon / andengine

Automatically exported from code.google.com/p/andengine
0 stars 0 forks source link

Stack overflow in BaseGameActivity.getFontManager() #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run the andengine examples
2. select Text
3. select Using a StrokeFont

What is the expected output? What do you see instead?
Expected output: Not a FC.  But I see a FC.

What version of the product are you using? On what operating system?
Latest stuff out of the hg repos.  Just pulled it at 8:00 PM EST on 31 Aug 2011.

Please provide any additional information below.
Easy fix: There's a stack overflow due to an infinite loop in 
BaseGameActivity.java line 137.  The original code is:

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

The desired code is:

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

Making the change will fix the AndEngine example.

Original issue reported on code.google.com by mfs...@gmail.com on 1 Sep 2011 at 12:53

GoogleCodeExporter commented 8 years ago
Sorry, I should have read the previous issues.  This is a repeat.

Original comment by mfs...@gmail.com on 1 Sep 2011 at 12:54