Skip to content
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 Rotation Delay Issue (White screen) #905

Closed
hyvnua opened this issue Dec 19, 2023 · 2 comments
Closed

Screen Rotation Delay Issue (White screen) #905

hyvnua opened this issue Dec 19, 2023 · 2 comments
Labels
android This issue is specific to the Android Platform. bug This issue refers to a bug in the plugin Flutter issue/bug Problem caused by Flutte that we can't fix

Comments

@hyvnua
Copy link

hyvnua commented Dec 19, 2023

Describe the bug
The screen that rotates when rotating the device works later with Unity, so only the white screen of the flutter is visible. If you keep repeating the rotation, the screen pops up completely white.

"E/BufferQueueProducer (4213): [SurfaceTexture-0-4213-0] (id:107500000002, api:0,p:-1,c:4213) dequeueBuffer: BufferQueue has no connected producer" logs continue to occur while the screen is white.

I/BufferQueueProducer( 4213): SurfaceView - @114ef2f@12#27(BLAST Consumer)27 FrameBooster: VULKAN surface was catched
D/xample.wireles( 4213): FrameBooster: InterpolationGui: UID 10384 detected as using Vulkan

To Reproduce
I followed the example codes "Communicating with and from Unity".

Expected behavior
When the device rotates, Unity and Flutter screens move at the same speed, and sliders stacked in stacks on Unity screens should operate.

Unity (please complete the following information):

  • OS: Windows 10
  • Version: 2021.3.5f1

Flutter

  • Version: 3.16.1

Smartphone (please complete the following information):

  • Device: Samsung Galaxy A53
  • OS: Android
  • Version: 12
@timbotimbo timbotimbo added bug This issue refers to a bug in the plugin android This issue is specific to the Android Platform. Flutter issue/bug Problem caused by Flutte that we can't fix labels Jan 1, 2024
@timbotimbo
Copy link
Collaborator

This looks like a recurring bug with the way Flutter handles platform views. Behaviour might have changed in newer Flutter versions.
Which Flutter version is this?

Can you test this with useAndroidViewSurface parameter set to true? This uses an alternative platform view mode that might prevent this bug.

@timbotimbo
Copy link
Collaborator

This should be fixed in Flutter 3.22, which includes changes related to resizing and rotating platform views.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android This issue is specific to the Android Platform. bug This issue refers to a bug in the plugin Flutter issue/bug Problem caused by Flutte that we can't fix
Projects
None yet
Development

No branches or pull requests

2 participants