Jump to content
  • Advertisement
Sign in to follow this  
GildeD

JOGL crashing my JVM

This topic is 4862 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been trying to write this graphical program using JOGL... But it's crashing my JVM when I call gl.glTexImage2D(target, 0, dstPixelFormat, realWidth, realHeight, 0, srcPixelFormat, GL.GL_UNSIGNED_BYTE, textureBuffer ); Has anyone else had this problem or know what I can do to fix it? Here's what I'm getting from the JVM # # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x690fb656, pid=3892, tid=4032 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_04-b05 mixed mode) # Problematic frame: # C [atioglxx.dll+0xfb656] # # An error report file with more information is saved as hs_err_pid3892.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp #

Share this post


Link to post
Share on other sites
Advertisement
Crashes like this are usually caused by the GL bindings poking at memory which it has no right to access. I used to get similar crashes on my first few attempts at using vertex arrays- and all of these were caused by bad parameters passed into functions.

Make sure that all the paramters for this function are correct, such as the image height, width etc.. and make sure the texture buffer is valid and exists. If the image format is incorrect also, it may cause the function to try and read more data than what is in the image- which could potentially cause a crash..

Hope this helps,
Darragh

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!