Open Adam- opened 3 years ago
We have a commit which works around this issue by avoiding caching compressors if this zlib bug is present, if anyone else is experiencing the same problem: https://github.com/runelite/archive-patcher/commit/d394be050be75f4b14e2bc16b3e48f9cd6a39bfc
The
new DefaultDeflateCompatibilityWindow().isCompatible()
test fails on many Linux distros currently, including: Debian 10, 11, Fedora 32, and Arch, however passes on at least Ubuntu 18.0.4 and 20.04. Tested on OpenJDK 11. This is due to a change in zlib:which is present in zlib v1.2.9, v1.2.10, and v1.2.11.
The original behavior was restored upstream in the
develop
branch inwhich is unreleased - however Ubuntu is manually patching zlib with it in at least 18.04 and 20.04 - which is why those work.
We have additionally discovered disabling caching on the deflate compressor in DefaultDeflateCompatibilityWindow fixes this, too, eg:
however I don't know if this is a safe change to make.