-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-macBuilding on or for macOS specificallyBuilding on or for macOS specifically
Description
Steps to Reproduce
- Execute
flutter runon an example app created with "flutter create" - Press Command+Q
Expected results: Application terminates gracefully
Actual results: Application is terminated with the following error:
Launching lib/main.dart on macOS in debug mode...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006000-000C09193CF9401E }
{ platform:macOS, arch:x86_64, id:00006000-000C09193CF9401E }
Connecting to VM Service at ws://127.0.0.1:58793/bEy-c1p41OI=/ws
2023-03-16 18:07:07.217 terminate[24531:272360] -[FlutterError objectForKeyedSubscript:]: unrecognized selector sent to instance 0x13f776d60
2023-03-16 18:07:07.219 terminate[24531:272360] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FlutterError objectForKeyedSubscript:]: unrecognized selector sent to instance 0x13f776d60'
*** First throw call stack:
(
0 CoreFoundation 0x000000018cba83e8 __exceptionPreprocess + 176
1 libobjc.A.dylib 0x000000018c6f2ea8 objc_exception_throw + 60
2 CoreFoundation 0x000000018cc4ac0c -[NSObject(NSObject) __retain_OA] + 0
3 CoreFoundation 0x000000018cb0e660 ___forwarding___ + 1600
4 CoreFoundation 0x000000018cb0df60 _CF_forwarding_prep_0 + 96
5 FlutterMacOS 0x0000000107b96bdc __81-[FlutterEngineTerminationHandler requestApplicationTermination:exitType:result:]_block_invoke + 92
6 FlutterMacOS 0x0000000107b9ce68 _ZZ51-[FlutterEngine sendOnChannel:message:binaryReply:]EN4$_108__invokeEPKhmPv + 108
7 FlutterMacOS 0x00000001084829f4 _ZNSt21_LIBCPP_ABI_NAMESPACE10__function6__funcIN3fml8internal14CopyableLambdaIZN7flutter31EmbedderPlatformMessageResponse8CompleteENS_10unique_ptrINS2_7MappingENS_14default_deleteIS8_EEEEE3$_0EENS_9allocatorISD_EEFvvEEclEv + 104
8 FlutterMacOS 0x00000001084861a0 _ZN7flutter18EmbedderTaskRunner8PostTaskEy + 616
9 FlutterMacOS 0x000000010846e144 FlutterEngineRunTask + 48
10 FlutterMacOS 0x0000000107b9c4d4 -[FlutterEngine runTaskOnEmbedder:] + 56
11 FlutterMacOS 0x0000000107b9c690 __60-[FlutterEngine postMainThreadTask:targetTimeInNanoseconds:]_block_invoke + 64
12 libdispatch.dylib 0x000000018c8c49dc _dispatch_call_block_and_release + 32
13 libdispatch.dylib 0x000000018c8c6504 _dispatch_client_callout + 20
14 libdispatch.dylib 0x000000018c8d4d1c _dispatch_main_queue_drain + 928
15 libdispatch.dylib 0x000000018c8d496c _dispatch_main_queue_callback_4CF + 44
16 CoreFoundation 0x000000018cb6ed40 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
17 CoreFoundation 0x000000018cb2c7c0 __CFRunLoopRun + 2036
18 CoreFoundation 0x000000018cb2b878 CFRunLoopRunSpecific + 612
19 HIToolbox 0x000000019620bfa0 RunCurrentEventLoopInMode + 292
20 HIToolbox 0x000000019620bde4 ReceiveNextEventCommon + 672
21 HIToolbox 0x000000019620bb2c _BlockUntilNextEventMatchingListInModeWithFilter + 72
22 AppKit 0x000000018fdb184c _DPSNextEvent + 632
23 AppKit 0x000000018fdb09dc -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 728
24 AppKit 0x000000018fda4e0c -[NSApplication run] + 464
25 AppKit 0x000000018fd7c250 NSApplicationMain + 880
26 terminate 0x0000000104ddb978 main + 12
27 dyld 0x000000018c723e50 start + 2544
)
libc++abi: terminating with uncaught exception of type NSException
Lost connection to device.
Exited
Logs
% flutter doctor -v
[✓] Flutter (Channel master, 3.9.0-8.0.pre.25, on macOS 13.2.1 22D68 darwin-arm64, locale en-ES)
• Flutter version 3.9.0-8.0.pre.25 on channel master at /Users/jsmith/Library/Frameworks/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 055769e63a (44 minutes ago), 2023-03-16 09:24:20 -0700
• Engine revision 7ee528267b
• Dart version 3.0.0 (build 3.0.0-336.0.dev)
• DevTools version 2.22.2
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at /Users/jsmith/Library/Android/sdk
• Platform android-33, build-tools 33.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14C18
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.3)
• Android Studio at /Applications/Android Studio.app/Contents
• 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.13+0-b1751.21-8125866)
[✓] VS Code (version 1.76.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.60.0
[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 13.2.1 22D68 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 111.0.5563.64
[✓] Network resources
• All expected network resources are available.
• No issues found!
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-macBuilding on or for macOS specificallyBuilding on or for macOS specifically