Crash on example app
Current bug behaviour
The example app crashes after trying to open the secondary window.
On which platform is this bug happening
-
MacOS -
Linux -
Windows
Steps to reproduce
I just copy-pasted the example and changed the 'echo' to 'print'.
Expected behaviour
It should open a new Window.
Log information
Launching lib/main.dart on macOS in debug mode...
Building macOS application...
Debug service listening on ws://127.0.0.1:61367/cLt8XvpIdsY=/ws
Syncing files to device macOS...
flutter: Initializing unknown
flutter: [main] Initialized
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(ERROR, Could not find the window, null, null)
#0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652:7)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:310:18)
<asynchronous suspension>
// After clicking on the button to create another window
multi_window_macos/MultiWindowMacosPlugin.swift:104: Fatal error: Unexpectedly found nil while unwrapping an Optional value
Lost connection to device.
Flutter doctor output
Output of: flutter doctor -v
(main)⚡ % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.4, on macOS 13.5.1 22G90 darwin-x64, locale it-IT)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.82.2)
[✓] Connected device (4 available)
[✓] Network resources
• No issues found!