-
Notifications
You must be signed in to change notification settings - Fork 28.4k
xcdevice is generating a dyld_shared_cache_arm64
recovered file every ~30 seconds while IDE open
#56826
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
Comments
I am having the same exact problem. I am using the latest flutter and VS Code. It takes about an hour to burn through 100 GB on my MacbookAir 2020. |
I think I may have solved this problem. Before there was a problem, I used CleanMyMac to clean up some files. I opened XCode and observed the hard disk space, which was reduced by about 4G, no longer. Open Android Studio or VSCode again, keep the Flutter process running, and the hard disk space will not continue to decrease. The problem seems to be solved. |
Hmm, i'm not quite following what the solution was. Did running XCode fix something? Just running VSCode and having the flutter process running seems to be the same process that had the issue before. What changed? |
I don't know the details, but after I run XCode, the problem is indeed solved. If the problem is not solved, here is another method you can try. |
@trinicoconutman |
@trinicoconutman |
Ok, opening XCode worked. Thanks guys. |
I faced this very issue, and problem was temporarily solved after I ran XCode, but once I flutter doctor -v
[✓] Flutter (Channel stable, v1.17.0, on Mac OS X 10.14.6 18G4032, locale en-CN)
• Flutter version 1.17.0 at /Volumes/Transcend/Development/flutter
• Framework revision e6b34c2b5c (11 days ago), 2020-05-02 11:39:18 -0700
• Engine revision 540786dd51
• Dart version 2.8.1
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Volumes/Transcend/Development/AndroidSDK
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3.1, Build version 11C504
• CocoaPods version 1.9.0
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 45.1.1
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
[✓] VS Code (version 1.45.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.10.1
[✓] Connected device (1 available)
• SM G9500 • 10.10.201.121:5555 • android-arm64 • Android 9 (API 28)
• No issues found! |
I originally posted this on issue #56270, but it was marked off-topic. I also experienced my disk being filled up completely by "A Document Being Saved by xcdevice #" files upon attaching an iOS device. For context, I installed Flutter on macOS 10.14, then upgraded to macOS 10.15, the latest Xcode, and the latest Flutter 1.17 using Reinstalling Xcode did not fix the problem for me. These steps solved my problem:
|
I'm guessing the dyld_shared_cache_arm64 are something |
@jmagman My hunch is that the process cleans up normally, but something is making it crash, leaving these files midway through, and the invoker is simply ignoring the crash, trying again and again in a loop while the device is connected. |
In that case there's probably nothing Flutter can do about it. Xcode 11.5 Beta 2 is out, maybe the crash is fixed there? Do you see xcdevice crashes in Console's Crash Report or Diagnostic Reports? |
This is my Console system.log when searching for
There are many many more reports identical to this. |
|
I should note, the console bootstrap errors occur only if IntelliJ, or VS Code, or Android Studio with the Flutter plugin/extension is running. The errors occur regardless of whether or not the device is plugged in if one of those editors are open. It happens roughly every 30s. Apologies but I think this is getting off topic as well since I am no longer experiencing the aggressive disk usage, but am experiencing a loosely related problem. EDIT: I bit the bullet and reinstalled macOS. Everything is working now. |
I have the same problem, of a full disk after some hours. I try to understand the situation, in which this issue occurs. I'm using:
The cache files will be created in the following situations:
The cache files are not created then using Xcode without flutter or android studio. So it seems to be a bug in combination with the flutter toolchain. This issue occurs on my mac since yesterday and I experience it after every reboot. |
This comment has been minimized.
This comment has been minimized.
dyld_shared_cache_arm64
crammed my hard drive.dyld_shared_cache_arm64
recovered file every ~30 seconds while IDE open
I've had this come up a few times in the Dart-Code Discord and issue tracker recently
Someone in Discord found this this post about it on StackExchange: |
Hm, when @benbdevd was reproducing there wasn't a "Copying cache files from device" message.
I just erased my iPhone and I wasn't able to reproduce this. For anyone hitting this, can we get the output of:
I'm hoping to see an error about that cache file, or something about symbols. |
|
#58137 made it into 1.19.0-3.0.pre, which is available in the dev channel. Note this fix should avoid the issue in the first place, not clean up the excessive Xcode caches from your hard drive. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
If it helps, in Dart-Code/Dart-Code#2460 they were in a temp folder (and cleaned up on reboot): /private/var/folders/xb/j4_1kvcx0x1679jq7slr5vvm0000gn/T/TemporaryItems/(A Document Being Saved By xcdevice)/dyld_shared_cache_arm64 |
@jmagman thank you for the fix. Is there a rough time frame for when this will be available in more stable channels? |
beta is 1.19.0-4.1.pre, so this is fixed on beta channel |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@jmagman this looks to require a manual merge into 1.17 (branch: flutter-1.17-candidate.3) can you take a look at what that merge looks like? seems like most of the conflicts are in tests. |
@pcsosinski PR at #59695. |
@Shoshin23 |
This comment has been minimized.
This comment has been minimized.
This issue was specifically tracking the xcdevice dyld_shared_cache_arm64 generation. There's a PR at #59695 to hotfix to stable. If you are seeing another issue (related to Android, doctor not finding simctl, whatever), please file it so we can take a look. Locking for now to avoid noise. |
fixed in 1.17.4 |
Steps to Reproduce
Logs
Screenshot
The text was updated successfully, but these errors were encountered: