Skip to content

Crash on startup: ClassNotFoundException com.mio.libpatcher.MainAgent (Error Code 6) #1365

@dragoninthevoid-gith

Description

@dragoninthevoid-gith

Environment

  • Launcher: Zalith Launcher 2.4.6
  • Device: OPPO CPH1955
  • Android: 11
  • Architecture: arm64
  • Renderer: Freedreno (Adreno)
  • Java Runtime: Internal-25

Problem

Minecraft crashes immediately after pressing Launch. The game never reaches the Mojang loading screen.

The launcher returns Error Code 6 and the JVM aborts during startup. "JVM aborted due to fatal signal 6"

Relevant Log

WARNING: package sun.security.action not in java.base
Exception in thread "main" java.lang.ClassNotFoundException: com.mio.libpatcher.MainAgent
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:488)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:556)
*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message Outstanding error when calling method in invokeJavaAgentMainMethod at src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 627
*** java.lang.instrument ASSERTION FAILED ***: "success" with message invokeJavaAgentMainMethod failed at src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 466
*** java.lang.instrument ASSERTION FAILED **: "result" with message agent load/premain call failed at src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 429
FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xaaa954]
V [libjvm.so+0xb0a88c]
V [libjvm.so+0xc6b8e0]
V [libjvm.so+0x106b03c]
V [libjvm.so+0xb25f80] JNI_CreateJavaVM+0x98
C [libjli.so+0x8b88]
C [libjli.so+0xba88]
C [libc.so+0xda27c] __pthread_start(void
)+0x44
C [libc.so+0x7a44c] __start_thread+0x44

Additional Information

The crash occurs before Minecraft/Fabric and any version with/without mod starts loading.

The launcher attempts to load MioLibPatcher.jar using "-javaagent", but startup fails with "ClassNotFoundException".

I already tried to use ChatGBT then try reinstalling the launcher data and downloading components again, but the issue remains.

latest_game.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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