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

[Windows 7]Flutter view is drawn only after moving the cursor above the window area #102030

Closed
alexkmbk opened this issue Apr 17, 2022 · 6 comments
Labels
a: desktop Running on desktop c: rendering UI glitches reported at the engine/skia rendering level e: OS-version specific Affects only some versions of the relevant operating system engine flutter/engine repository. See also e: labels. P3 Issues that are less important to the Flutter project platform-windows Building on or for Windows specifically

Comments

@alexkmbk
Copy link

alexkmbk commented Apr 17, 2022

Details

On Windows desktop release build, the window of the application redrawing only after cursor moving above the window area (if there is no any TextField with active input focus on the window form):

flutter_demo

Steps to Reproduce

  • create a new demo project
  • build the project with command 'Flutter build windows'

Target Platform: Windows Desktop
Target OS version/browser:Windows 7 64bit
Physical device

Logs

Logs
flutter analyze
Analyzing flutter_demo...
No issues found! (ran in 2.0s)
flutter doctor -v
[√] Flutter (Channel stable, 2.10.0, on Microsoft Windows [Version 6.1.7601],
    locale ru-RU)
    • Flutter version 2.10.0 at D:\bin\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5f105a6ca7 (2 months ago), 2022-02-01 14:15:42 -0800
    • Engine revision 776efd2034
    • Dart version 2.16.0
    • DevTools version 2.9.2

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)

    • Android SDK at C:\Users\Alexey\AppData\Local\Android\Sdk\
    X cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for

      more details.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Build Tools 2019 16.11.9)

    • Visual Studio at D:\bin\VSBuildTools2019
    • Visual Studio Build Tools 2019 version 16.11.32106.194
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 3.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1136-b06)

[√] VS Code, 64-bit edition (version 1.66.0)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.36.0

[√] Connected device (2 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version
      6.1.7601]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome
      100.0.4896.127

[√] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.
@alexkmbk alexkmbk added the from: performance template Issues created via a performance issue template label Apr 17, 2022
@alexkmbk alexkmbk changed the title Redrawing window only after cursor moving above the window area (Windows desktop release build) Redrawing window only after cursor moving above the window area (Windows desktop) Apr 17, 2022
@darshankawar darshankawar removed the from: performance template Issues created via a performance issue template label Apr 18, 2022
@maheshmnj maheshmnj added the in triage Presently being triaged by the triage team label Apr 18, 2022
@maheshmnj maheshmnj changed the title Redrawing window only after cursor moving above the window area (Windows desktop) [Windows 7]Flutter view is drawn only after moving the cursor above the window area Apr 18, 2022
@maheshmnj
Copy link
Member

Hi @alexkmbk, Thanks for filing the issue. Do you see this behavior happening when running in any specific mode debug/profile/release or all modes? Looks like this happening only on windows 7, On Windows 10 it works fine.

Additionally, you may try upgrading flutter to 2.10.4 and see if it helps fix the issue.

flutter doctor -v (windows)
[√] Flutter (Channel stable, 2.10.4, on Microsoft Windows [Version 10.0.19044.1586],
    locale en-US)
    • Flutter version 2.10.4 at C:\flutter_sdk\stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c860cba910 (5 days ago), 2022-03-25 00:23:12 -0500
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\mahesh\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.31727.386
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code (version 1.64.2)
    • VS Code at C:\Users\mahesh\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version
      10.0.19044.1586]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 99.0.4844.82      
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 99.0.1150.30     

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

@maheshmnj maheshmnj added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 18, 2022
@FusoraTech
Copy link

Related? #101339

@alexkmbk
Copy link
Author

alexkmbk commented Apr 18, 2022

Hi @alexkmbk, Thanks for filing the issue. Do you see this behavior happening when running in any specific mode debug/profile/release or all modes? Looks like this happening only on windows 7, On Windows 10 it works fine.

Additionally, you may try upgrading flutter to 2.10.4 and see if it helps fix the issue.
flutter doctor -v (windows)

Hi @maheshmnj! I have tried both on debug and release mode - same behavior even after updating to the 2.10.4 version. However, I tried it on the Windows Server 2012 R2 and it works just fine (without this issue). So probably it is the Windows 7 thing.

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 18, 2022
@maheshmnj
Copy link
Member

Thanks for the info @alexkmbk, Labeling this issue for further investigation from the team.

@maheshmnj maheshmnj added engine flutter/engine repository. See also e: labels. platform-windows Building on or for Windows specifically a: desktop Running on desktop e: OS-version specific Affects only some versions of the relevant operating system c: rendering UI glitches reported at the engine/skia rendering level and removed in triage Presently being triaged by the triage team labels Apr 19, 2022
@gspencergoog gspencergoog added the P3 Issues that are less important to the Flutter project label Apr 21, 2022
loic-sharma pushed a commit to flutter/engine that referenced this issue Jul 13, 2022
This PR will fix the blank FlutterView issue by handling the repaint message in FlutterView window.

Currently, WM_PAINT msg is not handled in flutter window and the default WindowProc will do nothing but paint the background. In some user cases, e.g., hide/show/min/max the app window, this can result in blank FlutterView if the content is static and there are no running animation.

Addresses flutter/flutter#101339
Addresses flutter/flutter#102030
@loic-sharma
Copy link
Member

loic-sharma commented Jul 13, 2022

This should be fixed in the next Flutter released by flutter/engine#34306

betrevisan pushed a commit to betrevisan/engine that referenced this issue Jul 15, 2022
This PR will fix the blank FlutterView issue by handling the repaint message in FlutterView window.

Currently, WM_PAINT msg is not handled in flutter window and the default WindowProc will do nothing but paint the background. In some user cases, e.g., hide/show/min/max the app window, this can result in blank FlutterView if the content is static and there are no running animation.

Addresses flutter/flutter#101339
Addresses flutter/flutter#102030
@github-actions
Copy link

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 flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: desktop Running on desktop c: rendering UI glitches reported at the engine/skia rendering level e: OS-version specific Affects only some versions of the relevant operating system engine flutter/engine repository. See also e: labels. P3 Issues that are less important to the Flutter project platform-windows Building on or for Windows specifically
Projects
None yet
Development

No branches or pull requests

6 participants