Skip to content

[macOS] Flutter process appears to hang #92673

@tvolkert

Description

@tvolkert

Steps to reproduce

  1. Run the following app:

    import 'package:flutter/widgets.dart';
    
    void main() async {
      runApp(const ColoredBox(color: Color(0xffff0000)));
      runApp(const LimitedBox());
    }
  2. Then once the app has launched, try to resize the window.

Expected behavior

You expect:

  1. The red box to immediately be replaced with nothing (a grey background)
  2. Upon resize, the window to be able to be resized, still just showing a grey background.

Actual behavior

  1. The red box remains in the window and is not replaced with nothing (a grey background)
  2. When you try to resize the window, the Flutter process seems to hang. When you move the cursor over the window, it gives the MacOS spinning beach ball.

Other info

  1. This setup has been created in https://github.com/tvolkert/flutter_desktop_bug, so you can clone that repo to reproduce this bug.
  2. Flutter version info:
    [✓] Flutter (Channel master, 2.6.0-12.0.pre.435, on macOS 11.6 20G165 darwin-x64, locale en-US)
        • Flutter version 2.6.0-12.0.pre.435 at /Users/tvolkert/project/flutter/flutter
        • Upstream repository [email protected]:tvolkert/flutter.git
        • Framework revision d62f75dde1 (7 days ago), 2021-10-21 01:41:33 -0400
        • Engine revision ce74cbc3ce
        • Dart version 2.15.0 (build 2.15.0-233.0.dev)
    
  3. The app works as expected if you replace the second line with a different color. e.g.
      runApp(const ColoredBox(color: Color(0xff00ff00)));

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: desktopRunning on desktopc: crashStack traces logged to the consoleengineflutter/engine related. See also e: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-macBuilding on or for macOS specifically

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions