-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
Basic Application project in flutter fails to run on Windows (it is not possible to open files *.cc) #121366
Comments
Same here, I'm using exactly same versions. I've tried in all other channels too. |
Can you check whether Also, I'm not sure about this but you may try adding Flutter SDK/project directory/pub cache directory to anti-virus whitelist and check if it works. |
In my case, none of those *.cc files exists inside project. *Note: No success even disabling anti-virus. |
I am facing the same issue. |
guys, any suggestion? |
Well, I think it is a bug with the latest Visual Studio 2022. After I downgraded to Visual Studio 2019 Community Edition I was able to run it again. |
Yep, I was having the same problem and downgrading to Visual Studio 2019 did te trick (I only use dev tools, not the whole IDE). As @moslite noticed in issue #117754, this seems to be especially affecting brazilian users (like me and him), although it might be just a coincidence. For the record, mine is Windows 11 Home version 22H2 |
Downgrade to 2019 version doesn't really "fix" the problem. In my case, the company that I work for doesn't allow it. @faadias I don't think it's coincidence, because I didn't find any record from users from another country. But, I don't know, it's crazy, kkk. |
I sure can! The output follows below.
flutter doctor -v
|
It seems like the following command is not being called:
This command is located in After this, |
Thanks for providing more information. I can not reproduce this issue on my Windows machine (en-US) with Issue reports
|
Do any of the directory paths to the project contain non-ASCII characters or spaces? (Desktop Triage) |
No @gspencergoog, project path is just |
Yes, I am a brazilian and I have this error. It seems impossible to get rid of it. |
Hello all, I had the same issue, core_implementations.cc was not found: "C:\opt\wavknow\source\project\windows\flutter\ephemeral\cpp_client_wrapper\core_implementations.cc(1,1): error C1083: Não é possível abrir arquivo fonte: 'C:\opt\wavknow\source\project\windows\flutter\ephemeral\cpp_client_wrapper\core_implementations.cc': No such file or directory [C:\opt\wavknow\source\project\build\windows\x64\flutter\flutter_wrapper_app.vcxproj] I fixed by running this command: "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E env FLUTTER_ROOT=C:\opt\flutter\flutter.3.16.0 PROJECT_DIR=C:\opt\wavknow\source\project FLUTTER_ROOT=C:\opt\flutter\flutter.3.16.0 FLUTTER_EPHEMERAL_DIR=C:\opt\wavknow\source\playsmartkid_app\windows\flutter\ephemeral PROJECT_DIR=C:\opt\wavknow\source\project FLUTTER_TARGET=C:\opt\wavknow\source\project\lib\main.dart DART_DEFINES=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== DART_OBFUSCATION=false TRACK_WIDGET_CREATION=true TREE_SHAKE_ICONS=false PACKAGE_CONFIG=C:\opt\wavknow\source\project.dart_tool\package_config.json C:/opt/flutter/flutter.3.16.0/packages/flutter_tools/bin/tool_backend.bat windows-x64 Debug |
HERE'S A quick WORKAROUND FOR THIS ISSUE. In case you need to just start working right away.
NOTE. Be sure you re-create the project in your working folder. Don't create the folder somewhere else and then move it to your working location. Otherwise you may get some unwanted errors. |
SUSPECT FOUND !!! Friends, Years ago I had a problem only affecting brazilian users of MobaXterm.
Taking advantage of having just reinstalled Windows and having a fresh machine I did the following tests:
This test worked fine. Then I tried to access my Banco do Brasil's account on the web and followed directions to install the security module. But then I created another test project.
And the test failed. I then tried to kill the security module on Task Manager (that's called there "Topaz OFD - Protection Module") but it's not possible to kill this task. So I went to uninstall the security module. On Windows installed apps list it's called "Warsaw 2.37.0.11 64 bits" (supplied by Gas Informatica Ltda). After uninstalling Warsaw I did another "flutter run" and the test 2 worked. Not even restarting the computer was needed. May you friends check in your computers if you can confirm this tests? May someone here of a higher rank or experience than mine talk with Banco do Brasil or its technology suppliers to solve this issue? These tests explain why only brazilian users have this issue , and why only SOME brazilian users have this issue: Not everyone have an Banco do Brasil account. Greetings, |
Hi there Not a part of the discussion, but was having the same issue under the exact same conditions. Sure enough removing the Topaz security module solves it and the project builds again. Using VS 2022 build tools 👍 |
This issue is assigned to @yaakovschectman but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks! |
That was exactly my problem. Just uninstalled the module and the app is running. I could never imagined that so thanks a lot! |
Hi, |
Hi |
@arqeco We would like to check for this protection module in Flutter doctor to alert users who experience this issue in the future. Would anyone be able to provide the name of the executable associated with the Topaz process (something.exe)? |
Topaz OFD - Protection Module |
Thanks. If you would like, please check if when running |
For committed changes, this is not needed. In other words, it's enough to just check out the branch. |
Hello @yaakovschectman @moslite @leonardomgomes and other friends, I have been in contact with Topaz Evolution in the last days reporting our problem and they made a change in their system. They asked me to do a new test today and now Flutter is compiling correctly in my machine even with Topaz installed. I would like to ask everybody to try again and do your own tests. In case of any problem please report here so I can talk with Topaz support again. Thank you |
Hi @arqeco, I did a few tests and got same error. Do I need to update anything related to Topaz? |
…r validators (#141135) Add a warning to Flutter Doctor if Topaz OFD is found as a process on the system. The protection module used by the Bank of Brazil has been identified as causing build failures when using VS with CMake for Windows (see #121366 (comment)). Disabling the software allows the build to succeed again. If a running process is found by `flutter doctor` whose path contains `Topaz OFD\Warsaw\core.exe`, a warning message is generated to convey this. Addresses #121366 ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [ ] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/wiki/Tree-hygiene#overview [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene [test-exempt]: https://github.com/flutter/flutter/wiki/Tree-hygiene#tests [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [Features we expect every widget to implement]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/wiki/Chat --------- Co-authored-by: Elias Yishak <42216813+eliasyishak@users.noreply.github.com> Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com>
With the updated warning from |
I did a test now with two projects: a new project and an old project (using Fluent UI), both are working again.
|
@anthonyaquino83 I believe Topaz does some kind of online check and they just changed their server code. |
It seems that this issue has effectively been resolved. If you continue to experience the problem, and disabling Topaz does not resolve it, and/or Flutter doctor does not inform you of the potential issue, please alert us. |
Great, thanks to all
Em sex., 19 de jan. de 2024 às 14:51, yaakovschectman <
***@***.***> escreveu:
… It seems that this issue has effectively been resolved. If you continue to
experience the problem, and disabling Topaz does not resolve it, and/or
Flutter doctor does not inform you of the potential issue, please alert us.
—
Reply to this email directly, view it on GitHub
<#121366 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEWHTRZP7WE2PQKKKM6NSA3YPKXB7AVCNFSM6AAAAAAVGGQS6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQHA2DEMJQGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi guys, I made it, but just removing the Warsaw application. |
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 |
Edit by @christopherfujino: this is being caused by an upstream bug in CMake at https://gitlab.kitware.com/cmake/cmake/-/issues/24651.
Hello,
I'm taking the first step to the Flutter and after performing the necessary facilities to use it, I went to build "My First App", following the Flutter page: https://docs.flutter.dev/get-started/test-drive?tab=vscode .
But I am stuck in a problem about the lack of 7 errors during the project execution. Log points to the following error: "C1XX: Fatal Error C1083: It is not possible to open font file", involving the 4 files: "core_implementations.cc, standard_codec.cc, flutter_engine.cc, flutter_view_controller.cc plugin_reginrate.cc".
Anyone knows how to say if it is necessary to install any plugin or another version of the necessary requirements.
Thanks!
### Instalation Versions
Microsoft Windows 10 Home Single Language 10.0.19045.2673
Flutter 3.8.0-15.0.pre.26 • channel master
Android Studio Electric Eel | 2022.1.1 Patch 1
Visual Studio Code Versão: 1.75.1 (user setup):
### All requirements met for Flutter
C:>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 3.8.0-15.0.pre.26, on Microsoft Windows [versÆo 10.0.19045.2673], locale pt-BR)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.5.0)
[√] Android Studio (version 2022.1)
[√] VS Code (version 1.75.1)
[√] Connected device (3 available)
[√] Network resources
• No issues found!
### Execution with "flutter run --verbose" shows 7 "fatal error C1083" at the end of the log, where .cc files are not found
The text was updated successfully, but these errors were encountered: