From 1ac42957091156cde6eaae7558b2a8379d5f2476 Mon Sep 17 00:00:00 2001 From: The412Banner <205237651+The412Banner@users.noreply.github.com> Date: Wed, 18 Nov 2026 07:36:13 -0500 Subject: [PATCH] fix(bionic): Wine layer with the ARM64EC code map sized for 47-bit addresses The bionic layer sized Wine's ARM64EC code map from the host's address space, 2^39 on Android, while RtlIsEcCode reads it for any address below 2^47. An exception unwound through JIT frames (Brawlhalla's Adobe AIR when its Steam extension faulted) handed it a pointer above 2^39; the read faulted again in each nested dispatch until the main thread ran out of stack, and the game hung half-alive. Pins proton-wine d4c9ffa7 (layer v16 + the fix, pre-release build-bionic-layers-20261118-v16-ecmap). Tested on the Pocket FIT (r24 with the fixed ntdll): with the Steam bridge off Brawlhalla now exits on its own instead of hanging (the old ntdll overflowed at the same address as before); AIO 64-bit Direct3D 11 / Vulkan / Direct3D 7 / OpenGL and 32-bit Direct3D 7 / OpenGL run, Brawlhalla runs. --- tools/bionic-runtime/build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/bionic-runtime/build.sh b/tools/bionic-runtime/build.sh index a3745485d3..309a4e29e9 100755 --- a/tools/bionic-runtime/build.sh +++ b/tools/bionic-runtime/build.sh @@ -35,8 +35,9 @@ GAMESCOPE_COMMIT=8f212644c46460549035971ab914421180f61a7c GAMESCOPE_PATCHES="0117-wsi-cache-present-bypass-check.patch 0119-wsi-default-images-under-limiter.patch" VULKAN_HEADERS_TAG=v1.4.341 # The bionic DroidDeck-Proton layer the pack is made for: linked against (libwayland-client) and checked against, not packed. -LAYER_URL=https://github.com/The412Banner/proton-wine/releases/download/build-bionic-layers-20261030-v16/DroidDeck-proton-11.0-12.8-arm64ec.wcp -LAYER_SHA256=a5e05e35214f34603f8cf9a362bb6b4bce9f18d773ee689ecfaff6136a1e9003 # proton-wine 067c719d, layer v16 +# Layer v16 (067c719d) plus the ARM64EC code-map fix for 39-bit hosts (d4c9ffa7, run 44291095238). +LAYER_URL=https://github.com/The412Banner/proton-wine/releases/download/build-bionic-layers-20261118-v16-ecmap/DroidDeck-Proton-11.0-12.8-arm64ec.wcp +LAYER_SHA256=dc450fa53d03ef4391af97d975812ba4aae5f612f52bb3a673891a87a79f45cf # proton-wine d4c9ffa7 LAYER_VERSION=12.8 # Packed into the DroidDeck-Bionic tool next to the layer: FEX with Android-built unix libraries, and default # DXVK / VKD3D-Proton (DroidDeck components can swap these in files/lib/wine/{dxvk,vkd3d-proton} later).