Slick Forums

Discuss the Slick 2D Library
It is currently Fri May 24, 2013 8:18 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Dec 29, 2008 9:23 pm 
Offline
Regular

Joined: Sun Dec 07, 2008 5:22 am
Posts: 238
Location: Vancouver, BC, Canada
So I just grabbed the Slick from the Repo and was going through running all the tests when I received the following error.

Code:
Mon Dec 29 12:15:15 PST 2008 INFO:Slick Build #228
Mon Dec 29 12:15:15 PST 2008 INFO:LWJGL Version: 2.0b1
Mon Dec 29 12:15:15 PST 2008 INFO:OriginalDisplayMode: 1680 x 1050 x 32 @60Hz
Mon Dec 29 12:15:15 PST 2008 INFO:TargetDisplayMode: 800 x 600 x 0 @0Hz
Mon Dec 29 12:15:16 PST 2008 INFO:Starting display 800x600
Mon Dec 29 12:15:16 PST 2008 INFO:Found 0 controllers
Exception in thread "main" java.lang.OutOfMemoryError: Direct buffer memory
   at java.nio.Bits.reserveMemory(Unknown Source)
   at java.nio.DirectByteBuffer.<init>(Unknown Source)
   at java.nio.ByteBuffer.allocateDirect(Unknown Source)
   at org.lwjgl.BufferUtils.createByteBuffer(BufferUtils.java:60)
   at org.newdawn.slick.opengl.EmptyImageData.getImageBufferData(EmptyImageData.java:47)
   at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:362)
   at org.newdawn.slick.opengl.InternalTextureLoader.createTexture(InternalTextureLoader.java:329)
   at org.newdawn.slick.Image.<init>(Image.java:174)
   at org.newdawn.slick.tests.ImageMemTest.init(ImageMemTest.java:29)
   at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:357)
   at org.newdawn.slick.tests.ImageMemTest.main(ImageMemTest.java:60)


The build is unchanged except that the JRE is changed to JRE 1.6.0_03.

I increased the heap Size to 512mb via -Xmx512m, which stopped it from crashing but only a blank screen is rendered.

_________________
If at first quads don't succeed tri tri again.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 30, 2008 9:57 am 
Offline
Game Developer
User avatar

Joined: Sun May 25, 2008 9:45 am
Posts: 578
Confirmed same issue here.

_________________
SingSong Karaoke - http://singthegame.com


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 14, 2009 11:26 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
The test creates a big empty image, which blows the normal stack (so you need to increase it to run). It doesn't draw anything so nothing is rendered.

What is the issue?

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2009 6:45 am 
Offline
Regular

Joined: Sun Dec 07, 2008 5:22 am
Posts: 238
Location: Vancouver, BC, Canada
Sorry about that.
It wasn't clear from the test that the image was empty, or more accurately there was no indication that the test was successful. I wrongly assumed that something was wrong as a result.

_________________
If at first quads don't succeed tri tri again.


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 1 guest


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