Coder Social home page Coder Social logo

alienbloodbath's People

Watchers

 avatar

alienbloodbath's Issues

Code review request

Purpose of code changes on this branch:
Adding graphics abstraction layer to allow the use of OpenGL for
accelerated rendering where available otherwise falling back to the
traditional Android graphics API.

This is my first time trying this Google Code "issue" system for code
reviews. If we don't like it we can try something else in the future.

Original issue reported on code.google.com by [email protected] on 7 Dec 2008 at 7:52

Attachments:

crash when run game on eclair devices

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 [email protected] on 21 Oct 2009 at 1:49

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.