mirror of
https://github.com/penpot/penpot.git
synced 2026-11-17 07:30:35 +00:00
The analysis of a package reads the metadata of every media and thumbnail of its container to attribute the shared objects to each file. It read them all at once, one promise per entry, and the container of a big file holds thousands of them: every read opens its own decompression stream, and Chromium fails the whole analysis under that load while Firefox keeps up. The failure is masked by zip.js with a generic "Cannot close a ERRORED writable stream". The references now go through an observable, one entry at a time, and a reference that cannot be read leaves its file without a size instead of failing the package: a number that misses one of the objects of the file is worse than no number. Closes #13022 AI-assisted-by: deepseek-v4.1-flash