Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - zammbi

Pages: 1 ... 4 5 [6] 7 8 ... 25
76
Support / Re: Error code 1000 and black screen issue
« on: March 15, 2012, 07:44:00 am »
Assets.

77
Support / Re: Error code 1000 and black screen issue
« on: March 14, 2012, 09:31:16 pm »
Removing this code:
Code: [Select]
world.draw(frameBuffer);
And it wont crash. So what ever is creating the 2048x2048 image must be in that method?

Edit:
Looks like setting it to OpenGL 1.0, it no longer crashes also. So what's in OpenGL 2.0 that's causing the large images?

Edit2: The weird thing, so far it only has this problem on the 2 nvidia chips(Tegra 2) from what I can see. With the exact same setup (OpenGL 2.0, large textures), the Galaxy Nexus is fine and so is the crappy Galaxy Y(it has a high java heap for some reason).

So I hope EgonOlsen can find the issue. Because on high end devices(tablets) I need OpenGL 2.0 for AA and I need large textures for pitch maps (Will be close to the pitch) and that I need to draw the framebuffer :P

78
Support / Re: Error code 1000 and black screen issue
« on: March 14, 2012, 04:05:48 am »
Running this code...

Code: [Select]
Texture tempTex = TextureManager.getInstance().getTexture("cricket_pitch.png");
Log.d("3d", "cricket_pitch.png Texture height: " + tempTex.getHeight() + " width:" + tempTex.getWidth());

tempTex = TextureManager.getInstance().getTexture("stadium_png.png");
Log.d("3d", "stadium_png.png Texture height: " + tempTex.getHeight()+ " width:" + tempTex.getWidth());

Log.d("3d", "Texture memory usage: " + TextureManager.getInstance().getMemoryUsage());

Quote
03-14 16:00:08.600: D/3d(5474): cricket_pitch.png Texture height: 1024 width:1024
03-14 16:00:08.600: D/3d(5474): stadium_png.png Texture height: 1024 width:1024
03-14 16:00:08.600: D/3d(5474): Texture memory usage: 2745512

So the textures are loaded as 1024x1024 into jpct.

79
Support / Re: Testing for OpenGL support
« on: March 14, 2012, 01:56:03 am »
Woops haha. I forgot that this topic was on the desktop jpct.
There is probably some way to do such things on the desktop. Otherwise you could catch the exception if OpenGL fails and then do software stuff instead (to simulate this could simplify uninstall your graphics drivers).

80
Support / Re: Error code 1000 and black screen issue
« on: March 13, 2012, 11:46:10 pm »
Quote
That's exactly the amount of memory a 2048*2048 texture would need and that's where it fails. Are you sure that you are not using such textures?
I'm only using 1024x1024. No higher resolution than that (and tripled checked).


For now I've lowered one of my images to 512x512 but it looks crappy on the tablet. I hope you can solve the issue. If you need anything else to test just give me a yell.

81
Support / Re: Testing for OpenGL support
« on: March 13, 2012, 11:35:11 pm »
All android devices supports OpenGL 1.0.

To check if its using software mode I use:

Code: [Select]
String renderer = gl.glGetString(GL10.GL_RENDERER); //Check for software renderer.
boolean isSoftwareRenderer = renderer.contains("PixelFlinger");

You could use "GL10.GL_VERSION" instead to get the supported version back as a string. If you want to check if it supports 2.0.

Edit here is the link where I stole that from:
http://android-developers.blogspot.co.nz/2010/06/game-development-for-android-quick.html

82
Support / Re: Error code 1000 and black screen issue
« on: March 13, 2012, 10:41:18 pm »
Quote
I've no idea about that "Error code 1000" output. I'm not printing this message. It might be some opengl related error that i just pirint out, but i somehow doubt it. Are you able to reproduce this problem and post a log?
It seems to be linked to some broken webview stuff on this phone. So lets just ignore that in that case.

Quote
The problem with the OOM doesn't seem to be caused by VM memory but by native memory.

By my research that when "(Debug.getNativeHeapAllocatedSize() +4) < Runtime.getRuntime().maxMemory()" it should never run out of memory. That native heap is included in "maxMemory".

Quote
if you are keeping references to Bitmaps or something similar.
Nope.

Quote
If that's not the case...how large is that texture?
2 images at 1024x1024(for top end phones).
While the images are large, I expect devices with such large free memory to handle it.

If tested this on a tablet(Samsung tab 10.1, which also has a NVIDIA chip) and it also seems to get this crash. Before I load the 2 images I get reported 54 megs free. The Samsung tab is running Android 3.1 which I believe now puts images in the java heap and not the native heap. Or so I've read...


Samsung tab 10.1 log:

Quote
03-14 10:30:14.040: D/dalvikvm(27261): GC_CONCURRENT freed 1039K, 10% free 10514K/11655K, paused 2ms+5ms
03-14 10:30:14.070: I/jPCT-AE(27261): MATCH ID: 7871
03-14 10:30:14.070: D/WW(27261): Checking device stats... Max mem:64 Cpus:2
03-14 10:30:14.070: D/WW(27261): Turning on AA.
03-14 10:30:14.070: D/WW(27261): Using OpenGL 2.0
03-14 10:30:14.070: D/WWActivity(27261): ON START
03-14 10:30:14.120: D/libEGL(27261): loaded /system/lib/egl/libGLES_android.so
03-14 10:30:14.120: D/libEGL(27261): loaded /system/lib/egl/libEGL_tegra.so
03-14 10:30:14.120: D/WWActivity(27261): SERVICE CONNECTED
03-14 10:30:14.130: D/WWActivity(27261): RUNNING: true
03-14 10:30:14.150: D/WWActivity(27261): URL: http://crichq-staging-629692596.us-west-1.elb.amazonaws.com/mobile/matches/live_matches/7871/wagon_wheel
03-14 10:30:14.150: D/libEGL(27261): loaded /system/lib/egl/libGLESv1_CM_tegra.so
03-14 10:30:14.160: D/libEGL(27261): loaded /system/lib/egl/libGLESv2_tegra.so
03-14 10:30:14.170: I/jPCT-AE(27261): CSAA enabled!
03-14 10:30:14.230: I/jPCT-AE(27261): GLRenderer created with id 0 on Thread[GLThread 23,5,main]
03-14 10:30:14.230: I/jPCT-AE(27261): Initializing GL20 render pipeline...
03-14 10:30:14.230: I/jPCT-AE(27261): Accessing shaders via JAR!
03-14 10:30:14.230: I/jPCT-AE(27261): Loading default shaders !
03-14 10:30:14.230: I/jPCT-AE(27261): 0 shaders in replacement map!
03-14 10:30:14.230: I/jPCT-AE(27261): Default fragment shader is: /defaultFragmentShader.src
03-14 10:30:14.350: I/jPCT-AE(27261): Loading file from InputStream
03-14 10:30:14.350: I/jPCT-AE(27261): Text file from InputStream loaded...2008 bytes
03-14 10:30:14.350: I/jPCT-AE(27261): Default vertex shader is: /defaultVertexShader.src
03-14 10:30:14.350: I/jPCT-AE(27261): Loading file from InputStream
03-14 10:30:14.350: I/jPCT-AE(27261): Text file from InputStream loaded...3897 bytes
03-14 10:30:14.350: I/jPCT-AE(27261): Compiling shader program!
03-14 10:30:14.590: I/jPCT-AE(27261): Handles of 3: 2/28
03-14 10:30:14.600: I/jPCT-AE(27261): Loading default shaders (Tex0)!
03-14 10:30:14.600: I/jPCT-AE(27261): 0 shaders in replacement map!
03-14 10:30:14.600: I/jPCT-AE(27261): Default fragment shader is: /defaultFragmentShader.src
03-14 10:30:14.600: I/jPCT-AE(27261): Loading file from InputStream
03-14 10:30:14.600: I/jPCT-AE(27261): Text file from InputStream loaded...201 bytes
03-14 10:30:14.600: I/jPCT-AE(27261): Default vertex shader is: /defaultVertexShader.src
03-14 10:30:14.600: I/jPCT-AE(27261): Loading file from InputStream
03-14 10:30:14.620: I/jPCT-AE(27261): Text file from InputStream loaded...3421 bytes
03-14 10:30:14.620: I/jPCT-AE(27261): Compiling shader program!
03-14 10:30:14.670: D/dalvikvm(27261): GC_CONCURRENT freed 978K, 9% free 10960K/12039K, paused 4ms+3ms
03-14 10:30:14.730: I/jPCT-AE(27261): Handles of 6: 2/21
03-14 10:30:14.730: I/jPCT-AE(27261): Loading default shaders (Tex1)!
03-14 10:30:14.730: I/jPCT-AE(27261): 0 shaders in replacement map!
03-14 10:30:14.730: I/jPCT-AE(27261): Default fragment shader is: /defaultFragmentShader.src
03-14 10:30:14.730: I/jPCT-AE(27261): Loading file from InputStream
03-14 10:30:14.730: I/jPCT-AE(27261): Text file from InputStream loaded...871 bytes
03-14 10:30:14.730: I/jPCT-AE(27261): Default vertex shader is: /defaultVertexShader.src
03-14 10:30:14.730: I/jPCT-AE(27261): Loading file from InputStream
03-14 10:30:14.730: I/jPCT-AE(27261): Text file from InputStream loaded...3791 bytes
03-14 10:30:14.730: I/jPCT-AE(27261): Compiling shader program!
03-14 10:30:14.790: D/CricHQService(27261): Content-Type: text/html; charset=utf-8
03-14 10:30:14.790: D/CricHQService(27261): 5831
03-14 10:30:14.790: D/CricHQService(27261): utf-8
03-14 10:30:14.800: D/CricHQService(27261): {"balls":[{"wagonWheel":null,"pitchMap":{"back_square":8,"bad_bowl":false,"pitch_square":2},"runs":0},{"wagonWheel":{"hit_angle_rads":4.483394,"cut_slider_proportion":1,"height_slider_proportion":0.25,"ellipse_proportion":1.063881,"arc_sector":4},"pitchMap":{"back_square":1,"bad_bowl":false,"pitch_square":1},"runs":6},{"wagonWheel":{"hit_angle_rads":5.515028,"cut_slider_proportion":0.7283465,"height_slider_proportion":0.7598425,"ellipse_proportion":1,"arc_sector":5},"pitchMap":{"back_square":1,"bad_bowl":false,"pitch_square":9},"runs":4},{"wagonWheel":{"hit_angle_rads":5.803667,"cut_slider_proportion":1,"height_slider_proportion":0.05,"ellipse_proportion":0.8780316,"arc_sector":5},"pitchMap":{"back_square":2,"bad_bowl":false,"pitch_square":5},"runs":2},{"wagonWheel":{"hit_angle_rads":4.882167,"cut_slider_proportion":0.8543307,"height_slider_proportion":0.2322835,"ellipse_proportion":0.556477,"arc_sector":4},"pitchMap":{"back_square":5,"bad_bowl":false,"pitch_square":5},"runs":0},{"wagonWheel":{"hit_angle_rads":1.610775,"cut_slider_proportion":1,"height_slider_proportion":0.05,"ellipse_proportion":0.3946149,"arc_sector":1},"pitchMap":{"back_square":8,"bad_bowl":false,"pitch_square":2},"runs":0},{"wagonWheel":{"hit_angle_rads":0.3982132,"cut_slider_proportion":1,"height_slider_proportion":1,"ellipse_proportion":1,"arc_sector":0},"pitchMap":{"back_square":9,"bad_bowl":false,"pitch_square":3},"runs":6},{"wagonWheel":null,"pitchMap":{"back_square":4,"bad_bowl":false,"pitch_square":5},"runs":0},{"wagonWheel":{"hit_angle_rads":5.028821,"cut_slider_proportion":0.7204725,"height_slider_proportion":0.3267716,"ellipse_proportion":1,"arc_sector":5},"pitchMap":{"back_square":4,"bad_bowl":false,"pitch_square":5},"runs":4},{"wagonWheel":{"hit_angle_rads":3.740932,"cut_slider_proportion":1,"height_slider_proportion":0.05,"ellipse_proportion":0.791822,"arc_sector":3},"pitchMap":{"back_square":8,"bad_bowl":false,"pitch_square":2},"runs":2},{"wagonWheel":null,"pitchMap":{"back_square":2,"bad_bowl":false,"pitch_square":5},"runs":0},{"wagonWheel":{"hit_angle_rads":4.354822,"cut_slider_proportion":0.6732283,"height_slider_proportion":0.6574803,"ellipse_proportion":1,"arc_sector":4},"pitchMap":{"back_square":7,"bad_bowl":false,"pitch_square":null},"runs":4},{"wagonWheel":{"hit_angle_rads":3.955231,"cut_slider_proportion":0.3031496,"height_slider_proportion":0.1850394,"ellipse_proportion":0.8688989,"arc_sector":3},"pitchMap":{"back_square":7,"bad_bowl":false,"pitch_square":1},"runs":3},{"wagonWheel":{"hit_angle_rads":0.4012282,"cut_slider_proportion":0.5629922,"height_slider_proportion":0.2480315,"ellipse_proportion":0.8726951,"arc_sector":0},"pitchMap":{"back_square":5,"bad_bowl":false,"pitch_square":5},"runs":2},{"wagonWheel":null,"pitchMap":{"back_square":2,"bad_bowl":false,"pitch_square":8},"runs":0},{"wagonWheel":{"hit_angle_rads":1.248425,"cut_slider_proportion":1,"height_slider_proportion":1,"ellipse_proportion":2,"arc_sector":0},"pitchMap":{"back_square":2,"bad_bowl":false,"pitch_square":8},"runs":6},{"wagonWheel":null,"pitchMap":{"back_square":5,"bad_bowl":false,"pitch_square":5},"runs":0},{"wagonWheel":{"hit_angle_rads":3.195242,"cut_slider_proportion":1,"height_slider_proportion":1,"ellipse_proportion":2,"arc_sector":3},"pitchMap":{"back_square":8,"bad_bowl":false,"pitch_square":2},"runs":6},{"wagonWheel":{"hit_angle_rads":1.509639,"cut_slider_proportion":1,"height_slider_proportion":0.7785433,"ellipse_proportion":1.329352,"arc_sector":1},"pitchMap":{"back_square":5,"bad_bowl":false,"pitch_square":5},"runs":6},{"wagonWheel":{"hit_angle_rads":4.432281,"cut_slider_proportion":1,"height_slider_proportion":1,"ellipse_proportion":0.5881524,"arc_sector":4},"pitchMap":{"back_square":5,"bad_bowl":false,"pitch_square":5},"runs":0},{"wagonWheel":null,"pitchMap":{"back_square":4,"bad_bowl":false,"pitch_square":5},"runs":0},{"wagonWheel":{"hit_angle_rads":3.164316,"cut_slider_proportion":0.7519685,"height_slider_proportion":0.6732283,"ellipse_proportion":1,"arc_sector":3},"pitchMap":{"back_square":8,"bad_bowl"
03-14 10:30:14.800: I/jPCT-AE(27261): Error Code: 0
03-14 10:30:14.810: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":4,"height_slider_proportion":0.25,"cut_slider_proportion":1,"ellipse_proportion":1.063881,"hit_angle_rads":4.483394}
03-14 10:30:14.810: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":5,"height_slider_proportion":0.7598425,"cut_slider_proportion":0.7283465,"ellipse_proportion":1,"hit_angle_rads":5.515028}
03-14 10:30:14.810: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":5,"height_slider_proportion":0.05,"cut_slider_proportion":1,"ellipse_proportion":0.8780316,"hit_angle_rads":5.803667}
03-14 10:30:14.820: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":4,"height_slider_proportion":0.2322835,"cut_slider_proportion":0.8543307,"ellipse_proportion":0.556477,"hit_angle_rads":4.882167}
03-14 10:30:14.820: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":1,"height_slider_proportion":0.05,"cut_slider_proportion":1,"ellipse_proportion":0.3946149,"hit_angle_rads":1.610775}
03-14 10:30:14.820: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":0,"height_slider_proportion":1,"cut_slider_proportion":1,"ellipse_proportion":1,"hit_angle_rads":0.3982132}
03-14 10:30:14.820: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":5,"height_slider_proportion":0.3267716,"cut_slider_proportion":0.7204725,"ellipse_proportion":1,"hit_angle_rads":5.028821}
03-14 10:30:14.820: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":3,"height_slider_proportion":0.05,"cut_slider_proportion":1,"ellipse_proportion":0.791822,"hit_angle_rads":3.740932}
03-14 10:30:14.820: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":4,"height_slider_proportion":0.6574803,"cut_slider_proportion":0.6732283,"ellipse_proportion":1,"hit_angle_rads":4.354822}
03-14 10:30:14.820: I/dalvikvm(27261): Jit: resizing JitTable from 4096 to 8192
03-14 10:30:14.830: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":3,"height_slider_proportion":0.1850394,"cut_slider_proportion":0.3031496,"ellipse_proportion":0.8688989,"hit_angle_rads":3.955231}
03-14 10:30:14.830: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":0,"height_slider_proportion":0.2480315,"cut_slider_proportion":0.5629922,"ellipse_proportion":0.8726951,"hit_angle_rads":0.4012282}
03-14 10:30:14.830: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":0,"height_slider_proportion":1,"cut_slider_proportion":1,"ellipse_proportion":2,"hit_angle_rads":1.248425}
03-14 10:30:14.840: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":3,"height_slider_proportion":1,"cut_slider_proportion":1,"ellipse_proportion":2,"hit_angle_rads":3.195242}
03-14 10:30:14.840: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":1,"height_slider_proportion":0.7785433,"cut_slider_proportion":1,"ellipse_proportion":1.329352,"hit_angle_rads":1.509639}
03-14 10:30:14.840: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":4,"height_slider_proportion":1,"cut_slider_proportion":1,"ellipse_proportion":0.5881524,"hit_angle_rads":4.432281}
03-14 10:30:14.840: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":3,"height_slider_proportion":0.6732283,"cut_slider_proportion":0.7519685,"ellipse_proportion":1,"hit_angle_rads":3.164316}
03-14 10:30:14.840: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":1,"height_slider_proportion":0.05,"cut_slider_proportion":1,"ellipse_proportion":0.599682,"hit_angle_rads":1.544486}
03-14 10:30:14.840: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":5,"height_slider_proportion":0.05,"cut_slider_proportion":1,"ellipse_proportion":1,"hit_angle_rads":5.226536}
03-14 10:30:14.840: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":5,"height_slider_proportion":0.2874016,"cut_slider_proportion":0.6102362,"ellipse_proportion":0.8631719,"hit_angle_rads":5.337499}
03-14 10:30:14.840: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":3,"height_slider_proportion":0.8070866,"cut_slider_proportion":0.8464567,"ellipse_proportion":1,"hit_angle_rads":3.21234}
03-14 10:30:14.840: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":5,"height_slider_proportion":0.05,"cut_slider_proportion":1,"ellipse_proportion":0.5535527,"hit_angle_rads":5.566645}
03-14 10:30:14.840: I/jPCT-AE(27261): Wagon Wheel: {"arc_sector":0,"height_slider_proportion":0.05,"cut_slider_proportion":1,"ellipse_proportion":0.8503579,"hit_angle_rads":0.4701827}
03-14 10:30:14.860: I/jPCT-AE(27261): Handles of 9: 2/26
03-14 10:30:14.860: I/jPCT-AE(27261): Loading default shaders (Tex0Light0)!
03-14 10:30:14.860: I/jPCT-AE(27261): 0 shaders in replacement map!
03-14 10:30:14.860: I/jPCT-AE(27261): Default fragment shader is: /defaultFragmentShader.src
03-14 10:30:14.860: I/jPCT-AE(27261): Loading file from InputStream
03-14 10:30:14.860: I/jPCT-AE(27261): Text file from InputStream loaded...201 bytes
03-14 10:30:14.860: I/jPCT-AE(27261): Default vertex shader is: /defaultVertexShader.src
03-14 10:30:14.870: I/jPCT-AE(27261): Loading file from InputStream
03-14 10:30:14.870: I/jPCT-AE(27261): Text file from InputStream loaded...1200 bytes
03-14 10:30:14.870: I/jPCT-AE(27261): Compiling shader program!
03-14 10:30:14.890: I/jPCT-AE(27261): Handles of 12: 2/6
03-14 10:30:14.890: I/jPCT-AE(27261): Loading default shaders (Fog)!
03-14 10:30:14.890: I/jPCT-AE(27261): 0 shaders in replacement map!
03-14 10:30:14.890: I/jPCT-AE(27261): Default fragment shader is: /defaultFragmentShader.src
03-14 10:30:14.890: I/jPCT-AE(27261): Loading file from InputStream
03-14 10:30:14.890: I/jPCT-AE(27261): Text file from InputStream loaded...328 bytes
03-14 10:30:14.890: I/jPCT-AE(27261): Default vertex shader is: /defaultVertexShader.src
03-14 10:30:14.890: I/jPCT-AE(27261): Loading file from InputStream
03-14 10:30:14.890: I/jPCT-AE(27261): Text file from InputStream loaded...3668 bytes
03-14 10:30:14.900: I/jPCT-AE(27261): Compiling shader program!
03-14 10:30:15.000: I/jPCT-AE(27261): Handles of 15: 2/24
03-14 10:30:15.000: I/jPCT-AE(27261): Loading default shaders (FogLight0)!
03-14 10:30:15.000: I/jPCT-AE(27261): 0 shaders in replacement map!
03-14 10:30:15.000: I/jPCT-AE(27261): Default fragment shader is: /defaultFragmentShader.src
03-14 10:30:15.000: I/jPCT-AE(27261): Loading file from InputStream
03-14 10:30:15.000: I/jPCT-AE(27261): Text file from InputStream loaded...328 bytes
03-14 10:30:15.000: I/jPCT-AE(27261): Default vertex shader is: /defaultVertexShader.src
03-14 10:30:15.000: I/jPCT-AE(27261): Loading file from InputStream
03-14 10:30:15.000: I/jPCT-AE(27261): Text file from InputStream loaded...1516 bytes
03-14 10:30:15.000: I/jPCT-AE(27261): Compiling shader program!
03-14 10:30:15.040: I/jPCT-AE(27261): Handles of 18: 2/9
03-14 10:30:15.040: I/jPCT-AE(27261): Loading default shaders (Tex0Amb)!
03-14 10:30:15.040: I/jPCT-AE(27261): 0 shaders in replacement map!
03-14 10:30:15.040: I/jPCT-AE(27261): Default fragment shader is: /defaultFragmentShader.src
03-14 10:30:15.040: I/jPCT-AE(27261): Loading file from InputStream
03-14 10:30:15.040: I/jPCT-AE(27261): Text file from InputStream loaded...199 bytes
03-14 10:30:15.040: I/jPCT-AE(27261): Default vertex shader is: /defaultVertexShader.src
03-14 10:30:15.040: I/jPCT-AE(27261): Loading file from InputStream
03-14 10:30:15.040: I/jPCT-AE(27261): Text file from InputStream loaded...757 bytes
03-14 10:30:15.040: I/jPCT-AE(27261): Compiling shader program!
03-14 10:30:15.050: I/jPCT-AE(27261): Handles of 21: 1/3
03-14 10:30:15.050: I/jPCT-AE(27261): Loading default shaders (Depth)!
03-14 10:30:15.050: I/jPCT-AE(27261): 0 shaders in replacement map!
03-14 10:30:15.050: I/jPCT-AE(27261): Default fragment shader is: /defaultFragmentShader.src
03-14 10:30:15.050: I/jPCT-AE(27261): Loading file from InputStream
03-14 10:30:15.050: I/jPCT-AE(27261): Text file from InputStream loaded...745 bytes
03-14 10:30:15.050: I/jPCT-AE(27261): Default vertex shader is: /defaultVertexShader.src
03-14 10:30:15.050: I/jPCT-AE(27261): Loading file from InputStream
03-14 10:30:15.060: I/jPCT-AE(27261): Text file from InputStream loaded...248 bytes
03-14 10:30:15.060: I/jPCT-AE(27261): Compiling shader program!
03-14 10:30:15.070: I/jPCT-AE(27261): Handles of 24: 0/0
03-14 10:30:15.070: I/jPCT-AE(27261): GL20 render pipeline initialized!
03-14 10:30:15.070: I/jPCT-AE(27261): OpenGL vendor:     NVIDIA Corporation
03-14 10:30:15.070: I/jPCT-AE(27261): OpenGL renderer:   NVIDIA Tegra
03-14 10:30:15.070: I/jPCT-AE(27261): OpenGL version:    OpenGL ES 2.0
03-14 10:30:15.070: I/jPCT-AE(27261): OpenGL renderer initialized (using 2 texture stages)
03-14 10:30:15.070: D/WW(27261): World is null. Being created...
03-14 10:30:15.070: I/jPCT-AE(27261): Adding Lightsource: 0
03-14 10:30:15.080: D/PhoneRank(27261): Max mem64 mem left:54
03-14 10:30:15.080: D/PhoneRank(27261): Very high ram free.
03-14 10:30:15.110: D/dalvikvm(27261): GC_FOR_ALLOC freed 735K, 11% free 10818K/12039K, paused 33ms
03-14 10:30:15.110: I/dalvikvm-heap(27261): Grow heap (frag case) to 12.660MB for 2097168-byte allocation
03-14 10:30:15.140: D/dalvikvm(27261): GC_FOR_ALLOC freed 3K, 10% free 12863K/14151K, paused 30ms
03-14 10:30:15.190: I/jPCT-AE(27261): Loading Texture...
03-14 10:30:15.190: D/dalvikvm(27261): GC_CONCURRENT freed 0K, 10% free 12863K/14151K, paused 2ms+3ms
03-14 10:30:15.220: D/dalvikvm(27261): GC_FOR_ALLOC freed <1K, 10% free 12863K/14151K, paused 30ms
03-14 10:30:15.230: I/dalvikvm-heap(27261): Grow heap (frag case) to 16.657MB for 4194320-byte allocation
03-14 10:30:15.260: D/dalvikvm(27261): GC_FOR_ALLOC freed <1K, 8% free 16959K/18311K, paused 30ms
03-14 10:30:15.260: I/jPCT-AE(27261): Texture loaded...4194304 bytes
03-14 10:30:15.290: D/dalvikvm(27261): GC_CONCURRENT freed <1K, 8% free 16961K/18311K, paused 2ms+3ms
03-14 10:30:15.320: D/dalvikvm(27261): GC_FOR_ALLOC freed 2048K, 19% free 14913K/18311K, paused 30ms
03-14 10:30:15.330: I/dalvikvm-heap(27261): Grow heap (frag case) to 18.659MB for 4194320-byte allocation
03-14 10:30:15.370: D/dalvikvm(27261): GC_FOR_ALLOC freed <1K, 16% free 19009K/22471K, paused 29ms
03-14 10:30:15.480: D/dalvikvm(27261): GC_CONCURRENT freed 0K, 11% free 20033K/22471K, paused 2ms+3ms
03-14 10:30:16.530: D/dalvikvm(27261): GC_FOR_ALLOC freed <1K, 11% free 20033K/22471K, paused 38ms
03-14 10:30:16.540: I/dalvikvm-heap(27261): Grow heap (frag case) to 21.660MB for 2097188-byte allocation
03-14 10:30:16.600: D/dalvikvm(27261): GC_CONCURRENT freed 0K, 11% free 22081K/24583K, paused 4ms+3ms
03-14 10:30:16.700: I/jPCT-AE(27261): Compressed 4194304 bytes to 1110217 bytes!
03-14 10:30:16.730: D/dalvikvm(27261): GC_FOR_ALLOC freed 5120K, 32% free 16962K/24583K, paused 32ms
03-14 10:30:16.730: I/jPCT-AE(27261): Texture compressed to 26% (1110217/4194304) of uncompressed size!
03-14 10:30:16.760: D/dalvikvm(27261): GC_FOR_ALLOC freed 6145K, 52% free 11902K/24583K, paused 30ms
03-14 10:30:16.770: I/dalvikvm-heap(27261): Grow heap (frag case) to 15.718MB for 4194320-byte allocation
03-14 10:30:16.820: D/dalvikvm(27261): GC_FOR_ALLOC freed 0K, 35% free 15998K/24583K, paused 30ms
03-14 10:30:16.860: D/dalvikvm(27261): GC_CONCURRENT freed <1K, 35% free 15998K/24583K, paused 2ms+3ms
03-14 10:30:17.000: I/jPCT-AE(27261): Loading Texture...
03-14 10:30:17.030: D/dalvikvm(27261): GC_FOR_ALLOC freed <1K, 35% free 15998K/24583K, paused 29ms
03-14 10:30:17.030: I/dalvikvm-heap(27261): Grow heap (frag case) to 19.718MB for 4194320-byte allocation
03-14 10:30:17.070: D/dalvikvm(27261): GC_FOR_ALLOC freed 0K, 19% free 20094K/24583K, paused 29ms
03-14 10:30:17.080: I/jPCT-AE(27261): Texture loaded...4194304 bytes
03-14 10:30:17.120: D/dalvikvm(27261): GC_CONCURRENT freed <1K, 19% free 20094K/24583K, paused 2ms+3ms
03-14 10:30:17.170: D/dalvikvm(27261): GC_FOR_ALLOC freed 4096K, 35% free 15998K/24583K, paused 29ms
03-14 10:30:17.170: I/dalvikvm-heap(27261): Grow heap (frag case) to 19.718MB for 4194320-byte allocation
03-14 10:30:17.270: D/dalvikvm(27261): GC_FOR_ALLOC freed 0K, 19% free 20094K/24583K, paused 30ms
03-14 10:30:17.320: D/dalvikvm(27261): GC_CONCURRENT freed <1K, 15% free 21119K/24583K, paused 2ms+3ms
03-14 10:30:17.780: D/dalvikvm(27261): GC_FOR_ALLOC freed <1K, 15% free 21119K/24583K, paused 29ms
03-14 10:30:17.780: I/dalvikvm-heap(27261): Grow heap (frag case) to 22.719MB for 2097188-byte allocation
03-14 10:30:17.830: D/dalvikvm(27261): GC_FOR_ALLOC freed 0K, 6% free 23167K/24583K, paused 29ms
03-14 10:30:17.880: D/dalvikvm(27261): GC_CONCURRENT freed 1024K, 10% free 22143K/24583K, paused 2ms+3ms
03-14 10:30:18.130: I/jPCT-AE(27261): Compressed 4194304 bytes to 1633755 bytes!
03-14 10:30:18.160: D/dalvikvm(27261): GC_FOR_ALLOC freed 4096K, 27% free 18047K/24583K, paused 29ms
03-14 10:30:18.160: I/jPCT-AE(27261): Texture compressed to 38% (1633755/4194304) of uncompressed size!
03-14 10:30:18.160: I/jPCT-AE(27261): Loading Texture...
03-14 10:30:18.160: I/jPCT-AE(27261): Texture loaded...65536 bytes
03-14 10:30:18.170: I/jPCT-AE(27261): Compressed 65536 bytes to 516 bytes!
03-14 10:30:18.170: I/jPCT-AE(27261): Texture compressed to 0% (516/65536) of uncompressed size!
03-14 10:30:18.170: D/szipinf(27261): Initializing inflate state
03-14 10:30:18.170: D/szipinf(27261): Initializing zlib to inflate
03-14 10:30:18.260: D/dalvikvm(27261): GC_CONCURRENT freed 6360K, 45% free 13727K/24583K, paused 2ms+4ms
03-14 10:30:18.320: I/jPCT-AE(27261): Normal vectors calculated in 60ms!
03-14 10:30:18.320: D/szipinf(27261): Initializing inflate state
03-14 10:30:18.320: D/szipinf(27261): Initializing zlib to inflate
03-14 10:30:18.330: I/jPCT-AE(27261): Memory usage before compacting: 14243 KB used out of 24583 KB. Max. memory available to the VM is 65536 KB.
03-14 10:30:18.380: D/dalvikvm(27261): GC_EXPLICIT freed 452K, 44% free 13791K/24583K, paused 3ms+3ms
03-14 10:30:18.420: D/dalvikvm(27261): GC_EXPLICIT freed 2K, 44% free 13789K/24583K, paused 2ms+3ms
03-14 10:30:18.570: I/jPCT-AE(27261): Memory usage after compacting: 13789 KB used out of 24583 KB. Max. memory available to the VM is 65536 KB.
03-14 10:30:18.590: I/jPCT-AE(27261): Checking for triangle strip...
03-14 10:30:18.590: I/jPCT-AE(27261): Not a triangle strip at position 1!
03-14 10:30:18.630: I/jPCT-AE(27261): Subobject of object 2/object4 compiled to indexed fixed point data using 2598 vertices in 42ms!
03-14 10:30:18.630: I/jPCT-AE(27261): Processing and uploading vertices of subobject of object 2/object4 took 42ms
03-14 10:30:18.630: I/jPCT-AE(27261): Checking for triangle strip...
03-14 10:30:18.630: I/jPCT-AE(27261): Not a triangle strip at position 1!
03-14 10:30:18.630: I/jPCT-AE(27261): Subobject of object 2/object4 compiled to indexed fixed point data using 384 vertices in 2ms!
03-14 10:30:18.630: I/jPCT-AE(27261): Processing and uploading vertices of subobject of object 2/object4 took 2ms
03-14 10:30:18.630: I/jPCT-AE(27261): Object 2/object4 compiled to 2 subobjects in 62ms!
03-14 10:30:18.630: I/jPCT-AE(27261): Object 'object4' uses multiple texture sets!
03-14 10:30:18.640: I/jPCT-AE(27261): Checking for triangle strip...
03-14 10:30:18.640: I/jPCT-AE(27261): Not a triangle strip at position 1!
03-14 10:30:18.650: I/jPCT-AE(27261): Subobject of object 3/object5 compiled to indexed fixed point data using 2580 vertices in 14ms!
03-14 10:30:18.650: I/jPCT-AE(27261): Processing and uploading vertices of subobject of object 3/object5 took 14ms
03-14 10:30:18.650: I/jPCT-AE(27261): Object 3/object5 compiled to 1 subobjects in 20ms!
03-14 10:30:18.650: I/jPCT-AE(27261): Object 'object5' uses one texture set!
03-14 10:30:18.650: I/jPCT-AE(27261): 0fps
03-14 10:30:18.650: I/jPCT-AE(27261): New texture's id is: 1
03-14 10:30:18.650: I/jPCT-AE(27261): New texture uploaded: com.threed.jpct.Texture@40ab6d08 in thread Thread[GLThread 23,5,main]
03-14 10:30:18.650: I/jPCT-AE(27261): Creating buffers...
03-14 10:30:18.650: I/jPCT-AE(27261): VBO created for object 'object5'
03-14 10:30:18.700: D/dalvikvm(27261): GC_FOR_ALLOC freed 1416K, 44% free 13930K/24583K, paused 38ms
03-14 10:30:18.700: I/dalvikvm-heap(27261): Grow heap (frag case) to 15.829MB for 2220450-byte allocation
03-14 10:30:18.740: D/dalvikvm(27261): GC_FOR_ALLOC freed 0K, 35% free 16098K/24583K, paused 30ms
03-14 10:30:18.790: D/dalvikvm(27261): GC_CONCURRENT freed <1K, 35% free 16099K/24583K, paused 2ms+4ms
03-14 10:30:18.890: D/dalvikvm(27261): GC_FOR_ALLOC freed <1K, 35% free 16099K/24583K, paused 29ms
03-14 10:30:18.890: I/dalvikvm-heap(27261): Grow heap (frag case) to 20.066MB for 4442412-byte allocation
03-14 10:30:18.930: D/dalvikvm(27261): GC_FOR_ALLOC freed 0K, 17% free 20437K/24583K, paused 29ms
03-14 10:30:18.990: D/dalvikvm(27261): GC_CONCURRENT freed 2168K, 26% free 18269K/24583K, paused 2ms+3ms
03-14 10:30:19.030: I/jPCT-AE(27261): Uncompressed 1110217 bytes to 4194304 bytes in 375ms!
03-14 10:30:19.060: D/dalvikvm(27261): GC_FOR_ALLOC freed <1K, 26% free 18269K/24583K, paused 30ms
03-14 10:30:19.070: I/dalvikvm-heap(27261): Grow heap (frag case) to 21.949MB for 4194320-byte allocation
03-14 10:30:19.110: D/dalvikvm(27261): GC_FOR_ALLOC freed 0K, 23% free 22365K/28743K, paused 30ms
03-14 10:30:19.150: D/dalvikvm(27261): GC_CONCURRENT freed <1K, 23% free 22365K/28743K, paused 2ms+4ms
03-14 10:30:19.190: D/dalvikvm(27261): GC_FOR_ALLOC freed <1K, 23% free 22365K/28743K, paused 29ms
03-14 10:30:19.200: I/dalvikvm-heap(27261): Grow heap (frag case) to 25.949MB for 4194320-byte allocation
03-14 10:30:19.250: D/dalvikvm(27261): GC_FOR_ALLOC freed 0K, 20% free 26461K/32903K, paused 38ms
03-14 10:30:19.370: D/dalvikvm(27261): GC_CONCURRENT freed 0K, 20% free 26461K/32903K, paused 2ms+3ms
03-14 10:30:19.400: D/dalvikvm(27261): GC_FOR_ALLOC freed 8435K, 46% free 18026K/32903K, paused 30ms
03-14 10:30:19.420: I/dalvikvm-heap(27261): Grow heap (frag case) to 33.711MB for 16777232-byte allocation
03-14 10:30:19.450: D/dalvikvm(27261): GC_FOR_ALLOC freed <1K, 31% free 34410K/49351K, paused 30ms
03-14 10:30:19.480: D/dalvikvm(27261): GC_FOR_ALLOC freed 0K, 31% free 34410K/49351K, paused 30ms
03-14 10:30:19.490: I/dalvikvm-heap(27261): Grow heap (frag case) to 37.711MB for 4194320-byte allocation
03-14 10:30:19.530: D/dalvikvm(27261): GC_FOR_ALLOC freed 0K, 22% free 38506K/49351K, paused 31ms
03-14 10:30:19.650: D/dalvikvm(27261): GC_CONCURRENT freed 0K, 22% free 38506K/49351K, paused 2ms+4ms
03-14 10:30:19.650: I/jPCT-AE(27261): New texture's id is: 2
03-14 10:30:19.770: D/dalvikvm(27261): GC_FOR_ALLOC freed <1K, 20% free 39530K/49351K, paused 31ms
03-14 10:30:19.770: I/dalvikvm-heap(27261): Grow heap (frag case) to 42.711MB for 4194320-byte allocation
03-14 10:30:19.810: D/dalvikvm(27261): GC_FOR_ALLOC freed 0K, 12% free 43626K/49351K, paused 31ms
03-14 10:30:19.850: I/jPCT-AE(27261): Mipmaps generated by the CPU in 202ms
03-14 10:30:19.860: I/jPCT-AE(27261): New texture uploaded: com.threed.jpct.Texture@40af6ec8 in thread Thread[GLThread 23,5,main]
03-14 10:30:19.860: I/jPCT-AE(27261): Creating buffers...
03-14 10:30:19.860: I/jPCT-AE(27261): VBO created for object 'object4'
03-14 10:30:19.870: D/dalvikvm(27261): GC_CONCURRENT freed 1710K, 12% free 43627K/49351K, paused 2ms+4ms
03-14 10:30:19.900: D/dalvikvm(27261): GC_FOR_ALLOC freed 29696K, 72% free 13930K/49351K, paused 31ms
03-14 10:30:19.900: I/dalvikvm-heap(27261): Grow heap (frag case) to 16.828MB for 3267526-byte allocation
03-14 10:30:19.940: D/dalvikvm(27261): GC_FOR_ALLOC freed 0K, 66% free 17121K/49351K, paused 29ms
03-14 10:30:19.980: D/dalvikvm(27261): GC_CONCURRENT freed <1K, 66% free 17122K/49351K, paused 2ms+4ms
03-14 10:30:20.150: D/dalvikvm(27261): GC_FOR_ALLOC freed <1K, 66% free 17122K/49351K, paused 30ms
03-14 10:30:20.150: I/dalvikvm-heap(27261): Grow heap (frag case) to 23.062MB for 6536076-byte allocation
03-14 10:30:20.200: D/dalvikvm(27261): GC_CONCURRENT freed 0K, 53% free 23505K/49351K, paused 3ms+4ms
03-14 10:30:20.200: I/jPCT-AE(27261): Uncompressed 1633755 bytes to 4194304 bytes in 344ms!
03-14 10:30:20.230: D/dalvikvm(27261): GC_FOR_ALLOC freed 3191K, 59% free 20314K/49351K, paused 30ms
03-14 10:30:20.230: I/dalvikvm-heap(27261): Grow heap (frag case) to 23.946MB for 4194320-byte allocation
03-14 10:30:20.280: D/dalvikvm(27261): GC_CONCURRENT freed 0K, 51% free 24410K/49351K, paused 3ms+3ms
03-14 10:30:20.310: D/dalvikvm(27261): GC_FOR_ALLOC freed <1K, 51% free 24410K/49351K, paused 29ms
03-14 10:30:20.310: I/dalvikvm-heap(27261): Grow heap (frag case) to 27.946MB for 4194320-byte allocation
03-14 10:30:20.430: D/dalvikvm(27261): GC_CONCURRENT freed 0K, 43% free 28506K/49351K, paused 2ms+4ms
03-14 10:30:20.460: D/dalvikvm(27261): GC_FOR_ALLOC freed 10479K, 64% free 18026K/49351K, paused 30ms
03-14 10:30:20.460: I/dalvikvm-heap(27261): Forcing collection of SoftReferences for 16777232-byte allocation
03-14 10:30:20.500: D/dalvikvm(27261): GC_BEFORE_OOM freed 0K, 64% free 18026K/49351K, paused 36ms
03-14 10:30:20.500: E/dalvikvm-heap(27261): Out of memory on a 16777232-byte allocation.
03-14 10:30:20.500: I/dalvikvm(27261): "GLThread 23" prio=5 tid=17 RUNNABLE
03-14 10:30:20.500: I/dalvikvm(27261):   | group="main" sCount=0 dsCount=0 obj=0x40d0c0d0 self=0x1f5188
03-14 10:30:20.500: I/dalvikvm(27261):   | sysTid=27321 nice=0 sched=0/0 cgrp=default handle=996312
03-14 10:30:20.500: I/dalvikvm(27261):   | schedstat=( 4951131000 336693000 3072 ) utm=480 stm=15 core=1
03-14 10:30:20.500: I/dalvikvm(27261):   at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
03-14 10:30:20.500: I/dalvikvm(27261):   at java.nio.MemoryBlock.allocate(MemoryBlock.java:92)
03-14 10:30:20.500: I/dalvikvm(27261):   at java.nio.ReadWriteDirectByteBuffer.<init>(ReadWriteDirectByteBuffer.java:46)
03-14 10:30:20.500: I/dalvikvm(27261):   at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:67)
03-14 10:30:20.500: I/dalvikvm(27261):   at com.threed.jpct.GLRenderer.convertTexture(GLRenderer.java:795)
03-14 10:30:20.500: I/dalvikvm(27261):   at com.threed.jpct.GLRenderer.setTextures(GLRenderer.java:2258)
03-14 10:30:20.500: I/dalvikvm(27261):   at com.threed.jpct.GLRenderer.drawVertexArray(GLRenderer.java:2183)
03-14 10:30:20.500: I/dalvikvm(27261):   at com.threed.jpct.World.draw(World.java:1309)
03-14 10:30:20.500: I/dalvikvm(27261):   at com.threed.jpct.World.draw(World.java:1076)
03-14 10:30:20.500: I/dalvikvm(27261):   at com.synapse.android.cricscore.wagonwheel.World3DBase.renderGame(World3DBase.java:393)
03-14 10:30:20.500: I/dalvikvm(27261):   at com.synapse.android.cricscore.wagonwheel.World3DBase.onDrawFrame(World3DBase.java:465)
03-14 10:30:20.500: I/dalvikvm(27261):   at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1431)
03-14 10:30:20.500: I/dalvikvm(27261):   at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1180)
03-14 10:30:20.510: W/dalvikvm(27261): threadid=17: thread exiting with uncaught exception (group=0x401de760)
03-14 10:30:20.510: E/AndroidRuntime(27261): FATAL EXCEPTION: GLThread 23
03-14 10:30:20.510: E/AndroidRuntime(27261): java.lang.OutOfMemoryError
03-14 10:30:20.510: E/AndroidRuntime(27261):    at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
03-14 10:30:20.510: E/AndroidRuntime(27261):    at java.nio.MemoryBlock.allocate(MemoryBlock.java:92)
03-14 10:30:20.510: E/AndroidRuntime(27261):    at java.nio.ReadWriteDirectByteBuffer.<init>(ReadWriteDirectByteBuffer.java:46)
03-14 10:30:20.510: E/AndroidRuntime(27261):    at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:67)
03-14 10:30:20.510: E/AndroidRuntime(27261):    at com.threed.jpct.GLRenderer.convertTexture(GLRenderer.java:795)
03-14 10:30:20.510: E/AndroidRuntime(27261):    at com.threed.jpct.GLRenderer.setTextures(GLRenderer.java:2258)
03-14 10:30:20.510: E/AndroidRuntime(27261):    at com.threed.jpct.GLRenderer.drawVertexArray(GLRenderer.java:2183)
03-14 10:30:20.510: E/AndroidRuntime(27261):    at com.threed.jpct.World.draw(World.java:1309)
03-14 10:30:20.510: E/AndroidRuntime(27261):    at com.threed.jpct.World.draw(World.java:1076)
03-14 10:30:20.510: E/AndroidRuntime(27261):    at com.synapse.android.cricscore.wagonwheel.World3DBase.renderGame(World3DBase.java:393)
03-14 10:30:20.510: E/AndroidRuntime(27261):    at com.synapse.android.cricscore.wagonwheel.World3DBase.onDrawFrame(World3DBase.java:465)
03-14 10:30:20.510: E/AndroidRuntime(27261):    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1431)
03-14 10:30:20.510: E/AndroidRuntime(27261):    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1180)
03-14 10:30:20.570: D/WebViewActivity(27261): ### onStop is being called
03-14 10:30:22.530: I/dalvikvm(27261): threadid=4: reacting to signal 3
03-14 10:30:22.540: I/dalvikvm(27261): Wrote stack traces to '/data/anr/traces.txt'

83
Support / Error code 1000 and black screen issue
« on: March 13, 2012, 03:52:32 am »
When the application sleeps when jpct is loaded, I'm getting messages in logcat "Error code 1000" from jpct.

When I woke up the app (pressed the power button and unlocked) I got a out of memory error, which I found odd as it had ~20 megs free before the event.

But now it seems to be a blank screen. Is this a bug or something in my code? None of the other phones seem to have this problem.

Its a LG Optimus 2x.

Quote
03-13 15:45:55.431: I/jPCT-AE(12643): OpenGL vendor:     NVIDIA Corporation
03-13 15:45:55.431: I/jPCT-AE(12643): OpenGL renderer:   NVIDIA AP
03-13 15:45:55.431: I/jPCT-AE(12643): OpenGL version:    OpenGL ES-CM 1.1
03-13 15:45:55.431: I/jPCT-AE(12643): OpenGL renderer initialized (using 2 texture stages)


Edit: Here is the memory crash, that seems repeatable:


Quote
03-13 16:05:28.981: I/jPCT-AE(14132): GL20 render pipeline initialized!
03-13 16:05:28.981: I/jPCT-AE(14132): OpenGL vendor:     NVIDIA Corporation
03-13 16:05:28.981: I/jPCT-AE(14132): OpenGL renderer:   NVIDIA Tegra
03-13 16:05:28.981: I/jPCT-AE(14132): OpenGL version:    OpenGL ES 2.0
03-13 16:05:28.981: I/jPCT-AE(14132): OpenGL renderer initialized (using 2 texture stages)
03-13 16:05:28.981: I/jPCT-AE(14132): 1fps
03-13 16:05:29.191: D/dalvikvm(14132): GC_FOR_MALLOC freed 10794K, 62% free 11431K/29959K, external 13400K/15441K, paused 25ms
03-13 16:05:29.191: I/dalvikvm-heap(14132): Grow heap (frag case) to 30.569MB for 4194320-byte allocation
03-13 16:05:29.231: D/dalvikvm(14132): GC_FOR_MALLOC freed 65K, 49% free 15462K/29959K, external 13400K/15441K, paused 23ms
03-13 16:05:29.271: D/dalvikvm(14132): GC_CONCURRENT freed 0K, 49% free 15462K/29959K, external 13400K/15441K, paused 2ms+3ms
03-13 16:05:29.291: D/dalvikvm(14132): GC_FOR_MALLOC freed <1K, 49% free 15461K/29959K, external 13400K/15441K, paused 23ms
03-13 16:05:29.301: I/dalvikvm-heap(14132): Grow heap (frag case) to 34.504MB for 4194320-byte allocation
03-13 16:05:29.341: D/dalvikvm(14132): GC_FOR_MALLOC freed 0K, 35% free 19557K/29959K, external 13400K/15441K, paused 23ms
03-13 16:05:29.521: D/dalvikvm(14132): GC_CONCURRENT freed <1K, 35% free 19557K/29959K, external 13400K/15441K, paused 2ms+3ms
03-13 16:05:29.551: D/dalvikvm(14132): GC_EXTERNAL_ALLOC freed 8435K, 63% free 11122K/29959K, external 13400K/15441K, paused 30ms
03-13 16:05:29.711: I/jPCT-AE(14132): OpenGL context has changed(2)...recovering for renderer 3/2!
03-13 16:05:29.711: I/jPCT-AE(14132): Creating buffers...
03-13 16:05:29.981: D/dalvikvm(14132): GC_FOR_MALLOC freed 9562K, 66% free 10218K/29959K, external 14759K/15441K, paused 23ms
03-13 16:05:29.981: I/dalvikvm-heap(14132): Forcing collection of SoftReferences for 6536076-byte allocation
03-13 16:05:30.001: D/dalvikvm(14132): GC_FOR_MALLOC freed 8K, 66% free 10210K/29959K, external 14759K/15441K, paused 22ms
03-13 16:05:30.001: E/dalvikvm-heap(14132): Out of memory on a 6536076-byte allocation.
03-13 16:05:30.001: I/dalvikvm(14132): "GLThread 24" prio=5 tid=21 RUNNABLE
03-13 16:05:30.001: I/dalvikvm(14132):   | group="main" sCount=0 dsCount=0 obj=0x405758a0 self=0x5b2688
03-13 16:05:30.001: I/dalvikvm(14132):   | sysTid=14516 nice=0 sched=0/0 cgrp=default handle=6389416
03-13 16:05:30.001: I/dalvikvm(14132):   | schedstat=( 19215072000 17495376000 22424 )
03-13 16:05:30.001: I/dalvikvm(14132):   at java.io.ByteArrayOutputStream.expand(ByteArrayOutputStream.java:~91)
03-13 16:05:30.001: I/dalvikvm(14132):   at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:216)
03-13 16:05:30.001: I/dalvikvm(14132):   at com.threed.jpct.ZipHelper.unzip(ZipHelper.java:30)
03-13 16:05:30.001: I/dalvikvm(14132):   at com.threed.jpct.GLRenderer.convertTexture(GLRenderer.java:769)
03-13 16:05:30.001: I/dalvikvm(14132):   at com.threed.jpct.GLRenderer.setTextures(GLRenderer.java:2258)
03-13 16:05:30.001: I/dalvikvm(14132):   at com.threed.jpct.GLRenderer.drawVertexArray(GLRenderer.java:2183)
03-13 16:05:30.001: I/dalvikvm(14132):   at com.threed.jpct.World.draw(World.java:1309)
03-13 16:05:30.001: I/dalvikvm(14132):   at com.threed.jpct.World.draw(World.java:1076)
03-13 16:05:30.001: I/dalvikvm(14132):   at com.synapse.android.cricscore.wagonwheel.World3DBase.renderGame(World3DBase.java:362)
03-13 16:05:30.001: I/dalvikvm(14132):   at com.synapse.android.cricscore.wagonwheel.World3DBase.onDrawFrame(World3DBase.java:423)
03-13 16:05:30.001: I/dalvikvm(14132):   at com.synapse.android.cricscore.wagonwheel.WWActivity$1.onDrawFrame(WWActivity.java:187)
03-13 16:05:30.001: I/dalvikvm(14132):   at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1363)
03-13 16:05:30.001: I/dalvikvm(14132):   at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
03-13 16:05:30.011: W/dalvikvm(14132): threadid=21: thread exiting with uncaught exception (group=0x4001d560)
03-13 16:05:30.011: E/AndroidRuntime(14132): FATAL EXCEPTION: GLThread 24
03-13 16:05:30.011: E/AndroidRuntime(14132): java.lang.OutOfMemoryError
03-13 16:05:30.011: E/AndroidRuntime(14132):    at java.io.ByteArrayOutputStream.expand(ByteArrayOutputStream.java:91)
03-13 16:05:30.011: E/AndroidRuntime(14132):    at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:216)
03-13 16:05:30.011: E/AndroidRuntime(14132):    at com.threed.jpct.ZipHelper.unzip(ZipHelper.java:30)
03-13 16:05:30.011: E/AndroidRuntime(14132):    at com.threed.jpct.GLRenderer.convertTexture(GLRenderer.java:769)
03-13 16:05:30.011: E/AndroidRuntime(14132):    at com.threed.jpct.GLRenderer.setTextures(GLRenderer.java:2258)
03-13 16:05:30.011: E/AndroidRuntime(14132):    at com.threed.jpct.GLRenderer.drawVertexArray(GLRenderer.java:2183)
03-13 16:05:30.011: E/AndroidRuntime(14132):    at com.threed.jpct.World.draw(World.java:1309)
03-13 16:05:30.011: E/AndroidRuntime(14132):    at com.threed.jpct.World.draw(World.java:1076)
03-13 16:05:30.011: E/AndroidRuntime(14132):    at com.synapse.android.cricscore.wagonwheel.World3DBase.renderGame(World3DBase.java:362)
03-13 16:05:30.011: E/AndroidRuntime(14132):    at com.synapse.android.cricscore.wagonwheel.World3DBase.onDrawFrame(World3DBase.java:423)
03-13 16:05:30.011: E/AndroidRuntime(14132):    at com.synapse.android.cricscore.wagonwheel.WWActivity$1.onDrawFrame(WWActivity.java:187)
03-13 16:05:30.011: E/AndroidRuntime(14132):    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1363)
03-13 16:05:30.011: E/AndroidRuntime(14132):    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)

84
Found moving the camera a little annoying, but good serializer tool.

Question how do I load the mtl file for a obj model?

85
Bugs / Re: Weird errors in Samsung Y logcat
« on: March 12, 2012, 10:19:15 pm »
I've tested more for OpenGL 2.0 it seems to fun fine but just the logcat is spammed.

OpenGL 1.1 is fine, no spam. So what I've done is only turn on OpenGL 2.0 when I need AA support.

Quote
Given that this GPU is really strange and i never saw it before, i wouldn't trust the driver quality much in this case.
Haha ok.

86
Bugs / Re: Weird errors in Samsung Y logcat
« on: March 12, 2012, 09:40:22 am »
I'll give OpenGL 1.1 a try once I'm back at work. If that works fine I can just set OpenGL 2.0 to be on the higher end phones.

What about the mem_get_free_space and mem_get_free_space showing as errors?

87
Bugs / Re: Weird errors in Samsung Y logcat
« on: March 12, 2012, 07:50:32 am »
Quote
03-12 19:47:53.984: I/jPCT-AE(13003): GL20 render pipeline initialized!
03-12 19:47:53.984: I/jPCT-AE(13003): OpenGL vendor:     Broadcom
03-12 19:47:53.984: I/jPCT-AE(13003): OpenGL renderer:   VideoCore IV HW
03-12 19:47:53.984: I/jPCT-AE(13003): OpenGL version:    OpenGL ES 2.0
03-12 19:47:53.992: I/jPCT-AE(13003): OpenGL renderer initialized (using 2 texture stages)
I don't have time to test any more atm, but seems it could be something to do with lines (maybe hiding).

Basically the error is spamming 20 lines per second.

Here is more logs, me going into the 3d world and then quickly backing out:

Quote
03-12 19:47:53.750: I/jPCT-AE(13003): Text file from InputStream loaded...2008 bytes
03-12 19:47:53.757: D/WebViewActivity(13003): ### onStop is being called
03-12 19:47:53.757: I/jPCT-AE(13003): Default vertex shader is: /defaultVertexShader.src
03-12 19:47:53.765: I/jPCT-AE(13003): Loading file from InputStream
03-12 19:47:53.773: I/jPCT-AE(13003): Text file from InputStream loaded...3897 bytes
03-12 19:47:53.773: I/jPCT-AE(13003): Compiling shader program!
03-12 19:47:53.804: I/jPCT-AE(13003): Handles of 3: 6/1245184
03-12 19:47:53.804: I/jPCT-AE(13003): Loading default shaders (Tex0)!
03-12 19:47:53.804: I/jPCT-AE(13003): 0 shaders in replacement map!
03-12 19:47:53.804: I/jPCT-AE(13003): Default fragment shader is: /defaultFragmentShader.src
03-12 19:47:53.804: I/jPCT-AE(13003): Loading file from InputStream
03-12 19:47:53.804: I/jPCT-AE(13003): Text file from InputStream loaded...201 bytes
03-12 19:47:53.804: I/jPCT-AE(13003): Default vertex shader is: /defaultVertexShader.src
03-12 19:47:53.812: I/jPCT-AE(13003): Loading file from InputStream
03-12 19:47:53.812: I/jPCT-AE(13003): Text file from InputStream loaded...3421 bytes
03-12 19:47:53.812: I/jPCT-AE(13003): Compiling shader program!
03-12 19:47:53.828: I/jPCT-AE(13003): Handles of 6: 3/720896
03-12 19:47:53.828: I/jPCT-AE(13003): Loading default shaders (Tex1)!
03-12 19:47:53.828: I/jPCT-AE(13003): 0 shaders in replacement map!
03-12 19:47:53.828: I/jPCT-AE(13003): Default fragment shader is: /defaultFragmentShader.src
03-12 19:47:53.835: I/jPCT-AE(13003): Loading file from InputStream
03-12 19:47:53.835: I/jPCT-AE(13003): Text file from InputStream loaded...871 bytes
03-12 19:47:53.835: I/jPCT-AE(13003): Default vertex shader is: /defaultVertexShader.src
03-12 19:47:53.835: I/jPCT-AE(13003): Loading file from InputStream
03-12 19:47:53.835: I/jPCT-AE(13003): Text file from InputStream loaded...3791 bytes
03-12 19:47:53.835: I/jPCT-AE(13003): Compiling shader program!
03-12 19:47:53.859: I/jPCT-AE(13003): Handles of 9: 4/1048576
03-12 19:47:53.859: I/jPCT-AE(13003): Loading default shaders (Tex0Light0)!
03-12 19:47:53.859: I/jPCT-AE(13003): 0 shaders in replacement map!
03-12 19:47:53.859: I/jPCT-AE(13003): Default fragment shader is: /defaultFragmentShader.src
03-12 19:47:53.859: I/jPCT-AE(13003): Loading file from InputStream
03-12 19:47:53.859: I/jPCT-AE(13003): Text file from InputStream loaded...201 bytes
03-12 19:47:53.859: I/jPCT-AE(13003): Default vertex shader is: /defaultVertexShader.src
03-12 19:47:53.867: I/jPCT-AE(13003): Loading file from InputStream
03-12 19:47:53.867: I/jPCT-AE(13003): Text file from InputStream loaded...1200 bytes
03-12 19:47:53.867: I/jPCT-AE(13003): Compiling shader program!
03-12 19:47:53.875: I/jPCT-AE(13003): Handles of 12: 3/589824
03-12 19:47:53.875: I/jPCT-AE(13003): Loading default shaders (Fog)!
03-12 19:47:53.875: I/jPCT-AE(13003): 0 shaders in replacement map!
03-12 19:47:53.875: I/jPCT-AE(13003): Default fragment shader is: /defaultFragmentShader.src
03-12 19:47:53.882: I/jPCT-AE(13003): Loading file from InputStream
03-12 19:47:53.882: I/jPCT-AE(13003): Text file from InputStream loaded...328 bytes
03-12 19:47:53.890: I/jPCT-AE(13003): Default vertex shader is: /defaultVertexShader.src
03-12 19:47:53.890: I/jPCT-AE(13003): Loading file from InputStream
03-12 19:47:53.890: I/jPCT-AE(13003): Text file from InputStream loaded...3668 bytes
03-12 19:47:53.890: I/jPCT-AE(13003): Compiling shader program!
03-12 19:47:53.906: I/jPCT-AE(13003): Handles of 15: 3/917504
03-12 19:47:53.906: I/jPCT-AE(13003): Loading default shaders (FogLight0)!
03-12 19:47:53.914: I/jPCT-AE(13003): 0 shaders in replacement map!
03-12 19:47:53.914: I/jPCT-AE(13003): Default fragment shader is: /defaultFragmentShader.src
03-12 19:47:53.914: I/jPCT-AE(13003): Loading file from InputStream
03-12 19:47:53.914: I/jPCT-AE(13003): Text file from InputStream loaded...328 bytes
03-12 19:47:53.914: I/jPCT-AE(13003): Default vertex shader is: /defaultVertexShader.src
03-12 19:47:53.914: I/jPCT-AE(13003): Loading file from InputStream
03-12 19:47:53.921: I/jPCT-AE(13003): Text file from InputStream loaded...1516 bytes
03-12 19:47:53.921: I/jPCT-AE(13003): Compiling shader program!
03-12 19:47:53.929: I/jPCT-AE(13003): Handles of 18: 3/851968
03-12 19:47:53.929: I/jPCT-AE(13003): Loading default shaders (Tex0Amb)!
03-12 19:47:53.929: I/jPCT-AE(13003): 0 shaders in replacement map!
03-12 19:47:53.929: I/jPCT-AE(13003): Default fragment shader is: /defaultFragmentShader.src
03-12 19:47:53.929: I/jPCT-AE(13003): Loading file from InputStream
03-12 19:47:53.937: I/jPCT-AE(13003): Text file from InputStream loaded...199 bytes
03-12 19:47:53.937: I/jPCT-AE(13003): Default vertex shader is: /defaultVertexShader.src
03-12 19:47:53.937: I/jPCT-AE(13003): Loading file from InputStream
03-12 19:47:53.937: I/jPCT-AE(13003): Text file from InputStream loaded...757 bytes
03-12 19:47:53.937: I/jPCT-AE(13003): Compiling shader program!
03-12 19:47:53.945: I/jPCT-AE(13003): Handles of 21: 2/327680
03-12 19:47:53.945: I/jPCT-AE(13003): Loading default shaders (Depth)!
03-12 19:47:53.953: I/jPCT-AE(13003): 0 shaders in replacement map!
03-12 19:47:53.953: I/jPCT-AE(13003): Default fragment shader is: /defaultFragmentShader.src
03-12 19:47:53.953: I/jPCT-AE(13003): Loading file from InputStream
03-12 19:47:53.953: I/jPCT-AE(13003): Text file from InputStream loaded...745 bytes
03-12 19:47:53.953: I/jPCT-AE(13003): Default vertex shader is: /defaultVertexShader.src
03-12 19:47:53.960: I/jPCT-AE(13003): Loading file from InputStream
03-12 19:47:53.960: I/jPCT-AE(13003): Text file from InputStream loaded...248 bytes
03-12 19:47:53.968: I/jPCT-AE(13003): Compiling shader program!
03-12 19:47:53.984: I/jPCT-AE(13003): Handles of 24: 0/0
03-12 19:47:53.984: I/jPCT-AE(13003): GL20 render pipeline initialized!
03-12 19:47:53.984: I/jPCT-AE(13003): OpenGL vendor:     Broadcom
03-12 19:47:53.984: I/jPCT-AE(13003): OpenGL renderer:   VideoCore IV HW
03-12 19:47:53.984: I/jPCT-AE(13003): OpenGL version:    OpenGL ES 2.0
03-12 19:47:53.992: I/jPCT-AE(13003): OpenGL renderer initialized (using 2 texture stages)
03-12 19:47:53.992: I/jPCT-AE(13003): 29fps
03-12 19:47:54.046: D/dalvikvm(13003): GC_FOR_MALLOC freed 4489K, 78% free 6217K/27527K, external 3644K/4271K, paused 52ms
03-12 19:47:54.140: D/dalvikvm(13003): GC_CONCURRENT freed 63K, 70% free 8321K/27527K, external 3644K/4271K, paused 5ms+7ms
03-12 19:47:54.390: D/dalvikvm(13003): GC_FOR_MALLOC freed 67K, 70% free 8437K/27527K, external 3644K/4271K, paused 48ms
03-12 19:47:54.484: D/dalvikvm(13003): GC_FOR_MALLOC freed 47K, 54% free 12729K/27527K, external 3644K/4271K, paused 46ms
03-12 19:47:54.734: D/dalvikvm(13003): GC_CONCURRENT freed 2179K, 62% free 10578K/27527K, external 3644K/4271K, paused 5ms+7ms
03-12 19:47:54.953: D/dalvikvm(13003): GC_FOR_MALLOC freed 27K, 62% free 10575K/27527K, external 3644K/4271K, paused 46ms
03-12 19:47:57.140: W/KeyCharacterMap(13003): Can't open keycharmap file
03-12 19:47:57.140: W/KeyCharacterMap(13003): Error loading keycharmap file '/system/usr/keychars/sec_touchscreen_.kcm.bin'. hw.keyboards.65538.devname='sec_touchscreen '
03-12 19:47:57.140: W/KeyCharacterMap(13003): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
03-12 19:47:57.187: I/jPCT-AE(13003): OpenGL context has changed(2)...recovering for renderer 2/1!
03-12 19:47:57.187: I/jPCT-AE(13003): Creating buffers...
03-12 19:47:57.187: I/jPCT-AE(13003): Compiling shader program!
03-12 19:47:57.195: I/jPCT-AE(13003): Handles of 27: 0/65536
03-12 19:47:57.281: I/GLThread(13003): onPause tid=33
03-12 19:47:57.281: I/Main thread(13003): onPause waiting for mPaused.
03-12 19:47:57.320: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.320: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.320: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.320: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.320: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.320: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.320: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.328: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.328: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.328: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.328: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.328: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.328: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.328: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.328: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.328: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.328: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.328: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.328: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.328: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.328: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.335: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.335: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.335: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.335: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.335: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.335: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.335: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.335: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.335: E/(13003): Unable to Find Phys Addr for 0
03-12 19:47:57.335: I/GLThread(13003): mPaused is now true tid=33
03-12 19:47:57.335: I/GLThread(13003): releasing EGL surface because paused tid=33
03-12 19:47:57.335: W/EglHelper(13003): destroySurface()  tid=33
03-12 19:47:57.343: D/BRCM_EGL(13003): eglMakeCurrent(NULL) Thread: 13271
03-12 19:47:57.343: D/BRCM_EGL(13003): eglDestroySurface() surface: 0x641a00, android window 0x5f2280, Thread: 13271
03-12 19:47:57.343: W/EglHelper(13003): finish() tid=33
03-12 19:47:57.343: D/BRCM_EGL(13003): eglDestroyContext() context: 0x6c49a8, VC context: 1, Thread 13271
03-12 19:47:57.343: E/EGL_SERVER(13003): pid mem_get_free_space before =  5fffa0
03-12 19:47:57.343: E/EGL_SERVER(13003): pid mem_get_free_space =  5fffa0
03-12 19:47:57.351: I/GLThread(13003): releasing EGL context because paused tid=33
03-12 19:47:57.351: I/GLThread(13003): sending render notification tid=33

88
Bugs / Weird errors in Samsung Y logcat
« on: March 12, 2012, 03:54:28 am »
Not sure if its anything to worry about but I keep getting such errors in the logcat:

Quote
03-12 15:48:20.453: D/BRCM_EGL(9668): eglDestroyContext() context: 0x4be3f0, VC context: 1, Thread 9752
03-12 15:48:20.460: E/EGL_SERVER(9668): pid mem_get_free_space before =  5fffa0
03-12 15:48:20.460: E/EGL_SERVER(9668): pid mem_get_free_space =  5fffa0
03-12 15:48:20.468: I/GLThread(9668): releasing EGL context because paused tid=30
03-12 15:48:20.593: I/GLThread(9668): noticed surfaceView surface lost tid=30

Also had my logcat spammed full pages of "Unable to Find Phys Addr for 0" as errors, though forgot to copy the log. I'll post it again when it happens.

Thought I'll let you know just in case it leads to a bug/crash.


Edit:
Repeatable and just spams the whole logcat when JPCT is loaded. Can't be good :S
Quote
03-12 15:59:20.023: E/(10035): Unable to Find Phys Addr for 0

89
Support / Re: .Md3 support
« on: March 11, 2012, 06:51:21 am »
Quote
@zammbi, there is a project in google code that deals with this.
One could use that then :)

I believe Collada is the next model type to be added into JPCT.

90
Support / Re: .Md3 support
« on: March 11, 2012, 04:42:38 am »
Wasn't there a project by someone who made a .Md3 library?

Pages: 1 ... 4 5 [6] 7 8 ... 25