-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Error: Getting current working directory failed, path = '' (OS Error: Interrupted system call, errno = 4), antivirus related #44509
Comments
A few users reporting this in flutter/flutter#70940 on Big Sur. |
@haamaanaa @MoustafaMesbah @thisdarktao @sgorbyo @remonh87 |
@jmagman Testing started at 11:58 AM ... Failed to load "/Users/danilo/AndroidStudioProjects/flutter_genogram/test/geometric_tools_test.dart": Getting current working directory failed, path = '' (OS Error: Interrupted system call, errno = 4) Shell: [ERROR:flutter/shell/testing/tester_main.cc(302)] Unhandled exception Failed to load "/Users/danilo/AndroidStudioProjects/flutter_genogram/test/features/access_management/domain/entities/crypto_key_setup_data_test.dart": Shell: [ERROR:flutter/shell/testing/tester_main.cc(302)] Unhandled exception Failed to load "/Users/danilo/AndroidStudioProjects/flutter_genogram/test/features/access_management/domain/usecases/register_user_test.dart": Shell: [ERROR:flutter/shell/testing/tester_main.cc(302)] Unhandled exception Failed to load "/Users/danilo/AndroidStudioProjects/flutter_genogram/test/features/access_management/domain/entities/crypto_key_test.dart": dart:io-patch/directory_patch.dart 64:5 _uriBaseClosure Failed to load "/Users/danilo/AndroidStudioProjects/flutter_genogram/test/features/access_management/domain/entities/email_address_test.dart": Getting current working directory failed, path = '' (OS Error: Interrupted system call, errno = 4) |
Same issue here...
or
|
@jmagman good tip, thanks.. after looking better I could spot my |
@jmagman I already had to downgrade back to Catalina to be able to work, so cannot check errors anymore |
I can confirm that, also in my case, removing Avira solved the issue. |
I just upgraded my Macbook Air back to Big Sur and problem still persists, flutter unit tests fail the same way. I had a Macbook Pro installed also with Big Sur MacOS and it did not face the same issue with flutter tests. only difference between these machines is that Macbook pro does not have company mandated MS ATP software installed. Now.... I cannot uninstall the MS ATP software as that is against company policy, so would be really good that some help could be found from here as well.... |
We also verified that removing Microsoft ATP "solves" the issue of running flutter tests.... but that cannot be the solution in real world, can it? |
Duplicated from #70940 I faced the same issue, when I migrated to Big Sur. Now I have Big Sur 11.2, but the issue with tests running is still reproducible. I managed to find temporary workaround for it: to run command with
In 95% of runs, error does not appear, but in rest 5% - it does. I believe the issue will be investigated and fixed asap. |
@ihorvitruk do you also have MS ATP security app installed? or some other security scanner app? |
to test with MacOS BigSur + [insert AV scanner here]
fails after some random amount of tries, at least with MS ATP scanner enabled
|
@haamaanaa no, I don't have MS ATP installed, but I have Jamf (appeared in Big Sur) and SentinelOne (was also in Catalina, when tests ran ok) |
I faced the same issue, running: MacOs Big Sur with Avast Antivirus. In the test case I was just reading file. Noticed that if I disable "File shield" feature from Avast it will not reproduce. Workaround is to use that flutter test --concurrency 1 |
Upgraded to BigSur 11.2.3 today and it solved issue for about 98,6%, even with having antivirus program installed & running. we are also using flutter 2 now. 11.2.3 release notes say: Running tests in test suite (like with command-line command flutter test) still fails a one random class about 10% of tries. same test succeeds in isolation about 98,6 success rate. earlier when running test suite, more than half test classes would fail, now only singular class fails, sometimes So something was made better, but still not 100% "there" |
I updated my Mac to BigSure 11.2.3 and actually faced the same issue: always and multiple times, running the unit tests, getting the same error I have same as @haamaanaa Microsoft Defender ATP. After update to latest version of Microsoft Defender ATP then failure happen anyway and randomly time to time in the same way as above loading the test. |
Good news from my side: I found a new workaround. It can be used until the issue is fixed (no matter by whom). Workaround is to use Annotation should be added to the top of the file with tests. Documentation from the above link says: I added |
If your Anti virus software supports exclusions for real-time scan, you can try excluding your workspace/project folder and maybe the temp folder or |
The latest Big Sur update has been pushed out. Upgrading macOS should solve the issue with Microsoft Defender ATP and |
I can confirm that this no longer fails after the MacOS 11.3 update. @viatsko Do you have any background information on why this is? |
It might also be that Microsoft have pushed an update to MS ATP itself with automated updates Have to check if was fixed for us as well.... EDIT: indeed, error seems to have gone the way of Moas |
Reported by @haamaanaa at flutter/flutter#70940
Steps to Reproduce
System Version: macOS 11.0.1 (20B29)
Kernel Version: Darwin 20.1.0
did try to clean flutter pub cache with flutter pub cache repair, and also by deleting said cache folder from laptop and then running flutter pub get again on project and running tests.... still failed
Expected results:
unit test to run successfully at all times
(In Catalina OS version, same test(s) run without fail)
Actual results:
at random runs the test fails
Verbose Log
no issues
[✓] Flutter (Channel stable, 1.22.4, on macOS 11.0.1 20B29 darwin-x64, locale en-FI)
• Flutter version 1.22.4 at /Users/me/dev-env/flutter
• Framework revision 1aafb3a8b9 (7 days ago), 2020-11-13 09:59:28 -0800
• Engine revision 2c956a31c0
• Dart version 2.10.4
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/me/Library/Android/sdk
• Platform android-30, build-tools 29.0.2
• ANDROID_HOME = /Users/me/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.2, Build version 12B45b
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 43.0.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] VS Code (version 1.51.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.16.0
[!] Connected device
! No devices available
! Doctor found issues in 1 category.
The text was updated successfully, but these errors were encountered: