Repository navigation
v1.4.3 - Fix Skia texture creation crash and restore ANGLE dylibs in Helium
馃悰 Bug Fixes
1. Fix Patch 6 False Positive Corrupting Skia Texture Creation (Chrome, Brave, Helium)
- In v1.4.2, the loosened dynamic regex for Patch 6 (
ScopedEGLSurfaceIOSurface::ValidateTarget) inadvertently matchedGetGrBackendTexturein Chromium'sgpu/command_buffer/service/skia_utils.cc. - Because
GetGrBackendTexturewas overwritten withmov al, 1; ret, every call fromIOSurfaceImageBacking::ProduceSkiaGaneshreturned an uninitialized/invalid texture object. - This triggered:
leading to consecutive GPU crashes and Chrome/browsers permanently disabling hardware acceleration (
SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: CompoundImageBacking Restarting GPU process due to unrecoverable error. Context was lost.--use-gl=disabled). - Fix: Patch 6 now strictly anchors to the
0x130stack allocation frame ofValidateTarget(\x48\x81\xec\x30\x01\x00\x00) and checks already-applied status first, completely eliminating false positives againstGetGrBackendTexture(which has a0x170stack frame).
2. Restore ANGLE Dylibs Injection in Helium Browser
- Fixed an issue in
HeliumPatcher.pre_patch_hookwhich failed to invokesuper().pre_patch_hook(). - Consequently,
libEGL.dylibandlibGLESv2.dylibwere not being copied intoHelium Framework.framework/Versions/.../Libraries/, causing ANGLE initialization failures and blank/white page rendering on complex WebUI / canvas pages. - Calling
super().pre_patch_hook()ensures clean ANGLE dylibs are properly injected and verified.
馃殌 How to Update
Run in your terminal:
python3 patch.py --update
python3 patch.py all --force