zulip / zulip-flutter

Future Zulip client using Flutter
Apache License 2.0
163 stars 136 forks source link

Visual glitches when scrolling on Fairphone 3+ #941

Open j-maas opened 1 week ago

j-maas commented 1 week ago

I'm using Android on a Fairphone 3+. When I scroll in the Zulip Beta v0.0.19, I see some weird artifacts.

It doesn't seem to impact functionality, it's just visually annoying.

Curiously, when I try to record my screen on the phone, the glitches don't appear. As soon as the screen recording is stopped, they appear again when scrolling.

I was however able to capture some screenshots of what it looks like. These are only visible for a frame each, but while scrolling there are a lot of such glitches.

Normal Scrolling Scrolling more
Screenshot_20240913-210444.png Screenshot_20240913-210446.png Screenshot_20240913-210450.png
gnprice commented 1 week ago

Interesting, thanks for the report! I don't think we've seen a symptom like that before in this app.

Given these symptoms, I think the issue has to be either in the Flutter engine, or your device's graphics drivers (or I guess possibly the graphics hardware). Flutter is in the late stages of a rewrite of their rendering engine, called Impeller; Impeller is currently in beta on Android, and we're using it in our beta. Being in beta means Impeller still has more bugs than it will when stable, and also that its authors are still busy discovering bugs in a wide variety of devices' graphics drivers, and adding workarounds for those.

Looking in the upstream tracker, here's one open issue with a similar flavor:

I think the Flutter engine developers will probably be able to resolve this issue pretty quickly once they can reproduce it. I'll file an issue upstream and see what further information they ask for.

gnprice commented 1 week ago

Do you happen to have the Android developer tools set up on your machine?

If so, then one thing you can do that's very likely to be helpful is to get via adb logcat the logs that are emitted while reproducing the issue. Some details here on how to conveniently use adb logcat: https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/adb.20logcat/near/1929345

(If not, though, don't worry about it.)

gnprice commented 1 week ago

Filed: