-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
After exiting app with back button Platform views on Android 14 turn blank on resume. #148662
Comments
@darshankawar , the mentioned issue is different in which the entire app stops drawing on resume. This issue is just with the platform view as you can see that the app bar is visible. Also it recovers after switch from other app. Which does not happen in the other issue. Let me know if you need any other detail to differentiate the issue. |
Thanks for the update @mr-pant. If you see the linked issue, it was solved at Samsung's end. Is there a way for you to check the same behavior on device other than Samsung (ex: Pixel) just to narrow down the issue is Samsung specific or not ?
If you roll back to 3.19.6 and re-run your scenario, you don't see the reported error ? |
The issue happens on Pixel 7 (Android 14) as well. Recording: screen-20240521-172714.mov
I am able to see the issue with 3.19.6 as well but that could also be due to #146499 |
Thank you for filing this bug. @darshankawar the issue has been fixed on the pixel side but that fix has not been deployed to devices yet. It is currently scheduled for the July release of android on pixel. Still working with other manufacturers. |
I just tried reproducing on Android 14 using Flutter master. See attached video: Screen.Recording.2024-05-21.at.2.07.23.PM.mov |
I also could not reproduce on 3.22:
|
The above two tests were against an emulator. Trying on a Pixel 7 Android 14 phone. |
I can reproduce on my physical device. Digging in. |
I've reproduced the issue and have a fix (but I don't like the fix...) This appears to be another instance of the underlying Android bug discussed here. Waiting to hear back from the Android folks on this. |
Just documenting the difference between this bug and #146499:
So, with the back-gesture the onTrimMemory callback doesn't fire but with the up-gesture it does. |
Note, we will include this fix in a 3.22.x point release. |
…14 (#52982) This pull request is created by [automatic cherry pick workflow](https://github.com/flutter/flutter/wiki/Flutter-Cherrypick-Process#automatically-creates-a-cherry-pick-request) Please fill in the form below, and a flutter domain expert will evaluate this cherry pick request. ### Issue Link Fixes flutter/flutter#148662 CP bug flutter/flutter#148885 ### Target stable ### PR Link TBD ### Changelog Description Platform view fix for android 14 when multiple activities are used and onMemoryTrim is called. ### Impacted Users Users shipping flutter apps on android 14 that use platform viewss ### Impact Description Platform views stop rendering new frames. ### Workaround No app level work around. ### Risk low ### Test Coverage no ### Validation Steps App is launched App is backgrounded (via a back-gesture swipe) Android Bug triggers HERE no onTrimMemory callback fires App is resumed Platform views don't render
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to reproduce
The issue looks very similar to #146499 but the steps are different.
This is happening with Flutter 3.22.0
Environment: Samsung Galaxy A53 5G (Android 14)
Steps:
Expected results
Platform view should be rendered at home page.
Actual results
Platform view turns blank at home page.
Further, after the issue is reproduced, if you switch to another app from recent apps launcher , and then switch back again to the sample app, the platform view starts to appear again.
Code sample
Sample is same as #146499:
https://github.com/flutter/flutter/files/14917706/platform_view_test.3.zip
Code sample
Dart:
Platform side:
Screenshots or Video
Video demonstration
Screen_Recording_20240520_120641.mov
Flutter Doctor output
The text was updated successfully, but these errors were encountered: