-
Notifications
You must be signed in to change notification settings - Fork 650
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
Clutch fills up disk space #142
Comments
Clutch may be failing to clean /var/tmp/clutch correctly - having checked the source quickly it doesn't notify you if it fails to clean that directory correctly which it should. Try removing /var/tmp/clutch manually (you can do this whenever, /var/tmp/ is removed automatically upon reboot which is why this disk space is being returned to you) |
Hi, thanks for the answer, |
here is some output to show the "weirdness" of the "lost" space #~ du -sh /private/var |
Clutch might accidentally leave modified binaries behind in the app folder, are you sure the app folders are being properly emptied? |
@stas-smedia Please do this as root and paste the output.
@ttwj Might I suggest keeping a list of files created and written to by Clutch and catching all signals to clean them up? (note you cannot listen on |
~# du -hsx /var/containers | sort -rh ~# du -hsx /var/mobile/Documents/Dumped | sort -rh i also looked at at apps directory like ttwj suggested , this is the output: so it appeats to be ok... while my disk space keeps decreasing... :/ ~# df -h |
What about (note the du -hsx /var/containers/* | sort -rh
du -hsx /var/mobile/Containers/* | sort -rh |
~ root# du -hsx /var/containers/* | sort -rh ~ root# du -hsx /var/mobile/Containers/* | sort -rh |
Well then start narrowing it down. That command is usually what I use to figure out where space is going. du -hsx /* | sort -rh Once you see what is taking up the most space, which will be the first item,
Keep going until you find the worst offenders. The standard directories where your data gets stored (by apps and their data, and iOS) does not seem to be it. This may not be a Clutch issue. |
@Tatsh so /private/var should use atleast 7.3GB but when i run du on it so i thinking it has to be some system file that du ignore or something. when i search manually this is what i've found: so i have no idea what could be causing this |
You have to look at what is taking up space on You do have stashing for tweaks set up? For me on a 128 GB iPhone:
Unless it turns out |
Did you switch between using iCloud or iTunes to sync your device? That affected the available space for me a while ago |
@ttwj right now i thinking that maybe ideviceinstaller is doing some "funny" stuff when uninstalling the apps, but i'm not sure. |
Phew. I can get Clutch to output the location of the app you're cracking. We used to have that feature in Clutch 1 to facilitate scripting. |
That would be great :) |
Ok I'll push an update soon :) Any other variables you'd like to grab? |
Thanks! nothing else i can think of right now |
@ttwj |
Same issue here, devices get chocked with virtual Data, when I use Clutch on many apps. |
one idea i have on what could be causing this: |
Hmm looks like a zombie process, they can only be removed by forcibly rebooting the device. |
@ttwj |
I see the same on IOS 9.3.3 (but not 9.0 or 9.1) with clutch 2.0.2 or 2.0.4, with "(appName)" records with process state 'U' sticking around in 'ps aux' output, eventually making it impossible to start any processes and requiring phone hard reset (assuming from 'top' output it's because of lack of available memory). Respring, kill/killall does nothing. Site note for others (in the mean time) that dumpdecrypted using steps in stefanesser/dumpdecrypted#19 doesn't have the same problem. |
Looks like the new Pangu jailbreak messed up with the zombie process killing mechanism. You can remove them by performing a reboot |
Any update on this issue? is this fixable at all? |
I'm looking into it, no update other than what mikeburragejr has said really. This might have something to do with how we open the binaries to read and write from the disk that's causing the process to lock up into the uninterruptible state - but that's just a theory. I'll update the ticket with more once I've had time to look into it further. |
@NinjaLikesCheez Thx! |
Same issue. Any update on this? After decryption, two zombie processes produced. They hold the handle of decrypted ipa files even if the files are deleted, and the space won't be released.
|
Clutch might stay running in 2.0.4 because it was using |
Need updates from people: @ofirkris @Songchunbo @mikeburragejr . Please report if this is still happening with the latest version on |
Using the latest clutch code - the issue still exists (no change) on pangu 9.3.3 jailbroken devices (iphone6/6s). Sorry for the very delayed response here. |
@mikeburragejr Is this about zombie processes or disk space? The original ticket was about disk space, then seemed to get to become about zombie processes. If it is about zombie processes, please make a new ticket and I will close this one. |
Closing. 2+ months since last activity. |
i have an automated process of using Clutch
i upload the files to the device and install with ipaintaller
decrypt it with clutch
the remove the app using ideviceinstaller
(and delete all the IPA files in the process, So /var/mobile/Documents/Dumped is empty)
the thing is after about 100 apps i ran out of disk space.
running Clutch --clean doesn't help.
after i reboot the device all the disk space is "returned" so i'm not sure what's causing this.
one idea i have is that some the apps fail the decrypt process so maybe there is an issue of cleaning up after failure.
The text was updated successfully, but these errors were encountered: