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

ERROR: glAttachShader - vertex shader: glError 1280

<< < (3/4) > >>

rainfalls:
Hi Egon, unfortunately, I still had the same grey texture on this pad with your new java src codes (new beta jpct-ae lib + 4.2.2 android project build target), and it worked well on the old Xperia Play again.

I'll make a simpler shader to have a further check with your new lib if I can find some spare time tomorrow.

Attached the new log if you are interested:


--- Code: ---11-11 20:26:58.010: I/jPCT-AE(31516): onCreate
11-11 20:26:58.010: I/jPCT-AE(31516): Copying data from master Activity!
11-11 20:26:58.020: I/jPCT-AE(31516): onResume
11-11 20:26:58.090: D/libEGL(31516): Enabling MSAA 4x
11-11 20:26:58.090: D/libEGL(31516): Enabling MSAA 4x
11-11 20:26:58.160: I/jPCT-AE(31516): onSurfaceCreated
11-11 20:26:58.160: I/jPCT-AE(31516): Setting buffer creation flag...
11-11 20:26:58.160: I/jPCT-AE(31516): Recreating buffer...
11-11 20:26:58.160: I/jPCT-AE(31516): GLRenderer created with id 2 on Thread[GLThread 2248,5,main]
11-11 20:26:58.160: I/jPCT-AE(31516): GL context is 1121456288
11-11 20:26:58.160: I/jPCT-AE(31516): Initializing GL20 render pipeline...
11-11 20:26:58.160: I/jPCT-AE(31516): Loading default shaders !
11-11 20:26:58.160: I/jPCT-AE(31516): 0 shaders in replacement map!
11-11 20:26:58.160: I/jPCT-AE(31516): Default fragment shader is: /defaultFragmentShader.src
11-11 20:26:58.160: I/jPCT-AE(31516): Loading file from InputStream
11-11 20:26:58.170: I/jPCT-AE(31516): Text file from InputStream loaded...2416 bytes
11-11 20:26:58.170: I/jPCT-AE(31516): Default vertex shader is: /defaultVertexShader.src
11-11 20:26:58.170: I/jPCT-AE(31516): Loading file from InputStream
11-11 20:26:58.170: I/jPCT-AE(31516): Text file from InputStream loaded...4496 bytes
11-11 20:26:58.170: I/jPCT-AE(31516): Compiling shader program!
11-11 20:26:58.200: I/jPCT-AE(31516): Handles of 210003: 4/44/5
11-11 20:26:58.200: I/jPCT-AE(31516): Loading default shaders (Tex0Amb)!
11-11 20:26:58.200: I/jPCT-AE(31516): 0 shaders in replacement map!
11-11 20:26:58.200: I/jPCT-AE(31516): Default fragment shader is: /defaultFragmentShader.src
11-11 20:26:58.210: I/jPCT-AE(31516): Loading file from InputStream
11-11 20:26:58.210: I/jPCT-AE(31516): Text file from InputStream loaded...199 bytes
11-11 20:26:58.210: I/jPCT-AE(31516): Default vertex shader is: /defaultVertexShader.src
11-11 20:26:58.220: I/jPCT-AE(31516): Loading file from InputStream
11-11 20:26:58.220: I/jPCT-AE(31516): Text file from InputStream loaded...757 bytes
11-11 20:26:58.220: I/jPCT-AE(31516): Compiling shader program!
11-11 20:26:58.230: I/jPCT-AE(31516): Handles of 420006: 1/5/2
11-11 20:26:58.230: I/jPCT-AE(31516): Loading default shaders (Tex0)!
11-11 20:26:58.230: I/jPCT-AE(31516): 0 shaders in replacement map!
11-11 20:26:58.230: I/jPCT-AE(31516): Default fragment shader is: /defaultFragmentShader.src
11-11 20:26:58.230: I/jPCT-AE(31516): Loading file from InputStream
11-11 20:26:58.240: I/jPCT-AE(31516): Text file from InputStream loaded...201 bytes
11-11 20:26:58.240: I/jPCT-AE(31516): Default vertex shader is: /defaultVertexShader.src
11-11 20:26:58.240: I/jPCT-AE(31516): Loading file from InputStream
11-11 20:26:58.240: I/jPCT-AE(31516): Text file from InputStream loaded...4020 bytes
11-11 20:26:58.240: I/jPCT-AE(31516): Compiling shader program!
11-11 20:26:58.250: I/jPCT-AE(31516): Handles of 630009: 1/41/2
11-11 20:26:58.250: I/jPCT-AE(31516): Loading default shaders (Tex1)!
11-11 20:26:58.250: I/jPCT-AE(31516): 0 shaders in replacement map!
11-11 20:26:58.250: I/jPCT-AE(31516): Default fragment shader is: /defaultFragmentShader.src
11-11 20:26:58.260: I/jPCT-AE(31516): Loading file from InputStream
11-11 20:26:58.260: I/jPCT-AE(31516): Text file from InputStream loaded...997 bytes
11-11 20:26:58.260: I/jPCT-AE(31516): Default vertex shader is: /defaultVertexShader.src
11-11 20:26:58.260: I/jPCT-AE(31516): Loading file from InputStream
11-11 20:26:58.270: I/jPCT-AE(31516): Text file from InputStream loaded...4390 bytes
11-11 20:26:58.270: I/jPCT-AE(31516): Compiling shader program!
11-11 20:26:58.270: I/jPCT-AE(31516): Handles of 840012: 2/44/3
11-11 20:26:58.270: I/jPCT-AE(31516): Loading default shaders (Tex0Light0)!
11-11 20:26:58.270: I/jPCT-AE(31516): 0 shaders in replacement map!
11-11 20:26:58.270: I/jPCT-AE(31516): Default fragment shader is: /defaultFragmentShader.src
11-11 20:26:58.280: I/jPCT-AE(31516): Loading file from InputStream
11-11 20:26:58.280: I/jPCT-AE(31516): Text file from InputStream loaded...201 bytes
11-11 20:26:58.280: I/jPCT-AE(31516): Default vertex shader is: /defaultVertexShader.src
11-11 20:26:58.290: I/jPCT-AE(31516): Loading file from InputStream
11-11 20:26:58.300: I/jPCT-AE(31516): Text file from InputStream loaded...1293 bytes
11-11 20:26:58.300: I/jPCT-AE(31516): Compiling shader program!
11-11 20:26:58.300: I/jPCT-AE(31516): Handles of 1050015: 1/11/2
11-11 20:26:58.300: I/jPCT-AE(31516): Loading default shaders (Fog)!
11-11 20:26:58.300: I/jPCT-AE(31516): 0 shaders in replacement map!
11-11 20:26:58.300: I/jPCT-AE(31516): Default fragment shader is: /defaultFragmentShader.src
11-11 20:26:58.310: I/jPCT-AE(31516): Loading file from InputStream
11-11 20:26:58.310: I/jPCT-AE(31516): Text file from InputStream loaded...328 bytes
11-11 20:26:58.310: I/jPCT-AE(31516): Default vertex shader is: /defaultVertexShader.src
11-11 20:26:58.310: I/jPCT-AE(31516): Loading file from InputStream
11-11 20:26:58.310: I/jPCT-AE(31516): Text file from InputStream loaded...4267 bytes
11-11 20:26:58.320: I/jPCT-AE(31516): Compiling shader program!
11-11 20:26:58.320: I/jPCT-AE(31516): Handles of 1260018: 1/44/2
11-11 20:26:58.320: I/jPCT-AE(31516): Loading default shaders (FogLight0)!
11-11 20:26:58.320: I/jPCT-AE(31516): 0 shaders in replacement map!
11-11 20:26:58.320: I/jPCT-AE(31516): Default fragment shader is: /defaultFragmentShader.src
11-11 20:26:58.330: I/jPCT-AE(31516): Loading file from InputStream
11-11 20:26:58.330: I/jPCT-AE(31516): Text file from InputStream loaded...328 bytes
11-11 20:26:58.330: I/jPCT-AE(31516): Default vertex shader is: /defaultVertexShader.src
11-11 20:26:58.330: I/jPCT-AE(31516): Loading file from InputStream
11-11 20:26:58.330: I/jPCT-AE(31516): Text file from InputStream loaded...1608 bytes
11-11 20:26:58.330: I/jPCT-AE(31516): Compiling shader program!
11-11 20:26:58.340: I/jPCT-AE(31516): Handles of 1470021: 1/15/2
11-11 20:26:58.340: I/jPCT-AE(31516): Loading default shaders (Depth)!
11-11 20:26:58.340: I/jPCT-AE(31516): 0 shaders in replacement map!
11-11 20:26:58.340: I/jPCT-AE(31516): Default fragment shader is: /defaultFragmentShader.src
11-11 20:26:58.340: I/jPCT-AE(31516): Loading file from InputStream
11-11 20:26:58.350: I/jPCT-AE(31516): Text file from InputStream loaded...745 bytes
11-11 20:26:58.350: I/jPCT-AE(31516): Default vertex shader is: /defaultVertexShader.src
11-11 20:26:58.350: I/jPCT-AE(31516): Loading file from InputStream
11-11 20:26:58.350: I/jPCT-AE(31516): Text file from InputStream loaded...248 bytes
11-11 20:26:58.350: I/jPCT-AE(31516): Compiling shader program!
11-11 20:26:58.350: I/jPCT-AE(31516): Handles of 1680024: 1/1/-1
11-11 20:26:58.360: I/jPCT-AE(31516): GL20 render pipeline initialized!
11-11 20:26:58.360: I/jPCT-AE(31516): OpenGL vendor:     Imagination Technologies
11-11 20:26:58.360: I/jPCT-AE(31516): OpenGL renderer:   PowerVR SGX 544MP
11-11 20:26:58.360: I/jPCT-AE(31516): OpenGL version:    OpenGL ES 2.0 build 1.10@2379759
11-11 20:26:58.360: I/jPCT-AE(31516): OpenGL renderer initialized (using 2/8 texture stages)
11-11 20:26:58.360: I/jPCT-AE(31516): Creating new matrix cache!
11-11 20:26:58.360: I/jPCT-AE(31516): Allocating native memory for 512*512 texture(true/false/false/false/): 524288 bytes!
11-11 20:26:58.370: I/jPCT-AE(31516): Creating texture buffer of size 131072
11-11 20:26:58.400: I/jPCT-AE(31516): New texture's id is: 70001
11-11 20:26:58.410: I/jPCT-AE(31516): Mipmaps generated by the GPU in 9ms
11-11 20:26:58.410: I/jPCT-AE(31516): New texture uploaded: com.threed.jpct.Texture@42953c98 in thread Thread[GLThread 2248,5,main]
11-11 20:26:58.410: I/jPCT-AE(31516): Allocating native memory for 512*512 texture(true/false/false/false/): 524288 bytes!
11-11 20:26:58.460: D/dalvikvm(31516): GC_FOR_ALLOC freed 1244K, 24% free 13265K/17404K, paused 44ms, total 44ms
11-11 20:26:58.460: I/jPCT-AE(31516): Creating texture buffer of size 131072
11-11 20:26:58.490: I/jPCT-AE(31516): New texture's id is: 140002
11-11 20:26:58.500: I/jPCT-AE(31516): Mipmaps generated by the GPU in 9ms
11-11 20:26:58.500: I/jPCT-AE(31516): New texture uploaded: com.threed.jpct.Texture@429152a8 in thread Thread[GLThread 2248,5,main]
11-11 20:26:58.500: I/jPCT-AE(31516): Recompiling shader because of context change!
11-11 20:26:58.500: I/jPCT-AE(31516): Compiling shader program!
11-11 20:26:58.500: I/jPCT-AE(31516): Handles of 1890027: 3/10/1
11-11 20:26:58.500: I/jPCT-AE(31516): OpenGL context has changed(2)...recovering for renderer 2/1!
11-11 20:26:58.500: I/jPCT-AE(31516): Creating buffers...
11-11 20:26:58.510: I/jPCT-AE(31516): [ 1384201618525 ] - WARNING: Texture's size is 64/16, but textures should be square for OpenGL ES2.0! This may result in a black texture!
11-11 20:26:58.510: I/jPCT-AE(31516): Allocating native memory for 64*16 texture(true/false/false/false/): 2048 bytes!
11-11 20:26:58.510: I/jPCT-AE(31516): Creating texture buffer of size 512
11-11 20:26:58.510: I/jPCT-AE(31516): New texture's id is: 210003
11-11 20:26:58.510: I/jPCT-AE(31516): New texture uploaded: com.threed.jpct.Texture@42945c08 in thread Thread[GLThread 2248,5,main]
11-11 20:26:58.580: I/jPCT-AE(31516): onStop

--- End code ---

EgonOlsen:
Can you post the log right from the beginning? Your log misses the first onSurfaceChanged call.

rainfalls:
Hi Egon,

I just found the problem. It is all about this code:


--- Code: ---Texture.defaultToMipmapping(true);
--- End code ---

I set it to be false, then the sample worked. I set the Android project build target back to 2.3.3 and changed the ae library back to your last stable one (jpct-ae.1.27.2013.07.04), and it still worked.

I wonder if zammbi can check this on his phones, but to me disabling mipmapping makes the sample work on all my devices.

Do you still need a full log when mipmapping is enabled?

EgonOlsen:
No, i don't need it then. You might want to try to enable mipmaps again, but set http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Config.html#internalMipmapCreation to true to shift the actual mipmap creation from the GPU to the CPU. If that helps too, i'll make it the default in the next version.

EgonOlsen:

--- Quote from: rainfalls on November 11, 2013, 11:25:30 pm ---I wonder if zammbi can check this on his phones, but to me disabling mipmapping makes the sample work on all my devices.

--- End quote ---
It's unlikely that these two problems (zammbi's and yours) are related. 1280 is a generic gl error that can happen in a lot of cases. If you want to be sure, you would have to query gl's error pipeline after each command or otherwise, it will stay in there and you'll get it once you decide to read out that pipeline with no relation to the actual command that caused it.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version