jPCT-AE - a 3d engine for Android > Bugs

ERROR: glAttachShader - vertex shader: glError 1280

(1/4) > >>

zammbi:
I noticed in our crash logs we are getting a "vertex shader: glError 1280" crash. Looking this up the error it is a GL_INVALID_ENUM.

This happens on the HTC One, Sony Xperia L and the Samsung S4, which I don't have access too. I have now updated the latest JPCT version (did you fix such an error in the past?), so I guess I'll soon see if such an error goes away once we release it. But I thought I'll log it in here in the meantime in case someone knows more about it.

Crash:


--- Code: ---Package: nz.co.nuffie.android.crichq
Version: 2594
Android: 4.1.2
Manufacturer: HTC
Model: HTC One
Date: Sun Oct 13 13:44:59 MST 2013

java.lang.RuntimeException: [ 1381697099906 ] - ERROR: glAttachShader - vertex shader: glError 1280
at com.threed.jpct.Logger.log(Logger.java:189)
at com.threed.jpct.GLSLShader.checkError(GLSLShader.java:808)
at com.threed.jpct.GLSLShader.createProgram(GLSLShader.java:774)
at com.threed.jpct.GLSLShader.loadProgram(GLSLShader.java:766)
at com.threed.jpct.GLSLShader.preInit(GLSLShader.java:276)
at com.threed.jpct.GL20.setShader(GL20.java:336)
at com.threed.jpct.GLRenderer.setShader(GLRenderer.java:510)
at com.threed.jpct.GLRenderer.setLineShader(GLRenderer.java:2060)
at com.threed.jpct.GLRenderer.enableLineMode(GLRenderer.java:1978)
at com.threed.jpct.World.draw(World.java:1331)
at com.threed.jpct.World.draw(World.java:1083)
at nz.co.nuffie.android.crichq.ptichmapandwagonwheel.World3dBase.renderWorld(World3dBase.java:734)
at nz.co.nuffie.android.crichq.ptichmapandwagonwheel.World3dBase.onDrawFrame(World3dBase.java:791)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1516)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

--- End code ---

Log:

--- Quote ---DEBUG PhoneRank : Runtime.getRuntime().maxMemory:      384 Mb
Runtime.getRuntime().freeMemory:      1 Mb
Runtime.getRuntime().totalMemory:      28 Mb
Debug.getNativeHeapAllocatedSize:      50 Mb
Debug.getNativeHeapFreeSize:         0 Mb
Debug.getNativeHeapSize:            50 Mb
Debug.getThreadAllocSize:            0 Kb
Debug.getGlobalAllocSize:            0 Kb
Debug.getGlobalFreedSize:            0 Kb
memoryInfo.getTotalPss:            140 Mb
memoryInfo.getTotalPrivateDirty:      128 Mb
memoryInfo.getTotalSharedDirty:      39 Mb
memoryInfo.dalvikPss:               28 Mb
memoryInfo.dalvikPrivateDirty:         28 Mb
memoryInfo.nativePss:               0 Mb
memoryInfo.nativePrivateDirty:         0 Mb
JPCT texture usage:               1 Kb
Memory Left:                     307 Mb
Memory Left (based on Pss):         244 Mb
activityManager.getMemoryClass:      192 Mb
CPU Cores Free:                  2
DEBUG PhoneRank : Max Mem: 384 Mem Left:307
DEBUG PhoneRank : Very high ram free.
DEBUG WW : Turning on AA with transparency.
DEBUG WW : Using OpenGL 2.0
DEBUG GoogleAnalyticsActivity : Not a tracked activity
DEBUG OnlineViewWorld3dActivity : ON RUNNING
DEBUG PhoneRank : Checking Model: HTC One
DEBUG nz.co.nuffie.android.crichq.ptichmapandwagonwheel.OnlineViewWorld3dActivity$1 : SERVICE CONNECTED
DEBUG WWPollTask : RUNNING: true
DEBUG OnlineViewWorld3dActivity : URL: http://www.crichq.com/mobile/matches/live_matches/68921/wagon_wheel
DEBUG CricHQService : Http Response Code: 0
DEBUG 3d : World is null. Creating...
DEBUG PhoneRank : Using hardware renderer (Not PixelFlinger): Adreno (TM) 320
DEBUG PhoneRank : Max Mem: 384 Mem Left:300
DEBUG PhoneRank : Very high ram free.
DEBUG 3d : Change camera view to: PITCH_MAP
VERBOSE CricHQCrashManagerListener : Getting username for crash report...
DEBUG CricHQCrashManagerListener : Sending crash report to hockey...

Phone Stats:
Runtime.getRuntime().maxMemory:      384 Mb
Runtime.getRuntime().freeMemory:      7 Mb
Runtime.getRuntime().totalMemory:      49 Mb
Debug.getNativeHeapAllocatedSize:      49 Mb
Debug.getNativeHeapFreeSize:         5 Mb
Debug.getNativeHeapSize:            55 Mb
Debug.getThreadAllocSize:            0 Kb
Debug.getGlobalAllocSize:            0 Kb
Debug.getGlobalFreedSize:            0 Kb
memoryInfo.getTotalPss:            165 Mb
memoryInfo.getTotalPrivateDirty:      152 Mb
memoryInfo.getTotalSharedDirty:      39 Mb
memoryInfo.dalvikPss:               49 Mb
memoryInfo.dalvikPrivateDirty:         49 Mb
memoryInfo.nativePss:               0 Mb
memoryInfo.nativePrivateDirty:         0 Mb
JPCT texture usage:               8195 Kb
Memory Left:                     292 Mb
Memory Left (based on Pss):         219 Mb
activityManager.getMemoryClass:      192 Mb
CPU Cores Free:                  2

--- End quote ---

EgonOlsen:
You have no device to test this on or just no S4? I remember some problem in that domain, but i'm not sure if it was this particular one. The funny thing is, that the call that is associated with this error doesn't even raise this kind of errors. Must be something between this call and the last error check then...!?

EgonOlsen:
If it's not fixed with the new version and you haven't already, consider to try the latest beta from here: http://jpct.de/download/beta/jpct_ae.jar

zammbi:

--- Quote ---You have no device to test this on or just no S4?
--- End quote ---
I don't have any of the newer devices that this crash happen on. It might happen after I change the camera POV.

It's odd that it happens only on these newer devices. Has something changed in the newer chips?
They might of broken something with OpenGL ES 3?
All the devices I listed above support OpenGL 3.0: http://en.wikipedia.org/wiki/OpenGL_ES


--- Quote ---If it's not fixed with the new version and you haven't already, consider to try the latest beta from here: http://jpct.de/download/beta/jpct_ae.jar

--- End quote ---
Thanks. I guess I'll wait and see if it is fixed when we do the next update. The next release date is some time still.

rainfalls:
Hi Egon,

I also encountered this error on my teclast pad (its OpenGL and hardware info is listed in the attached image 1). The program I tested was the AE vertion example of "HelloShader", which runs properly on my old Xperia Play (Android 2.3) as well as the new Nexus 7 2013. On this teclast pad it gives "ERROR: glAttachShader - vertex shader: glError 1280" while compling the shader as zammbi had on his devices.

With the lib you gave above (http://jpct.de/download/beta/jpct_ae.jar), the error was gone and the activity started successfully on this pad but it didn't show the right texture, as in the 2nd attached image. (With this new beta library, everything was still fine on Xperia Play).

[attachment deleted by admin]

Navigation

[0] Message Index

[#] Next page

Go to full version