-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tool_crash] ProcessException: Bad CPU type in executable Command: /Users/acacio/flutter/bin/cache/artifacts/engine/darwin-x64/impellerc, OS error code: 86 #114455
Comments
Hello @acacio. Can you reproduce this issue on the master channel as well? You can upgrade to the master channel by running |
Thx for the reply. $ flutter channel master
Switching to flutter channel 'master'...
git: From https://github.com/flutter/flutter
git: 85369313be..e99c9c7cd9 flutter-3.2-candidate.5 -> origin/flutter-3.2-candidate.5
git: eadda3c393..9d9b0e5091 main -> origin/main
git: eadda3c393..9d9b0e5091 master -> origin/master
git: Switched to a new branch 'master'
git: branch 'master' set up to track 'origin/master'.
Successfully switched to flutter channel 'master'.
To ensure that you're on the latest build from this channel, run 'flutter upgrade'
acacio@MacStudonAcacio:turnmaker-flutter$ flutter upgrade
Downloading Darwin arm64 Dart SDK from Flutter engine 03d5b933164cec6db565f48b2604b07d1e838272...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 209M 100 209M 0 0 42.0M 0 0:00:04 0:00:04 --:--:-- 42.3M
Building flutter tool...
Flutter is already up to date on channel master
Flutter 3.5.0-12.0.pre.75 • channel master • https://github.com/flutter/flutter.git
Framework • revision 9d9b0e5091 (22 minutes ago) • 2022-11-02 05:31:00 -0400
Engine • revision 03d5b93316
Tools • Dart 2.19.0 (build 2.19.0-362.0.dev) • DevTools 2.19.0
acacio@MacStudonAcacio:turnmaker-flutter$ flutter doctor -v
Downloading Material fonts... 363ms
Downloading package sky_engine... 461ms
Downloading flutter_patched_sdk tools... 525ms
Downloading flutter_patched_sdk_product tools... 547ms
Downloading darwin-arm64 tools... 1,058ms
Downloading darwin-arm64/font-subset tools... 461ms
[!] Flutter (Channel master, 3.5.0-12.0.pre.75, on macOS 13.0 22A380 darwin-arm64, locale en-CH)
• Flutter version 3.5.0-12.0.pre.75 on channel master at /Users/acacio/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 9d9b0e5091 (23 minutes ago), 2022-11-02 05:31:00 -0400
• Engine revision 03d5b93316
• Dart version 2.19.0 (build 2.19.0-362.0.dev)
• DevTools version 2.19.0
✗ Downloaded executables cannot execute on host.
See https://github.com/flutter/flutter/issues/6207 for more information
• If those were intentional, you can disregard the above warnings; however it is recommended to
use "git" directly to perform update checks and upgrades.
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at /Users/acacio/Library/Android/sdk
• Platform android-33, build-tools 33.0.0
• 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.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14B47b
• 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)
[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 13.0 22A380 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 107.0.5304.87
[✓] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 1 category. |
So we do warn that pre-built binaries won't run. However, I'm thinking we can probably be more explicit and detect this particular situation, where the OS is right but architecture is wrong. Although I'm not sure if there are legitimate situations where you intentionally want to run the x64 SDK in rosetta mode, WDYT @jmagman |
Also, I wonder why we can run the Dart binary, but not downloaded executables. |
impellerc wasn't built for arm until #109892 in 3.4.0-18.0.pre, and this is in stable. @acacio do you have Rosetta installed? |
Although I see now they also tried on master... |
There's no reason not to allow this, if they install x64 Flutter and are using Rosetta and it works. |
thanks heaps @jmagman ! |
I have this crash on |
|
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Command
Steps to Reproduce
See doctor output below. Bad architecture binaries for arm64
Logs
ProcessException: Bad CPU type in executable Command: /Users/acacio/flutter/bin/cache/artifacts/engine/darwin-x64/impellerc, OS error code: 86
Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: d9111f6
The text was updated successfully, but these errors were encountered: