← Back to team overview

tiomap-dev team mailing list archive

[Bug 999088] Re: Panda: Continous "System UI has stopped" messages on main UI on setting wallpaper.


It seems the code assumes that once initGL() succeeds, no further errors
need to be handled.

I've made a patch where I catch any RuntimeError when rendering the
wallpaper with OpenGL, and fall back to Canvas rendering there. This
prevents SystemUI from crashing, but doesn't always correctly render the
wallpaper. Not sure why it sometimes fails to render the wallpaper.

** Patch added: "Fallback to Canvas based rendering on error"

You received this bug notification because you are a member of TI OMAP
Developers, which is subscribed to linaro-landing-team-ti.

  Panda: Continous "System UI has stopped" messages on main UI on
  setting wallpaper.

Status in Linaro Android:
Status in Linaro Texas Instruments Landing Team:
  Won't Fix

Bug description:
  Settings->display->wallpaper->chose from available wallpaper and set wallpaper.
  Then continous messages start appearng on UI :
  " Unfortunately, System UI has stopped"

  These messages do not disaapear on selecting "Ok"(the only option for
  popup message) button.

  Also even after reboot same messages reappear, need to reflash android
  image on sd card to get things working again and get rid of this

  Logs Snippet:
  D/OpenGLRenderer( 2071): Flushing caches (mode 1)
  D/libEGL  ( 1576): loaded /system/lib/egl/libGLES_android.so
  D/libEGL  ( 1576): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
  D/libEGL  ( 1576): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
  D/libEGL  ( 1576): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
  D/AndroidRuntime( 1576): Shutting down VM
  W/dalvikvm( 1576): threadid=1: thread exiting with uncaught exception (group=0x40b861f8)
  E/AndroidRuntime( 1576): FATAL EXCEPTION: main
  E/AndroidRuntime( 1576): java.lang.RuntimeException: createWindowSurface failed EGL_BAD_ALLOC
  E/AndroidRuntime( 1576):        at com.android.systemui.ImageWallpaper$DrawableEngine.initGL(ImageWallpaper.java:586)
  E/AndroidRuntime( 1576):        at com.android.systemui.ImageWallpaper$DrawableEngine.drawWallpaperWithOpenGL(ImageWallpaper.java:384)
  E/AndroidRuntime( 1576):        at com.android.systemui.ImageWallpaper$DrawableEngine.drawFrameLocked(ImageWallpaper.java:314)
  E/AndroidRuntime( 1576):        at com.android.systemui.ImageWallpaper$DrawableEngine.onSurfaceChanged(ImageWallpaper.java:260)
  E/AndroidRuntime( 1576):        at android.service.wallpaper.WallpaperService$Engine.updateSurface(WallpaperService.java:673)
  E/AndroidRuntime( 1576):        at android.service.wallpaper.WallpaperService$Engine.attach(WallpaperService.java:760)
  E/AndroidRuntime( 1576):        at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:1000)
  E/AndroidRuntime( 1576):        at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:61)
  E/AndroidRuntime( 1576):        at android.os.Handler.dispatchMessage(Handler.java:99)
  E/AndroidRuntime( 1576):        at android.os.Looper.loop(Looper.java:137)
  E/AndroidRuntime( 1576):        at android.app.ActivityThread.main(ActivityThread.java:4424)
  E/AndroidRuntime( 1576):        at java.lang.reflect.Method.invokeNative(Native Method)
  E/AndroidRuntime( 1576):        at java.lang.reflect.Method.invoke(Method.java:511)
  E/AndroidRuntime( 1576):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
  E/AndroidRuntime( 1576):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
  E/AndroidRuntime( 1576):        at dalvik.system.NativeStart.main(Native Method)

  Yes, 5/5 time

  Unable to open Menu or any other application through UI after these error messages
  Need to recreate android image on sd card again to start using board again.

  Precondition: Default wallpaper is Linaro live wallpaper(its the default option after bootup)
  1. Set new wallpaper : Settings->display->wallpaper->chose from available wallpaper and set wallpaper.
  Continous messages start appearng on UI :
  " Unfortunately, System UI has stopped"

  8GB Transcend SD class 10
  Pandaboard - 4430 and 4460
  HDMI out to Dell Monitor.
  USB Mouse/Keyboard connected


  Serial logs attached.

To manage notifications about this bug go to: