Comments (19)
from afsctool.
from afsctool.
Thank you for this! I've been running into the same issue and was just about to put together a sample test case, and arrived at the issues page to find it already resolved
I can confirm that in my case (mostly PNGs and assets used in apps), the problematic images are no longer truncated to zero-byte files.
from afsctool.
from afsctool.
Thanks for the quick response! I've created four test folders and copied them via ditto to an dmg. You can download it here: https://we.tl/t-YZQlmMfcGr
I get the empty files with both the LZVN and ZIP option – the compression level does not seem to change the outcome (tried 5 & 9).
In the PNG and JPEG folders (ZLIB & LZVN) there are a few 0 byte files (Samsung*.png). When using the brew afsctool these files compress without losing their content (folder test-afsctool164).
I've also copied all terminal outputs from building the LZVN libraries and afsctool files as well as the output (with 'vvv') of afsctool as txt files (plus some screenshots). Hope you can solve this issue – i have no idea what goes wrong during compression.
Have compiled the first version (v34) and when i try to compress the test folder i get the error "No compressable files in folder"... Strange. I've doublechecked the files, they are all uncompressed. File permissons are OK. Tried running it with "sudo", but get the same error. Will go up the ladder and see if later versions work.
from afsctool.
from afsctool.
With v34 i get this error message for every folder i select – i wonder if something simply did go wrong during the build process. But it doesn't matter – i am right now at commit 331893d (oct 2018) and both ZIP and LZVN compression work without producing empty files! Will try out the next few versions to narrow down the breaking change.
This issue is not only limited to png and jpg files, it also happened with a >20 MB PSD file. And i was so smart to compress two crucial folders on my system: /usr/local/Cellar (all the homebrew files) and the "site-packages" folders of my python2.7 and 3.6 installs. And after that i had to clean up hundreds of 0 byte .py, .rb and other source files... At least now i have some commands ready to reinstall all my brew and pip packages for the next catastrophe :-).
from afsctool.
from afsctool.
Are the files really zero? What happens if you decompress them? What happens if you load/run them?
The only reason I ask is that in Clusters case the data was still there?
from afsctool.
from afsctool.
I've not seen it, or found any compressed apps that won't work because of it. Strange.
from afsctool.
Let's keep the issue open until we have confirmation this was all...
from afsctool.
What commit did things go bad in? I guess I could be using my own build from before that date?
from afsctool.
On closer inspection a couple of apps I compressed did suffer from this (missing icons, so easy to spot!)
from afsctool.
For those needing to repair/restore from backup, you can find zero-byte files easily within a directory:
find ./ -type f -size 0
from afsctool.
from afsctool.
I restored Acorn.app
and Transmit.app
by downloading fresh apps, and compressing now they are fine (icon does not become 0-bytes)
I only really compress apps, which can be easily recovered or restored, so not much harm was done here for me.
Thanks for fixing quickly.
from afsctool.
from afsctool.
Seems safe to close this now.
from afsctool.
Related Issues (20)
- Building on Apple M1 HOT 5
- Is this afsctool the clear successor to the original? Should the homebrew afsctool formula point here instead? HOT 4
- Does your afsctool support APFS? HOT 2
- Unable to build LZVN on apple m1 HOT 15
- building for macOS-x86_64 but attempting to link with file built for macOS-arm64 HOT 8
- About maintenance of the fork HOT 3
- Is this identical to 'brew install afsctool' or is that the original version? HOT 4
- Failed to build on M1 - Monterey 12.0.1 with Xcode 13.1 HOT 11
- Process stuck waiting HOT 12
- Are we ready for a new release? HOT 3
- Unable to build when the path to Xcode contains spaces HOT 3
- Build errors with GCC 5 HOT 9
- Recovering missing/deleted files HOT 4
- Time Machine risks? HOT 3
- Incorrect license HOT 4
- -t and -i options usage HOT 10
- afsctool breaks binaries, sometimes (HFS+) HOT 9
- Compress, decompress, compress results in lots of mismatch errors HOT 19
- compressing breaks app (workaround: restart mac) HOT 25
- Cannot build HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from afsctool.