stbi_load() sending error for unknown reason

Started by Just_A_Fork, September 11, 2017, 02:38:44

Previous topic - Next topic

Just_A_Fork

I don't know why but keep getting this error (hs_err_pid6886.log) from java every time I run Main. if I comment it out it doesn't send the error if I comment it out so I'm pretty sure it's the problem. I think it might be a memory leak but if so I have no clue on how to fix it

note that I am using a mac to write this and I want it to be able to run on a mac. also, I am very new to lwjgl though I do have a little experience with c++ but only messing around.

spasi

IntBuffer.allocate is being used in Sprite.java, which creates an IntBuffer backed by a Java heap array. This is not supported in LWJGL, off-heap buffers are required. Please read the Memory FAQ for more details and the recommended allocation strategies.

Cornix

There are a lot of threads all with the same problem recently. Would it be possible to detect such a situation programmatically within LWJGL3 and print an appropriate error message?

spasi


Cornix

Well, in that case I guess its just laziness.

spasi


Cornix

I meant laziness from the users who rather ask in the forums instead of using the Debug build to find out what went wrong immediately.

There isnt much you can do about lazy users.

Just_A_Fork

Quote from: spasi on September 11, 2017, 06:52:47
IntBuffer.allocate is being used in Sprite.java, which creates an IntBuffer backed by a Java heap array. This is not supported in LWJGL, off-heap buffers are required. Please read the Memory FAQ for more details and the recommended allocation strategies.

thank you so much it's working well now