Skip to content

Commit 638a868

Browse files
committed
fix(macos): disable Impeller to stop raster crash on wake/display change
Impeller's back-buffer cache can hand a wrong-size surface to the raster thread after the window/display size flip-flops (wake from sleep with an external monitor, resize, fullscreen), which null-derefs in impeller::Canvas::SetupRenderPass and kills the app with SIGSEGV on io.flutter.raster. Upstream: flutter/flutter#185394, fix in flutter/flutter#192522 (open, not in any stable release yet). Re-enable FLTEnableImpeller once a stable Flutter ships that fix.
1 parent 8605dbc commit 638a868

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎macos/Runner/Info.plist‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@
3232
<string>NSApplication</string>
3333
<key>NSMicrophoneUsageDescription</key>
3434
<string>This app requires microphone access to transcribe audio.</string>
35+
<!-- Impeller is disabled on purpose: the macOS Impeller back-buffer cache
36+
returns a wrong-size surface after a display/window size change (e.g.
37+
wake from sleep with an external monitor), which crashes the raster
38+
thread in impeller::Canvas::SetupRenderPass(). Upstream:
39+
flutter/flutter#185394, fix flutter/flutter#192522 (not released yet).
40+
Re-enable once a Flutter stable release ships that fix. -->
3541
<key>FLTEnableImpeller</key>
36-
<true/>
42+
<false/>
3743
</dict>
3844
</plist>

0 commit comments

Comments
 (0)