Android Question Jpct glcontext returning null

DTsEMT

Member
Licensed User
Longtime User
I've recently downloaded the Jcpt-AE library, with examples (HelloWorld, Load3DS, etc).

I followed the installation instructions to add the Jcpt library. On running the Load3DS example, I'm constantly getting this error:

java.lang.RuntimeException: [ 1606913260335 ] - ERROR: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.indexOf(java.lang.String)' on a null object reference
at com.threed.jpct.GLRenderer.init(GLRenderer.java:444)
.
.

Jpct is initialized as

B4X:
    Jpct.Initialize2("Jpct", 1, Jpct.RENDER_CONTINUOUSLY,True)
    Activity.AddView(Jpct,0,0,Activity.width,Activity.height)

The error is occurring in this section of code:

B4X:
Sub Jpct_SurfaceChanged(width As Int, height As Int)

    FrameBuffer.Initialize1(Jpct.glContext, width, height)
        
        World.Initialize

Highlighting the Jpct item in debug mode doesn't seem to even show a glcontext as a feature. I'm getting no errors about missing libraries, so is this something that isn't supported by Android anymore, or?

Thanks for any help.
 
Top