Skip to content

bug: Morphe App throws error when trying to patch TiviMate #669

Description

@itsmorphintime2026

Bug description

When patching TiviMate app using Rushi's patches it throws an error as shown in the logs below. Rushi says this is an issue with the Morphe app and not his patch.

Version of Morphe (Manager) and the app you are patching

Morphe Manager 1.22.0

TiviMate app using Rushi's patches

Morphe logs

java.lang.IllegalArgumentException: totalSize < MINIMUM_SIZE
	at okio.Buffer$$ExternalSyntheticBUOutline0.m(SourceFile:0)
	at com.google.common.base.Preconditions.checkArgument(SourceFile:141)
	at com.android.tools.build.apkzlib.zip.ExtraField$AlignmentSegment.<init>(SourceFile:338)
	at com.android.tools.build.apkzlib.zip.ZFile.writeAllFilesToZip(SourceFile:1149)
	at com.android.tools.build.apkzlib.zip.ZFile.update(SourceFile:1023)
	at com.android.tools.build.apkzlib.zip.ZFile.close(SourceFile:1348)
	at kotlin.io.CloseableKt.closeFinally(SourceFile:47)
	at app.morphe.patcher.apk.ApkUtils.applyTo(SourceFile:61)
	at app.morphe.manager.patcher.Session$run$5.invokeSuspend(SourceFile:113)
	at app.morphe.manager.patcher.Session$run$5.invoke(SourceFile:0)
	at app.morphe.manager.patcher.Session$run$5.invoke(SourceFile:0)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatched(SourceFile:66)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(SourceFile:43)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(SourceFile:497)
	at kotlinx.coroutines.BuildersKt.withContext(dex-id-ace44fe2fda8b14435295ee3553adcec9bc69d14:1)
	at app.morphe.manager.patcher.Session.run(SourceFile:111)
	at app.morphe.manager.patcher.Session$run$1.invokeSuspend(SourceFile:12)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:34)
	at kotlinx.coroutines.DispatchedTask.run(SourceFile:100)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(SourceFile:586)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(SourceFile:807)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(SourceFile:717)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:704)

Acknowledgements

  • I have checked all open and closed bug reports and this is not a duplicate.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
  • The bug only affects using Morphe (Manager)

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