VintageFix ARM32 Fix
An unofficial fork of VintageFix 0.7.2 by embeddedt, made for 32-bit ARM devices: Android phones running Minecraft 1.12.2 through FCL or similar launchers with a 32-bit Java 8 runtime.
The problem
On 32-bit ARM, the original VintageFix can crash the whole JVM at launch with:
SIGBUS (BUS_ADRALN) in libjvm.so, thread "JarDiscovererCache save thread"
VintageFix saves its caches (jarDiscovererCache.dat and transformerCache.dat) with Kryo's UnsafeOutput/UnsafeInput. These write values such as doubles to unaligned memory addresses, which 32-bit ARM does not allow.
The fix
In JarDiscovererCache and TransformerCache, Kryo's UnsafeInput/UnsafeOutput are replaced with the regular Input/Output. Nothing else is changed, so the mod works the same as the original, just without the crash.
Installation
- Remove the original vintagefix jar from your mods folder. Do not use both at once, because they share the same mod ID.
- Put this jar in the mods folder.
- Delete the old cache files (jarDiscovererCache.dat, transformerCache.dat). The cache format differs from the original, so they must be created again.
Requires MixinBooter, like the original.
Tested on
- POCO C61, Android 16, 32-bit userspace
- FCL, OpenJDK 8 (aarch32), Minecraft 1.12.2, Forge 14.23.5.2864
- Played with 18 mods, no crashes
Other devices and modpacks are untested.
Credits and license
All credit for VintageFix goes to embeddedt and its contributors. This fork is released under the same license as the original, the GNU Lesser General Public License v3.0 (LGPLv3). The original license files are kept in the jar.
Source code of this fork: [LINK TO YOUR GITHUB FORK] Modified files: JarDiscovererCache, TransformerCache.
If you do not use a 32-bit ARM device, use the original mod instead. Original project: https://github.com/embeddedt/VintageFix

