It is currently 15 Dec 2018, 01:52
   
Text Size

Bug report: crash during avatar change and load

Moderators: timmermac, friarsol, Blacksmith, KrazyTheFox, Agetian, CCGHQ Admins

Bug report: crash during avatar change and load

Postby 1mrlee » 01 Jul 2018, 02:59

Description:


For some reason the ai avatar is blank.

Now it crashes everytime I try to change her avatar or load into a game.


NullPointerException | Open
Code: Select all
Forge Version:    1.6.11.001
Operating System: Linux 3.18.70-gf4f23f2 armv8l
Java Version:     0 The Android Project

java.lang.NullPointerException: Attempt to invoke virtual method 'int com.badlogic.gdx.graphics.g2d.TextureRegion.getRegionWidth()' on a null object reference
   at forge.assets.FTextureRegionImage.getWidth(FTextureRegionImage.java:17)
   at forge.toolbox.FLabel.drawContent(FLabel.java:325)
   at forge.toolbox.FLabel.drawContent(FLabel.java:319)
   at forge.toolbox.FLabel.draw(FLabel.java:301)
   at forge.Graphics.draw(Graphics.java:147)
   at forge.toolbox.FContainer.draw(FContainer.java:64)
   at forge.toolbox.FScrollPane.draw(FScrollPane.java:312)
   at forge.Graphics.draw(Graphics.java:147)
   at forge.toolbox.FContainer.draw(FContainer.java:64)
   at forge.screens.FScreen.draw(FScreen.java:164)
   at forge.Forge.render(Forge.java:321)
   at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:422)
   at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571)
   at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)
1mrlee
 
Posts: 27
Joined: 07 Oct 2015, 00:34
Has thanked: 0 time
Been thanked: 4 times

Re: Bug report: crash during avatar change and load

Postby nssantos » 23 Jul 2018, 22:51

I`m having the same problem
nssantos
 
Posts: 5
Joined: 30 Mar 2018, 18:19
Has thanked: 0 time
Been thanked: 1 time

Re: Bug report: crash during avatar change and load

Postby timmermac » 24 Jul 2018, 03:35

Make sure the avatar sprite file is in the folder for the theme you are using.
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
User avatar
timmermac
Tester
 
Posts: 1464
Joined: 17 May 2010, 20:36
Has thanked: 17 times
Been thanked: 87 times


Return to Forge

Who is online

Users browsing this forum: Google [Bot] and 14 guests


Who is online

In total there are 15 users online :: 1 registered, 0 hidden and 14 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: Google [Bot] and 14 guests

Login Form