New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screen flickering on iOS since Flutter 2.10.0 #100522
Comments
Hi @sy5075391, can you upgrade to stable 2.10.3 to see if you still experience this issue? If you do, please provide the updated Thank you |
@sy5075391 If you have a reproducible example of this, I would love to take a look at it. We have a handful of reports of a similar flickering in our production app. Unfortunately, I haven't been able to reproduce it myself, and we've only gotten like 4 reports over the course of 2 months. Still, it would be nice to figure out. Here's what it looks like for us (very similar–I added the black box just to obscure personal details from the user): Flicker.Issue.Censored.mp4We're still on a 2.10.2-based version, so I'll see about updating to 2.10.3 as well (we have a few extra crash fixes and undo support built in). This PR in 2.10.3 seems like the most likely thing to be relevant: flutter/engine#31656 We've only seen this on iOS (15.2.1 and 15.3.1), but not iPadOS. Here's the
Our current engine version (3 commits ahead of 2.10.2): https://github.com/twinsunllc/engine/commits/2.10.2+fixes |
Facing same issue on iOS v15.2.1. Getting similar flickering consistently while using app. [✓] Flutter (Channel stable, 2.10.3, on macOS 12.0.1 21A559 darwin-arm, locale en-IN) Untitled.mp4 |
Hi @abdulrehmank7, can you provide a complete minimal reproducible code sample? |
The issue happens randomly. We cannot isolate and replicate the bug. |
Without a reproducible sample, it's going to be difficult for us to act on this issue |
Not sure how can help you here. But definitely more people will report this issue soon. |
@abdulrehmank7 That's interesting...we also have bitcode disabled...I tried to enable it recently and had issues linking with our custom engine, unfortunately. That would be really strange if that's the issue, but who knows... I assume your app is not open source, so I can't test it out myself, but are you able to see the issue yourself with any reasonable frequency? (We've only had reports from customers, unfortunately, haven't been able to see the issue ourselves). I'm hopeful that it will kinda just go away in a future release...if you're able to make it happen at all, it might be worth testing out the |
An update here – unfortunately we're still having reports of the issue on our latest build (based on flutter 2.10.4) |
I got the same issue after upgrade to flutter 2.10.3. The issue happens randomly. the device is iOS 15.0.1. This page has a webview which is not flickering, but the appbar is flickering normal.video.mp4 |
Hi @akindone, can you provide a small sample that reproduces the issue? |
I will provide a sample if I can reproduce this issue |
I have experienced the same problem (both IOS and Android) in two of my apps since the upgrade from 2.8 to 2.10. But the issue happens randomly. so far I cannot isolate and replicate the bug. It happens when the screen either has a lot of images or playing video. |
If anyone else is experiencing this issue, kindly upvote the initial comment on this issue. We would also appreciate it if any Keeping this issue open to track future reports of the same issue. Based on what I've gathered:
Once again, if anyone is able to reproduce and isolate the cause, kindly provide a sample so that we can investigate this. Labeling for visibilty |
@knopp @iskakaushik does this look related to DRM? |
I havent experienced this with impeller yet. I'll try to do more testing. This issue is very hard to recreate and does not happen all the time. I attached a video in this thread as I experienced it while using the app in release mode |
I also experienced it with Impeller once and couldn't reproduce it. I think it was different than on Skia tho because it started blinking with pink tint and at the end just shown pink screen. I did experience this once (pink blinking screen) on Apple's Photos native app on my phone so it's definitely something on native side (but maybe enhanced by Flutter?). |
We use Impeller and blinking is not pink in our case. For us a fix to this issue and #105093 is key. Without them users would rate app 1-star and uninstall it. |
We're experiencing this in our main app with Impeller. Our flashing is pink, for whatever that's worth. We're working to figure out a pattern/trigger and make something reproducible. We're seeing it on a broad range of iPhones, almost all iOS 16.x. As above, if I jump on Console, we're seeing this log with each flash. Flashing is made worse with touch. Touch makes flashing happen, but touch is broken once we get into this state - that is, scrolling is broken, etc.
|
If you are experiencing this with the Impeller backend enabled, we have additional logging instrumentation to log the root cause of the error as well as print the debug description of the faulting render pass. You should see the following log line in the console: "Impeller command buffer could not be committed" followed by a bunch of information. Can you paste that information in the logs please. |
Is there any result? Is it being repaired? |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
We will try to do this. Unfortunately we're having issues seeing it at all when attached to a debugger, and it seems to show up mostly on release builds. But we'll keep trying. |
Also, try testing your apps with the following fix (which is now in the engine repo, but hasn't rolled into the Flutter repo yet): |
Note that the fix mentioned by @flar (flutter/engine#39690) is for #120455, and won't help when the flickering is caused by GPU faults. |
@zanderso My log seems to be caused by threads. Is this related to CPU? |
I confirm we also experienced same flow: app first gets stuck and then flashes when it is opened again. We also use extented_image and images are almost everywhere inside our app. |
This comment was marked as duplicate.
This comment was marked as duplicate.
I experienced flickering both on iOS Simulator (iOS 16.2) and Android physical device (Galaxy s20 FE). We also use quite a number of svg images around the app. Btw, svg images drop performance quite a bit. It's very noticeable on 120 hz screen. |
I experienced appbar flickering after migrating the Flutter version from 2.0.4 to 3.3.10. This happens on physical Pixel 6(Android 13) and Samsung A52s(Android 12, 120 Hz). We also use multiple WebViews on the same screen. |
Did you finally find out what the problem was and how it was solved? |
I summarize some recurrence rules:
maybe is TickerProvider problem |
Hi everyone, Thanks for your patience on this very difficult issue. As you've likely noticed, this thread has become quite long. It has become so long that GitHub's UI has made it essentially impossible for the team to use it. Additionally, we on the Flutter team have also not done a great job of enforcing Flutter's issue hygiene policies on this issue. This has led to a somewhat low signal to noise ratio. The combination of these factors with our inability to reproduce this issue locally requires a change in tactics. Along those lines, I'm going to close and lock this issue, and replace it with multiple issues that attempt to tease out the different situations discussed in this thread, and focus the conversations on details that will help the team fix the problems. Here they are:
Please note that these issues are focused on recent versions of Flutter as the team will not be able to back-port any fixes to older versions. Please also note that on iOS, any reproduction should be with Impeller enabled. Thanks again for your help and continued patience! |
App screen flickers and freezes, when I restart it, it goes away. This happened after upgrading to flutter 2.10.0, it doesn't always happen.
IMG_3285.MOV
The text was updated successfully, but these errors were encountered: