New issue 3 by zaqtiger: crash when run game on eclair devices
http://code.google.com/p/alienbloodbath/issues/detail?id=3
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
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
add error log
Attachments:
abb_error.log 28.1 KB
This issue can only be reproduced by eclair device with TI OMAP
chipset,which will
be released by Google soon.
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?