Skip to content

Shader compile failures + native SIGSEGV crash on Android (Krypton/GL4ES renderers) #166

Description

@TheGodEver

Description
Veil's lighting shaders (veil:light/area, veil:light/point, veil:light/directional, veil:necromancer/skinned_mesh) fail to compile on Android mobile GLES renderers. Shortly after Veil logs "Loaded 16 shaders" and falls back to legacy rendering ("Multi-Bind unsupported, using legacy"), the JVM crashes with a SIGSEGV inside the native GL wrapper library.

Reproduced on two different GL translation backends with the same outcome (different specific GLSL errors, same crash point).

To Reproduce

  1. Launch Minecraft 1.21.1 with NeoForge 21.1.235 on Android via Zalith Launcher
  2. Have Veil installed (pulled in as a dependency of "The Broken Script" mod, bundled jar-in-jar)
  3. Let the game load through to shader initialization

Expected Behavior
Veil's shaders should either compile correctly on GLES-based mobile renderers, or fail gracefully without crashing the JVM.

Screenshots
(Fatal signal 6)

System Information

  • Veil Version: 1.3.2
  • Minecraft Version: 1.21.1
  • Loader & Loader Version: NeoForge 21.1.235
  • Operating System: Android 14 (Xiaomi 21121210G, arm64)
  • CPU: arm64 (Adreno 730 GPU)
  • GPU: Adreno (TM) 730
  • RAM: 12GB

Additional Context

  • Launcher: Zalith Launcher 2.4.9_hotfix1
  • Tried with both the Krypton Wrapper renderer (OpenGL ES 3.x) and gl4es 1.1.5 (OpenGL ES 2.0) — same shader compile errors and crash pattern in both cases.
  • Full logs: https://mclo.gs/E6lJSMX
  • Crash details:
    • Krypton run: SIGSEGV in libng_gl4es.so
    • GL4ES run: SIGSEGV in libgl4es_114.so
  • Also noted: ImGui native library (libimgui-java64.so) is compiled for x86_64 and fails to load on ARM64, causing an UnsatisfiedLinkError (Veil catches this and disables ImGui, non-fatal on its own, but may be related to the shader issue).

Im sending this hoping this also gets aimed at mobile java users.If not its okayScreenshot_2026-07-15-08-58-55-592_com.movtery.zalithlauncher.v2.jpg

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions