Giter Club home page Giter Club logo

Comments (19)

RJVB avatar RJVB commented on July 21, 2024 2

from afsctool.

RJVB avatar RJVB commented on July 21, 2024 1

from afsctool.

ahelpingchip avatar ahelpingchip commented on July 21, 2024 1

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.

RJVB avatar RJVB commented on July 21, 2024

from afsctool.

subzerofun avatar subzerofun commented on July 21, 2024

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.

RJVB avatar RJVB commented on July 21, 2024

from afsctool.

subzerofun avatar subzerofun commented on July 21, 2024

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.

RJVB avatar RJVB commented on July 21, 2024

from afsctool.

gingerbeardman avatar gingerbeardman commented on July 21, 2024

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.

RJVB avatar RJVB commented on July 21, 2024

from afsctool.

gingerbeardman avatar gingerbeardman commented on July 21, 2024

I've not seen it, or found any compressed apps that won't work because of it. Strange.

from afsctool.

RJVB avatar RJVB commented on July 21, 2024

Let's keep the issue open until we have confirmation this was all...

from afsctool.

gingerbeardman avatar gingerbeardman commented on July 21, 2024

What commit did things go bad in? I guess I could be using my own build from before that date?

from afsctool.

gingerbeardman avatar gingerbeardman commented on July 21, 2024

On closer inspection a couple of apps I compressed did suffer from this (missing icons, so easy to spot!)

from afsctool.

gingerbeardman avatar gingerbeardman commented on July 21, 2024

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.

RJVB avatar RJVB commented on July 21, 2024

from afsctool.

gingerbeardman avatar gingerbeardman commented on July 21, 2024

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.

RJVB avatar RJVB commented on July 21, 2024

from afsctool.

RJVB avatar RJVB commented on July 21, 2024

Seems safe to close this now.

from afsctool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.