-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopc: fatal crashCrashes that terminate the processCrashes that terminate the processengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.3Found to occur in 3.3Found to occur in 3.3found in release: 3.7Found to occur in 3.7Found to occur in 3.7has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtriaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
I had a crash issue when run on mac app. This issue happended 100% on debug & release mode
This is the minimal test project
I just create a project with flutter create speech_test and setup platform channel.
The issue happens in mac os platform channel when I asking speech permission on this line:
SFSpeechRecognizer.requestAuthorization()
Logs
flutter run --v
{"CFBundleName":"speech_test","DTXcode":"1210","DTSDKName":"macosx10.15","NSHumanReadableCopyright":"Copyright © 2020
com.example. All rights
reserved.","DTSDKBuild":"19G68","CFBundleDevelopmentRegion":"en","CFBundleVersion":"1","BuildMachineOSBuild":"19H2","NS
PrincipalClass":"NSApplication","CFBundleIconName":"AppIcon","CFBundlePackageType":"APPL","CFBundleIconFile":"AppIcon",
"CFBundleSupportedPlatforms":["MacOSX"],"DTPlatformName":"macosx","CFBundleShortVersionString":"1.0.0","NSMainNibFile":
"MainMenu","CFBundleInfoDictionaryVersion":"6.0","CFBundleExecutable":"speech_test","DTCompiler":"com.apple.compilers.l
lvm.clang.1_0","CFBundleIdentifier":"com.example.speechTest","DTPlatformVersion":"10.15.6","DTXcodeBuild":"12A7403","LS
MinimumSystemVersion":"10.15","DTPlatformBuild":"12A7403","NSSpeechRecognitionUsageDescription":"App needs to access
speech"}
[+3280 ms] Observatory URL on device: http://127.0.0.1:52507/akuZ6vCfY4w=/
[ +9 ms] Caching compiled dill
[ +155 ms] Connecting to service protocol: http://127.0.0.1:52507/akuZ6vCfY4w=/
[ +2 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at
http://127.0.0.1:52507/akuZ6vCfY4w=/.
[ +300 ms] DDS is listening at http://127.0.0.1:52509/29R3AcOpmrs=/.
[ +110 ms] Successfully connected to service protocol: http://127.0.0.1:52507/akuZ6vCfY4w=/
[ ] Waiting for macOS to report its views...
[ +8 ms] Waiting for macOS to report its views... (completed in 7ms)
[ +14 ms] DevFS: Creating new filesystem on the device (null)
[ +21 ms] DevFS: Created new filesystem on the device
(file:///var/folders/11/wq1vn8yd2739xsmmzbq3m06w0000gn/T/com.example.speechTest/speech_testyBCWdV/speech_test/)
[ +2 ms] Updating assets
[ +115 ms] Syncing files to device macOS...
[ +2 ms] <- reset
[ ] Compiling dart to kernel with 0 updated files
[ +3 ms] <- recompile package:speech_test/main.dart 74867277-0531-4bf0-9ce9-1b8ac3ec4b54
[ ] <- 74867277-0531-4bf0-9ce9-1b8ac3ec4b54
[ +137 ms] Updating files.
[ ] DevFS: Sync finished
[ ] Syncing files to device macOS... (completed in 144ms)
[ ] Synced 0.0MB.
[ +1 ms] <- accept
[ +7 ms] Connected to _flutterView/0x7f9ec107d820.
[ +2 ms] Flutter run key commands.
[ +2 ms] r Hot reload. 🔥🔥🔥
[ +1 ms] R Hot restart.
[ ] h Repeat this help message.
[ ] d Detach (terminate "flutter run" but leave application running).
[ ] c Clear the screen
[ ] q Quit (terminate the application on the device).
[ ] An Observatory debugger and profiler on macOS is available at: http://127.0.0.1:52509/29R3AcOpmrs=/
[+8221 ms] Service protocol connection closed.
[ ] Lost connection to device.
[ +3 ms] DevFS: Deleting filesystem on the device
(file:///var/folders/11/wq1vn8yd2739xsmmzbq3m06w0000gn/T/com.example.speechTest/speech_testyBCWdV/speech_test/)
[ +259 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed
[ +3 ms] "flutter run" took 50,296ms.
[ +236 ms] ensureAnalyticsSent: 226ms
[ +1 ms] Running shutdown hooks
[ ] Shutdown hook priority 4
[ +6 ms] Shutdown hooks complete
[ ] exiting with code 0
flutter doctor -v
[✓] Flutter (Channel master, 1.24.0-8.0.pre.194, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-US)
• Flutter version 1.24.0-8.0.pre.194 at /Users/ductran/Documents/Soft/flutter
• Framework revision 018467cdb1 (24 hours ago), 2020-11-11 02:04:03 -0500
• Engine revision 81f219c59c
• Dart version 2.12.0 (build 2.12.0-31.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/ductran/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_HOME = /Users/ductran/Library/Android/sdk
• ANDROID_SDK_ROOT = /Users/ductran/Library/Android/sdk
• Java binary at: /Applications/Android Studio 3.5 Preview.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.1, Build version 12A7403
• CocoaPods version 1.9.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio 3.5 Preview.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 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.51.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.16.0
[✓] Connected device (3 available)
• macOS (desktop) • macos • darwin-x64 • Mac OS X 10.15.7 19H2 darwin-x64
• Web Server (web) • web-server • web-javascript • Flutter Tools
• Chrome (web) • chrome • web-javascript • Google Chrome 86.0.4240.193
• No issues found!
josephzhang23, natsuk4ze, codeguesser, KeZhang and tomgilder
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopc: fatal crashCrashes that terminate the processCrashes that terminate the processengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.3Found to occur in 3.3Found to occur in 3.3found in release: 3.7Found to occur in 3.7Found to occur in 3.7has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtriaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team