GraphicsTroubleshooting

From OMAPpedia

Jump to: navigation, search

Contents

[edit] Launcher/Renderscript crash during boot (Android)

[edit] Symptoms

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

[edit] 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:

# Rename, move or delete the following file:
$MYDROID/device/ti/blaze/overlay/packages/apps/Launcher2/res/layout/all_apps.xml
# Build the Launcher app.
cd packages/apps/Launcher2 
mm -B ; # to rebuild 
# Copy the rebuilt Launcher application into your Android file-system
# Alternatively install the new APK with adb:
cd $MYDROID adb install -r out/target/product/blaze/system/app/Launcher2.apk

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

[edit] 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.

Personal tools
Namespaces
Variants
Views
  • Read
  • Edit
  • View history
Actions
Navigation
Toolbox
  • What links here
  • Related changes
  • Special pages
  • Printable version