Skip to content

Crash on startup - NoSuchMethodError: STBImageResize.stbir_resize_uint8 #6460

@Nothing-Broken

Description

@Nothing-Broken

Describe the bug

Bug: Crash on startup - NoSuchMethodError: STBImageResize.stbir_resize_uint8

Environment:

  • Minecraft Version: 1.21.11
  • Meteor Client Build: 82
  • Launcher: ZalithLauncher
  • Renderer: MobileGlues (OpenGL 4.0)
  • Device: Samsung Galaxy S25 Ultra (Android 16, arm64)
  • Java: Internal-21 (21.0.1)

Description:
Meteor Client crashes on startup after a recent Minecraft library update. This issue did NOT exist before the update — the same setup with the same settings (ZalithLauncher + MobileGlues renderer) was working perfectly fine with both Meteor and Wurst Client loaded together.

After the update, Minecraft 1.21.11 now ships with a newer version of LWJGL that has removed or changed the stbir_resize_uint8 method in STBImageResize. Meteor Client's TexturePacker still calls this old method, causing a crash before the game fully loads.

Crash log excerpt:

java.lang.IllegalStateException: Error running @PostInit task 'GuiRenderer.init'
	...
Caused by: java.lang.NoSuchMethodError: 'boolean org.lwjgl.stb.STBImageResize.stbir_resize_uint8(java.nio.ByteBuffer, int, int, int, java.nio.ByteBuffer, int, int, int, int)'
	at meteordevelopment.meteorclient.gui.renderer.packer.TexturePacker.addResized(TexturePacker.java:83)
	at meteordevelopment.meteorclient.gui.renderer.packer.TexturePacker.add(TexturePacker.java:60)
	at meteordevelopment.meteorclient.gui.renderer.GuiRenderer.addTexture(GuiRenderer.java:66)
	at meteordevelopment.meteorclient.gui.renderer.GuiRenderer.init(GuiRenderer.java:71)

Steps to reproduce:

  1. Install Meteor Client build 82 on Minecraft 1.21.11 (Fabric)
  2. Launch the game via ZalithLauncher with MobileGlues renderer
  3. Game crashes immediately during initialization

Expected behavior: Game launches normally as it did before the LWJGL update.

Fix needed: Update TexturePacker.addResized() to use the new LWJGL STBImageResize API instead of the deprecated stbir_resize_uint8 method.

Steps to reproduce

  1. This setup (ZalithLauncher + MobileGlues renderer + Meteor + Wurst together) was working perfectly fine before a recent Minecraft library update.
  2. After the update, installing Meteor Client build 82 on Minecraft 1.21.11 (Fabric) causes a crash on startup.
  3. Launch the game via ZalithLauncher with MobileGlues renderer → game crashes immediately during initialization.

Meteor Version

1.21.11-82

Minecraft Version

1.21.11

Operating System

Linux

Before submitting a bug report

  • This bug wasn't already reported (I have searched bug reports on GitHub).

  • This is a valid bug (I am able to reproduce this on the latest dev build).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions