LWJGL Forum

Programming => Bug Reports / RFE => Topic started by: inxen on September 05, 2014, 22:07:45

Title: [BUG] Core dump on Radeon HD 8550G / Windows 8 / OpenGL 4.4 Compatibility/Debug
Post by: inxen on September 05, 2014, 22:07:45
After recently updating my drivers to the latest version, my application started causing JVM core dumps on a call that causes an OpenGL error.

Core dump: https://gist.github.com/anonymous/f6da804bb99ea731505a
Installed driver: http://support.amd.com/en-us/download/mobile?os=Windows%208.1%20-%2064

Currently, I am initializing LWJGL with
Display.create(new PixelFormat(), new ContextAttribs().withDebug(true));
changing this to
Display.create(new PixelFormat(), new ContextAttribs());
fixes the core dumping issue, and the application works fine.

From what I can see, the crash only occurs if using KHRDebug - the vendor specific AMDDebugOutput works fine.

I'm using the LWJGL 2.9.1 on Maven.
Title: Re: [BUG] Core dump on Radeon HD 8550G / Windows 8 / OpenGL 4.4 Compatibility/Debug
Post by: spasi on September 05, 2014, 22:35:20
Does the crash happen only if an OpenGL error occurs? Or is it just random?
Title: Re: [BUG] Core dump on Radeon HD 8550G / Windows 8 / OpenGL 4.4 Compatibility/Debug
Post by: inxen on September 05, 2014, 23:27:00
Confirmed only after an OpenGL error occurs. Updated the OP to state this as well.
Title: Re: [BUG] Core dump on Radeon HD 8550G / Windows 8 / OpenGL 4.4 Compatibility/Debug
Post by: spasi on September 06, 2014, 10:05:33
Hmm, I'm not able to reproduce this. Does the crash go away if you glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS)?
Title: Re: [BUG] Core dump on Radeon HD 8550G / Windows 8 / OpenGL 4.4 Compatibility/Debug
Post by: inxen on September 06, 2014, 19:25:12
Enabling GL_DEBUG_OUTPUT_SYNCHRONOUS does not fix the issue - the core dump still occurs on a call that generates an OpenGL error. If it's of any help, I'm doing

glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
KHRDebug.glDebugMessageCallback(new KHRDebugCallback(new KHRDebugCallback.Handler() {
  @Override
  public void handleMessage(int source, int type, int id, int severity, String message) {
     System.err.println("It works!");
  }
}));

glEnable(GL_UNIFORM_BUFFER); // Offending call
Title: Re: [BUG] Core dump on Radeon HD 8550G / Windows 8 / OpenGL 4.4 Compatibility/Debug
Post by: Cornix on September 06, 2014, 20:00:19
Are you sure this bug is specific to lwjgl? Did you ever try reproducing this with C or C++ code?