Log in or register to post comments

glGetError

May 8, 2013 - 1:18am #1

Hi, 

I have modified the ImageTarget sample app, and got error when I aimed to the predefined target. 
Here is the error

05-08 14:54:53.878: A/libc(29616): Fatal signal 11 (SIGSEGV) at 0x5db63000 (code=2)

When the logcat throw this error, my app get freezed.

I've tried to search the description error in OpenGL with this error code, provided by this http://www.opengl.org/wiki/OpenGL_Error_Codes

 
but none of those match the error code I got.
 
Does anybody know what are this error  code trying to say?
 
Thanks

 

glGetError

May 9, 2013 - 2:27am #8

Hi, 

Well, last time I used GL_TRIANGLE to create objects that results in many vertices. Then I would try to use GL_TRIANGLE_STRIP instead to compensate some redundant vertices and to see how far it affects my program. 

Thanks

glGetError

May 8, 2013 - 4:14am #7

What you could do is to count the number of vertices that you have in each object and multiply by the numer of objects; then make some tests;

but I don't think that you could come up with an exact number;

as you observed, sometimes it fails and sometimes does not, so there might be a set of concurrent factors playing a role.

As a general advice, I would try to keep the number of objects (and/or the complexity of each model) at a safely low level (i.e. significantly below the numbers at which you see the issue).

Also, note that when using so many objects / polygons, what works on a device might fail on another....

 

glGetError

May 8, 2013 - 2:16am #6

Hi, 

So can we check the maximum number of polygons that my chip can handle? 

I also specify the array 

int myarray[12][12][12]; 

Sometimes it works and sometimes it fails. 

glGetError

May 8, 2013 - 1:52am #5

Ok, then you are probably exceeding the capabilities (e.g. memory or number of polygons of your models) of your graphics chip, which results in a crash.

glGetError

May 8, 2013 - 1:39am #4

Hi,

The error were thrown when I increase the number of object I want to draw. I build the 3D model from the data I store in stack array. 
let's say I created an array 

int myarray[10][10][10];

Here it means that I want to build the 1000 3D model, and it is successful.

I then increase the size to be 

Int myarray[15][15][15];

then it ended up by throwing above error.

Do you have any clue?

Thanks

 

glGetError

May 8, 2013 - 1:31am #3

Hi, 

what are the issues in threading?

is that such as calling a function on seperate thread? 
 

glGetError

May 8, 2013 - 1:25am #2

Hard to tell, but most likely a threading issue.

 

Log in or register to post comments