Hello Guest

[FIXED] GL33 instance is null

  • 4 Replies
  • 3523 Views
[FIXED] GL33 instance is null
« on: December 18, 2014, 03:40:10 »
Trying to use GL33.glVertexAttribDivisor(int, int), I get a nullpointer exception at "getInstance().VertexAttribDivisor" in:

Code: [Select]
public static void glVertexAttribDivisor(int index, int divisor) {
long __functionAddress = getInstance().VertexAttribDivisor;
if ( LWJGLUtil.CHECKS )
checkFunctionAddress(__functionAddress);
nglVertexAttribDivisor(index, divisor, __functionAddress);
}

So I tried testing the value of GL33.getInstance() as well as GL40.getInstance() to make sure it wasn't due to my installed OpenGL version (which prints as 4.1); GL33.getInstance() is always null, GL40.getInstance() is fine.

Thanks!

edit: I'm on OS X 10.10.1, OpenGL Version 4.1 INTEL-10.0.86; also, I've tried on LWJGL 2 now and it works fine there.
« Last Edit: December 18, 2014, 08:24:26 by weston »

*

Offline spasi

  • *****
  • 2132
    • WebHotelier
Re: GL33 instance is null
« Reply #1 on: December 18, 2014, 10:59:51 »
Could you please run your app with -Dorg.lwjgl.util.Debug=true and paste the output here?

Re: GL33 instance is null
« Reply #2 on: December 18, 2014, 23:15:20 »
Code: [Select]
[LWJGL] Version 3.0.0a | Mac OS X | x86_64
LWJGL 3.0.0a!
[LWJGL] MemoryUtil MemoryAccessor: MemoryAccessorUnsafe
[LWJGL] Failed to locate address for GL function glVertexP2uiv
[LWJGL] Failed to locate address for GL function glVertexP3uiv
[LWJGL] Failed to locate address for GL function glVertexP4uiv
[LWJGL] Failed to locate address for GL function glTexCoordP1uiv
[LWJGL] Failed to locate address for GL function glTexCoordP2uiv
[LWJGL] Failed to locate address for GL function glTexCoordP3uiv
[LWJGL] Failed to locate address for GL function glTexCoordP4uiv
[LWJGL] Failed to locate address for GL function glMultiTexCoordP1uiv
[LWJGL] Failed to locate address for GL function glMultiTexCoordP2uiv
[LWJGL] Failed to locate address for GL function glMultiTexCoordP3uiv
[LWJGL] Failed to locate address for GL function glMultiTexCoordP4uiv
[LWJGL] Failed to locate address for GL function glNormalP3ui
[LWJGL] Failed to locate address for GL function glNormalP3uiv
[LWJGL] Failed to locate address for GL function glColorP3ui
[LWJGL] Failed to locate address for GL function glColorP4ui
[LWJGL] Failed to locate address for GL function glColorP3uiv
[LWJGL] Failed to locate address for GL function glColorP4uiv
[LWJGL] Failed to locate address for GL function glSecondaryColorP3ui
[LWJGL] Failed to locate address for GL function glSecondaryColorP3uiv
[LWJGL] [GL] OpenGL33 was reported as available but an entry point is missing.
[LWJGL] Failed to locate address for GL function glProgramUniform1dEXT
[LWJGL] Failed to locate address for GL function glProgramUniform2dEXT
[LWJGL] Failed to locate address for GL function glProgramUniform3dEXT
[LWJGL] Failed to locate address for GL function glProgramUniform4dEXT
[LWJGL] Failed to locate address for GL function glProgramUniform1dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniform2dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniform3dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniform4dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix2dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix3dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix4dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix2x3dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix2x4dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix3x2dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix3x4dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix4x2dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix4x3dvEXT
[LWJGL] Failed to locate address for GL function glVertexArrayVertexAttribDivisorEXT
[LWJGL] Failed to locate address for GL function glTextureStorage1DEXT
[LWJGL] Failed to locate address for GL function glTextureStorage2DEXT
[LWJGL] Failed to locate address for GL function glTextureStorage3DEXT
[LWJGL] Failed to locate address for GL function glVertexArrayVertexAttribLOffsetEXT
[LWJGL] Failed to locate address for GL function glVertexP2uiv
[LWJGL] Failed to locate address for GL function glVertexP3uiv
[LWJGL] Failed to locate address for GL function glVertexP4uiv
[LWJGL] Failed to locate address for GL function glTexCoordP1uiv
[LWJGL] Failed to locate address for GL function glTexCoordP2uiv
[LWJGL] Failed to locate address for GL function glTexCoordP3uiv
[LWJGL] Failed to locate address for GL function glTexCoordP4uiv
[LWJGL] Failed to locate address for GL function glMultiTexCoordP1uiv
[LWJGL] Failed to locate address for GL function glMultiTexCoordP2uiv
[LWJGL] Failed to locate address for GL function glMultiTexCoordP3uiv
[LWJGL] Failed to locate address for GL function glMultiTexCoordP4uiv
[LWJGL] Failed to locate address for GL function glNormalP3ui
[LWJGL] Failed to locate address for GL function glNormalP3uiv
[LWJGL] Failed to locate address for GL function glColorP3ui
[LWJGL] Failed to locate address for GL function glColorP4ui
[LWJGL] Failed to locate address for GL function glColorP3uiv
[LWJGL] Failed to locate address for GL function glColorP4uiv
[LWJGL] Failed to locate address for GL function glSecondaryColorP3ui
[LWJGL] Failed to locate address for GL function glSecondaryColorP3uiv
[LWJGL] [GL] GL_ARB_vertex_type_2_10_10_10_rev was reported as available but an entry point is missing.
Opengl version: 4.1 INTEL-10.0.86
Exception in thread "Thread-0" java.lang.NullPointerException
at org.lwjgl.opengl.GL33.glVertexAttribDivisor(GL33.java:919)
at com.symbolflux.dsv.domains.RenderingDomain.bufferTransforms(RenderingDomain.java:336)
at com.symbolflux.dsv.domains.RenderingDomain.init(RenderingDomain.java:246)
at com.symbolflux.dsv.Driver2$1.run(Driver2.java:57)
at java.lang.Thread.run(Thread.java:745)

*

Offline spasi

  • *****
  • 2132
    • WebHotelier
Re: GL33 instance is null
« Reply #3 on: December 18, 2014, 23:57:01 »
Thank you, this has been fixed in build #34.

Re: GL33 instance is null
« Reply #4 on: December 19, 2014, 07:47:19 »
Thank you!