com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: traps.png

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by Thimoteus
, 1 year ago
Couldn't load file: traps.png
via badlogicgames.com by Unknown author, 2 years ago
via Stack Overflow by gogibogi4
, 1 year ago
Couldn't load file: badlogic.jpg
via nerddaygames.com by Unknown author, 2 years ago
Couldn’t load file: badlogic.jpg
via GitHub by dhpinfotech
, 2 years ago
via Stack Overflow by VVahla
, 2 years ago
Couldn't load file: img/hud.png
com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: traps.png
at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:136)
at com.badlogic.gdx.files.FileHandle.readBytes(FileHandle.java:222)
at com.badlogic.gdx.graphics.Pixmap.(Pixmap.java:137)
at com.badlogic.gdx.graphics.glutils.FileTextureData.prepare(FileTextureData.java:64)
at com.badlogic.gdx.graphics.Texture.load(Texture.java:130)
at com.badlogic.gdx.graphics.Texture.(Texture.java:121)
at com.badlogic.gdx.graphics.Texture.(Texture.java:100)
at com.badlogic.gdx.graphics.Texture.(Texture.java:92)
at com.watabou.gdx.GdxTexture.(GdxTexture.java:10)
at com.watabou.gltextures.TextureCache.getBitmap(TextureCache.java:100)
at com.watabou.gltextures.TextureCache.get(TextureCache.java:68)
at com.watabou.noosa.Image.texture(Image.java:64)
at com.watabou.noosa.Image.(Image.java:55)
at com.shatteredpixel.shatteredpixeldungeon.sprites.TrapSprite.(TrapSprite.java:18)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:379)
at com.watabou.noosa.Group.recycle(Group.java:158)
at com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene.addTrapSprite(GameScene.java:478)
at com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene.create(GameScene.java:173)
at com.watabou.noosa.Game.switchScene(Game.java:222)
at com.watabou.noosa.Game.step(Game.java:201)
at com.watabou.noosa.Game.render(Game.java:137)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:207)

Users with the same issue

4 times, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.