Vishwanath17 / alienbloodbath

Automatically exported from code.google.com/p/alienbloodbath
GNU General Public License v3.0
0 stars 0 forks source link

crash when run game on eclair devices #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run this game on eclair devices
2. crash happen after press the menu.

This app needs to be revised by the developer. It is making the
assumption that the GL texture names will be positive integers (which
isn't required by the spec). The DDK in SGX, in order to minimize name
collisions uses an algorithm named "linear congruential generator" (as
IMG calls it) to generate textures names, in which more often than not
these values are really high numbers and sometimes even negative numbers.

We've verified this behaviour by disabling the feature above in the DDK
(define #define GLES1_USE_SEQUENTIAL_NAMES) in
../eurasia/eurasiacon/opengles1/names.c, and the apk executes correctly.
However, we recommend not to use this workaround in the DDK in a
production device.

The app seems to be crashing when using a texture name to set the size
of a TextureData structure.

--code snippet from ./src/android/com/abb/Graphics.java--

   // The size must be manually stored for retrieval during the rendering
   // process since the texture coordinate scheme under OpenGL is 
normalized
   // where as under the Android2D back end, texture coordinates are
absolute.
   if (mTextureData.size() <= texture_name) {
     mTextureData.setSize(texture_name + 1);
   }

And at run the Java VM fails with the following message:

D/Graphics::loadImageFromBitmapOpenGL( 1823): Allocated texture handle:
315638026
E/dalvikvm( 1823): Rejecting allocation of 315638027-element array
W/dalvikvm( 1823): threadid=23: thread exiting with uncaught exception
(group=0x4001b190)
E/AndroidRuntime( 1823): Uncaught handler: thread Thread-13 exiting due
to uncaught exception
E/AndroidRuntime( 1823): java.lang.OutOfMemoryError: array size too large

Original issue reported on code.google.com by zaqti...@gmail.com on 21 Oct 2009 at 1:49

GoogleCodeExporter commented 8 years ago
add error log

Original comment by zaqti...@gmail.com on 21 Oct 2009 at 1:51

Attachments:

GoogleCodeExporter commented 8 years ago

This issue can only be reproduced by eclair device with TI OMAP chipset,which 
will 
be released by Google soon.

Original comment by zaqti...@gmail.com on 23 Oct 2009 at 5:16

GoogleCodeExporter commented 8 years ago

BTW, I can build the soucecode, but only the .apk avaliable.
After done install with the .apk, I will can not see any level there.
So I almost can not use it.

I guess I should run the install.sh but after run it, I was reported 
create_demo.sh
not found.

Where can I get it? what's the right steps to build it from source and run it 
on devices?

Original comment by zaqti...@gmail.com on 24 Oct 2009 at 7:16

GoogleCodeExporter commented 8 years ago
This issue happen on Droid phone or Milestone phone everytime! Any update to 
fix 
this issue?

Original comment by zaqti...@gmail.com on 7 Apr 2010 at 5:58