RinTran / andengine

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

BaseGameActivity::getFontManager trigger a infinite loops call #47

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
public FontManager getFontManager() {
        return this.getFontManager();
                //i think it may be:
                //return this.mEngine.getFontManager();

    }

Original issue reported on code.google.com by netwan...@gmail.com on 18 Aug 2011 at 7:20

GoogleCodeExporter commented 8 years ago
Hit this problem today.. please have it fixed, this is critical.

Original comment by tszm...@gmail.com on 23 Aug 2011 at 4:21

GoogleCodeExporter commented 8 years ago
Submitted a patch anyways... its critical

Original comment by victo...@gmail.com on 24 Aug 2011 at 3:01

GoogleCodeExporter commented 8 years ago
Hit the same issue today,

08-28 01:15:19.168: ERROR/AndroidRuntime(16618): java.lang.StackOverflowError
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivit
y.java:137)
08-28 01:15:19.168: ERROR/AndroidRuntime(16618):     at 
org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(Bas

Original comment by shabe...@gmail.com on 27 Aug 2011 at 8:23

GoogleCodeExporter commented 8 years ago
this.mEngine.getFontManager() 
has worked for  me

Original comment by igo...@gmail.com on 15 Sep 2011 at 3:41

GoogleCodeExporter commented 8 years ago
this.getFontManager()has not worked for  me
this.mEngine.getFontManager() has worked for  me

Original comment by erikfabi...@gmail.com on 18 Sep 2011 at 8:15

GoogleCodeExporter commented 8 years ago
As said above method getFontManager is calling itself.
Just need to change the method to call mEngine like the other methods.

In the meantime you can call getEngine().getFontManager()

Original comment by brn...@gmail.com on 27 Nov 2011 at 4:44

Attachments: