Wrong getFontManager() call in BaseGameActivity?

  ... in the unlikely case you discovered a bug, post it here.

Wrong getFontManager() call in BaseGameActivity?

Postby adamp » Fri Aug 19, 2011 4:40 pm

After 2 days I finally got all the source codes together and was able to compile a running version of the AndEngineExamples. Even the physics examples work now! But some errors remain.

One of that is the EaseFunctions demo, which ends with a crash and this error description:

08-19 13:40:10.107: ERROR/AndroidRuntime(606): FATAL EXCEPTION: main
08-19 13:40:10.107: ERROR/AndroidRuntime(606): java.lang.StackOverflowError
08-19 13:40:10.107: ERROR/AndroidRuntime(606): at org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivity.java:137)
08-19 13:40:10.107: ERROR/AndroidRuntime(606): at org.anddev.andengine.ui.activity.BaseGameActivity.getFontManager(BaseGameActivity.java:137)
....


Could it be, that this line of code is wrong?

In BaseGameActivity.java: http://code.google.com/p/andengine/sour ... me=default

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.         public FontManager getFontManager() {
  2.                 return this.getFontManager();
  3.         }
  4.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


Instead it should be:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.         public FontManager getFontManager() {
  2.                 return this.mEngine.getFontManager();
  3.         }
  4.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


I changed it and now it's working...
adamp
 
Posts: 5
Joined: Fri Aug 19, 2011 10:08 am

Re: Wrong getFontManager() call in BaseGameActivity?

Postby adamp » Fri Aug 19, 2011 5:00 pm

With this fixed, also the Text examples are running without crashing with an error!

Did I mention already, that AndEngine rockzzz! :)
adamp
 
Posts: 5
Joined: Fri Aug 19, 2011 10:08 am

Re: Wrong getFontManager() call in BaseGameActivity?

Postby tszming » Tue Aug 23, 2011 6:27 am

I also hit this bug today... need to be fixed as it is quite critical.
tszming
 
Posts: 1
Joined: Tue Aug 23, 2011 6:23 am

Re: Wrong getFontManager() call in BaseGameActivity?

Postby sicklebrick » Sat Oct 22, 2011 11:33 pm

Cheers adamp, that one had me properly stumped.

Without trying sound mean here... I'm a AE noob, and wondering why this hasn't been fixed in over a month?
Are updates normally quite regular?
sicklebrick
 
Posts: 1
Joined: Sat Oct 22, 2011 11:29 pm

Re: Wrong getFontManager() call in BaseGameActivity?

Postby feiyunruyue » Sun Oct 23, 2011 12:17 pm

It should be "this.mEngine.getTextureManager()", I think.
feiyunruyue
 
Posts: 6
Joined: Sat Oct 15, 2011 2:39 pm

Re: Wrong getFontManager() call in BaseGameActivity?

Postby Jong » Mon Oct 24, 2011 10:02 pm

Was just about to post it now, then noticed this thread.

@Above, nope it should be
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. this.mEngine.getFontManager()
Parsed in 0.034 seconds, using GeSHi 1.0.8.4

Anyway its working for me now.
Jong
 
Posts: 49
Joined: Sat Sep 03, 2011 10:46 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 3 guests