4

It seems to have started happening after my nexus 5 got its 5.0 update and after I started using the new AppCompat v7 21.0.0 support library.

I can't reproduce the probably reliably, and sometimes the problem presents itself as a redrawing of a segment of the UI again and again, and sometimes is comprised of black and white patterns (not colored static as you seehere). So for example, sometimes a block of the UI that stretches from the left to the right of the screen and goes 20% down the screen, will be repeatedly drawn (with or without static) 5 times down the screen sequentially (so it will be at 0%, 20%, 40%... etc).

Just seems to be happening this terribly in my app, but I have seen small hints of it in other apps.

Anybody ever have this bizarre problem?

Thanks in advance!

visual static

Shep Shapard
  • 148
  • 8
  • 1
    I had the same problem on some complex views. The views in questions where usualy containing webviews, and it only happened on my Nexus 5. This seemed to work as a solution for me: http://stackoverflow.com/questions/27172217/android-systemui-glitches – Brent Watson Feb 03 '15 at 15:19
  • @BrentWatson, Thanks. Strangely enough, this view nor many other views that had these bizarre issues were using WebViews. However, views that were being dismissed as this view was being created may have included WebViews. I went ahead and made sure all my WebViews were good to go as per: [http://stackoverflow.com/questions/27172217/android-systemui-glitches](http://stackoverflow.com/questions/27172217/android-systemui-glitches). It may have helped. I haven't seen the problem occur again but when it did it did so inconsistently so its hard to tell. Thanks for the tip though! – Shep Shapard Feb 03 '15 at 15:27
  • I had this occur on one of my apps and I think it was ultimately some weird bug in my code. I'm digging through to see if I can find the root cause. – bryan Feb 03 '15 at 15:57
  • @bryan, I wouldn't even know where to start looking for a bug in my code that would cause something like this. Short of writing my own pixel pushing code, I can't think of something I could do in the android framework that would result in the framework drawing random colors on the screen. – Shep Shapard Feb 03 '15 at 16:22
  • What's your target API level and the level of app compat you're using? – bryan Feb 04 '15 at 03:15
  • @bryan, target API is 21 and AppCompat is v7 21.0.0 as per `compile com.android.support:appcompat-v7:21.0.0` But like I said, I'm not experiencing the issue anymore. – Shep Shapard Feb 04 '15 at 04:12

1 Answers1

1

Well,

After making this post, I continued to search Stack Overflow for possible solutions and finally stumbled upon the right search key words that landed me on various questions that were very similar but not quite the same as mine. I ultimately followed the WebView advice as suggested on this post: Android SystemUI glitches in Lollipop. I haven't seen the problem happen again on my Nexus 5, but I can't be sure the WebView related solution fixed it because the problem was extremely intermittent and my Nexus 5 has since been updated to 5.0.1. Anyway, worth trying the WebView solution if you are dealing with this issue.

Community
  • 1
  • 1
Shep Shapard
  • 148
  • 8