Skip to content

windows 10 multi window bug when using examples\multiple_windows #186522

Closed

Description

@110jiangnan

Steps to reproduce

I ran flutter config --enable-windowing
enable-windowing: true (It says "Unavailable", will this affect anything?)
Then I ran examples\multiple_windows

System Version: Windows 10 Pro, 22H2 (OS Build 19045.6466)

Note: I also tested this on Windows 11 and it works well (no issues opening/closing windows). The problem happens on Windows 10, where opening, closing, activating, and maximizing all have severe issues. Almost none of the functionality works.

Expected results

Multiple windows open, close, activate, and maximize normally.

Actual results

There are severe issues with opening, closing, activating, and maximizing. I'll upload a screen recording shortly.

Code sample

flutter\examples\multiple_windows

Screenshots or Video

https://github.com/110jiangnan/repo01/blob/master/video_20260514_224528_edit.mp4
https://github.com/110jiangnan/repo01/blob/master/video_20260514_224556_edit.mp4

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Activity

  1. 110jiangnan commented on May 14, 2026

    @110jiangnan
    Author

    flutter 是在运行的,但是似乎录屏也没有录取到flutter的窗口

  2. puneetkukreja98 commented on May 15, 2026

    @puneetkukreja98
    Contributor

    @110jiangnan Thanks for reporting this.
    We request that all issues be submitted in English so that entire team can properly investigate.
    Could you please update the issue report?
    You can use a translation tool if needed.

    Thanks

  3. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    and removed
    in triagePresently being triaged by the triage team
    on May 15, 2026
  4. 110jiangnan commented on May 15, 2026

    @110jiangnan
    Author

    @puneetkukreja98
    Steps to reproduce
    I ran flutter config --enable-windowing
    enable-windowing: true (Unavailable? Will this affect the run?)
    Then I ran examples\multiple_windows
    System Version: Windows 10 Pro
    Version: 22H2
    Installation Date: 2023/3/29
    OS Build: 19045.6466
    The bug is very strange.

    Here is a screen recording of the computer in the first comment.

    Additionally, I tested this case on Windows 11 and it was fine; there were no issues with opening or closing windows.
    It's just when testing on Windows 10, opening, closing, activating, and maximizing all have serious problems; almost no feature is usable.

    Expected results
    Multiple windows opening, closing, activating, and maximizing normally.
    Actual results
    Opening, closing, activating, and maximizing all have serious problems. I will upload the screen recording.

    The bug is very strange. The Flutter windows were not captured by screen recording software, so I recorded the screen using a mobile phone.

    The videos have been uploaded to my repository:
    Video 1: Flutter Multiple Windows Test - Part 1
    Video 2: Flutter Multiple Windows Test - Part 2

  5. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on May 15, 2026
  6. changed the title [-]windows10 flutter_windows_3.44.0-0.3.pre-beta使用多窗口bug[/-] [+]windows 10 multi window bug when using examples\multiple_windows[/+] on May 18, 2026
  7. puneetkukreja98 commented on May 18, 2026

    @puneetkukreja98
    Contributor

    @110jiangnan
    I tested the examples\multiple_windows sample on Windows 11 Pro, and actions (opening, closing, minimizing, and maximizing via the "Regular" button) are working, but I did notice a error appearing in console.
    Win 11 pro logs:

    ══╡ EXCEPTION CAUGHT BY GESTURES LIBRARY ╞══════════════════════════════════════════════════════════
    The following assertion was thrown while handling a pointer data packet:
    Cannot hit test a render box that has never been laid out.
    The hitTest() method was called on this RenderBox: RenderSemanticsAnnotations#ccf2b NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:
      creator: Semantics ← _FocusInheritedScope ← Focus ← Shortcuts ←
        NotificationListener<NavigationNotification> ← _SharedAppModel ← SharedAppData ←
        UnmanagedRestorationScope ← RestorationScope ← UnmanagedRestorationScope ← RootRestorationScope ←
        WidgetsApp-[GlobalObjectKey _MaterialAppState#e03a2] ← ⋯
      parentData: <none>
      constraints: MISSING
      size: MISSING
    Unfortunately, this object's geometry is not known at this time, probably because it has never been
    laid out. This means it cannot be accurately hit-tested.
    If you are trying to perform a hit test during the layout phase itself, make sure you only hit test
    nodes that have completed layout (e.g. the node's children, after their layout() method has been
    called).
    
    When the exception was thrown, this was the stack:
    #0      RenderBox.hitTest.<anonymous closure> (package:flutter/src/rendering/box.dart:2920:11)
    #1      RenderBox.hitTest (package:flutter/src/rendering/box.dart:2951:6)
    #2      RenderView.hitTest (package:flutter/src/rendering/view.dart:309:12)
    #3      RendererBinding.hitTestInView (package:flutter/src/rendering/binding.dart:662:34)
    #4      RendererBinding.initMouseTracker.<anonymous closure> (package:flutter/src/rendering/binding.dart:459:11)
    #5      MouseTracker.updateWithEvent (package:flutter/src/rendering/mouse_tracker.dart:310:43)
    #6      RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:466:20)
    #7      GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:437:7)
    #8      GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:394:5)
    #9      GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:341:7)
    #10     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:308:9)
    #11     _invoke1 (dart:ui/hooks.dart:439:13)
    #12     PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:470:7)
    #13     _dispatchPointerDataPacket (dart:ui/hooks.dart:374:31)
    ════════════════════════════════════════════════════════════════════════════════════════════════════

    However, since this issue appears to be specific to Windows 10

    • Could you please run the example again on your Windows 10 machine and paste the complete terminal logs here?
    • Could you please also share flutter doctor -v o/p
    Flutter doctor -v
    [√] Flutter (Channel master, 3.44.0-0.3.pre, on Microsoft Windows [Version 10.0.26200.7840], locale en-IN) [2.3s]
        • Flutter version 3.44.0-0.3.pre on channel master at C:\Developer\flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision b7ac273fa0 (3 months ago), 2026-02-26 09:02:27 -0500
        • Engine revision b7ac273fa0
        • Dart version 3.12.0 (build 3.12.0-178.0.dev)
        • DevTools version 2.55.0
        • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets,
          omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration, enable-riscv64
    
    [√] Windows Version (Windows 11 or higher, 25H2, 2009) [2.7s]
    
    [√] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [6.6s]
        • Android SDK at C:\Users\Puneet\AppData\Local\Android\sdk
        • Emulator version 36.4.9.0 (build_id 14788078) (CL:N/A)
        • Platform android-36.1, build-tools 36.1.0
        • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
          This is the JDK bundled with the latest Android Studio installation on this machine.
          To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
        • Java version OpenJDK Runtime Environment (build 21.0.9+-14649483-b1163.86)
        • All Android licenses accepted.
    
    [√] Chrome - develop for the web [362ms]
        • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
    
    [√] Visual Studio - develop Windows apps (Visual Studio Community 2026 18.3.2) [359ms]
        • Visual Studio at C:\Program Files\Microsoft Visual Studio\18\Community
        • Visual Studio Community 2026 version 18.3.11520.95
        • Windows 10 SDK version 10.0.26100.0
    
    [√] Connected device (3 available) [329ms]
        • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.26200.7840]
        • Chrome (web)      • chrome  • web-javascript • Google Chrome 147.0.7727.56
        • Edge (web)        • edge    • web-javascript • Microsoft Edge 147.0.3912.60
    
    [√] Network resources [636ms]
        • All expected network resources are available.
    
    • No issues found!
    
    
  8. added
    platform-windowsBuilding on or for Windows specifically
    team-windowsOwned by the Windows platform team
    a: multi windowIssues related to multi window support
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    and removed
    in triagePresently being triaged by the triage team
    on May 18, 2026
  9. 110jiangnan commented on May 19, 2026

    @110jiangnan
    Author

    @puneetkukreja98
    I suggest the official team run the relevant test cases in a Windows 10 environment. If possible, please cover different release versions of Windows 10 for verification.
    Currently, the multi-window feature has severe stability issues on Windows 10, far beyond the single scenario mentioned above. Our actual testing found that operations involving opening, closing, and managing multiple windows have a very high probability of causing the application to crash or the interface to fail to display. This severely impacts production usability, and I kindly request that this be prioritized for investigation.

  10. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on May 19, 2026
  11. PierceCK commented on Jun 2, 2026

    @PierceCK

    @puneetkukreja98
    Our team is experiencing the same issue, which significantly hurts multi-window usability on Windows 10. Could you share the ongoing tracking for this issue?

  12. mattkae commented on Jun 11, 2026

    @mattkae
    Contributor

    @110jiangnan If you have a moment, can you try out #187848 ? That should fix windows failing to open on Win10 😄

  13. github-actions commented on Jul 14, 2026

    @github-actions

    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.

  14. locked as resolved and limited conversation to collaborators on Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

a: desktopRunning on desktopa: multi windowIssues related to multi window supportplatform-windowsBuilding on or for Windows specificallyteam-windowsOwned by the Windows platform team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions