我做了一个游戏,它可以正常运行,但有时它会抛出错误 我不知道为什么,我需要帮助~~~~~~~~
以下是错误消息:
Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: data/font/fzkt.png
at com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:140)
at com.badlogic.gdx.graphics.glutils.FileTextureData.prepare(FileTextureData.java:64)
at com.badlogic.gdx.graphics.Texture.load(Texture.java:142)
at com.badlogic.gdx.graphics.Texture.<init>(Texture.java:133)
at com.badlogic.gdx.graphics.Texture.<init>(Texture.java:112)
at com.badlogic.gdx.graphics.Texture.<init>(Texture.java:108)
at com.badlogic.gdx.graphics.g2d.BitmapFont.<init>(BitmapFont.java:135)
at com.badlogic.gdx.graphics.g2d.BitmapFont.<init>(BitmapFont.java:127)
at com.thtb.game.zy.Utils.getFont(Utils.java:167)
at com.thtb.game.zy.actor.ygz.TakedInfo.<init>(TakedInfo.java:53)
at com.thtb.game.zy.screen.ChengScreen.show(ChengScreen.java:53)
at com.badlogic.gdx.Game.setScreen(Game.java:62)
at com.thtb.game.zy.ZyGame.setScreen(ZyGame.java:176)
at com.thtb.game.zy.listener.CommandClickListener$5.clicked(CommandClickListener.java:503)
at com.badlogic.gdx.scenes.scene2d.utils.ClickListener.touchUp(ClickListener.java:84)
at com.badlogic.gdx.scenes.scene2d.InputListener.handle(InputListener.java:57)
at com.badlogic.gdx.scenes.scene2d.Stage.touchUp(Stage.java:343)
at com.badlogic.gdx.InputMultiplexer.touchUp(InputMultiplexer.java:94)
at com.badlogic.gdx.backends.lwjgl.LwjglInput.processEvents(LwjglInput.java:303)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:200)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:114)
Caused by: java.io.IOException: couldn't load pixmap outofmem
at com.badlogic.gdx.graphics.g2d.Gdx2DPixmap.<init>(Gdx2DPixmap.java:57)
at com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:138)
... 20 more