GraphicsTroubleshooting

=Launcher/Renderscript crash during boot (Android)=

Symptoms

 * This is applicable to Froyo builds from TI (git.omapzoom.org) sources
 * The Android file-system does not have the appropriate SGX DDK binaries
 * A crash during boot (see logcat) which appears to be around the Launcher app and RenderScript

An excerpt from an example crash: I/WindowManager( 1521): WIN DEATH: Window{45cbb4c0 com.android.launcher/com.android.launcher2.Launcher paused=false} I/WindowManager( 1521): WIN DEATH: Window{45ccffe0 SurfaceView paused=false} I/ActivityManager( 1521): Process com.android.launcher (pid 5876) has died. I/ActivityManager( 1521): Start proc com.android.launcher for activity com.android.launcher/com.android.launcher2.Launcher: pid=5888 uid=10008 gids={} I/UsageStats( 1521): Unexpected resume of com.android.launcher while already resumed in com.android.launcher I/ActivityThread( 5888): Publishing provider com.android.launcher2.settings: com.android.launcher2.LauncherProvider V/RenderScript_jni( 5888): createRenderScript V/RenderScript( 5888): rsContextCreateGL 0x131530, 1 V/RenderScript( 5888): RS Launching thread

Fix / Workaround
Explanation: the UI Launcher application is now 3D accelerated (via Renderscript/OGLES2). Unfortunately, the Android software GL implementation does not support Renderscript so if you do not have the SGX DDK binaries in the file-system the Launcher application will crash.

The TI/Blaze "board overlay package" enables 3D acceleration.

Workaround:

$MYDROID/device/ti/blaze/overlay/packages/apps/Launcher2/res/layout/all_apps.xml
 * 1) Rename, move or delete the following file:

cd packages/apps/Launcher2
 * 1) Build the Launcher app.

mm -B ; # to rebuild

cd $MYDROID adb install -r out/target/product/blaze/system/app/Launcher2.apk
 * 1) Copy the rebuilt Launcher application into your Android file-system
 * 2) Alternatively install the new APK with adb:

Alternatively, obtain the relevant SGX DDK binaries and put them in your file-system.

Will this be fixed?
Probably not. The UI Launcher performance is significantly improved when it utilizes 3D acceleration, enabling this also allows us to validate that this Launcher functionality works in our releases.

Developers and downstream integrators will need to patch their file-systems as a matter of course or ideally obtain the small number of SGX binaries which need to be added for 3D acceleration.

Downstream integrators should examine the contents of $MYDROID/device/ti/blaze/overlay/ as a matter of course or create their own board configuration.