Slick Forums

Discuss the Slick 2D Library
It is currently Wed Jun 19, 2013 10:56 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Oct 12, 2012 11:44 pm 
Offline

Joined: Fri Oct 12, 2012 10:10 pm
Posts: 1
I am getting this error and don't know what it means or how to fix it...

Fri Oct 12 18:03:02 EDT 2012 INFO:Use Java PNG Loader = true
Oct 12, 2012 6:03:02 PM Block loadTexture
SEVERE: null
java.io.IOException: Attempt to allocate a texture to big for the current hardware
at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:392)
at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:342)
at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:288)
at org.newdawn.slick.opengl.TextureLoader.getTexture(TextureLoader.java:64)
at org.newdawn.slick.opengl.TextureLoader.getTexture(TextureLoader.java:24)
at Block.loadTexture(Block.java:24)
at Block.renderTop(Block.java:43)
at Block.render(Block.java:34)
at Main.gameLoop(Main.java:109)
at Main.main(Main.java:23)

Exception in thread "main" java.lang.NullPointerException
at Block.renderTop(Block.java:44)
at Block.render(Block.java:34)
at Main.gameLoop(Main.java:109)
at Main.main(Main.java:23)


Top
 Profile  
 
PostPosted: Sat Oct 13, 2012 4:20 pm 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1190
The exception message is very clear: "Attempt to allocate a texture to big for the current hardware"

You can fix it by buying a better GPU or Laptop.

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
PostPosted: Wed Oct 24, 2012 10:32 pm 
Offline
Game Developer
User avatar

Joined: Wed Feb 17, 2010 12:24 am
Posts: 594
MatthiasM wrote:
The exception message is very clear: "Attempt to allocate a texture to big for the current hardware"

You can fix it by buying a better GPU or Laptop.


or just use a smaller texture.


Top
 Profile  
 
PostPosted: Thu Oct 25, 2012 11:13 am 
Offline
Site Admin

Joined: Mon Dec 08, 2008 2:17 pm
Posts: 140
Or use BigImage


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group