Skip to content

[Bug] WARN: can't get operand(s) for move-result-object, wrong position in multidex #69

@isus203

Description

@isus203

Description

I encountered a warning/error during the conversion of a DEX file to JAR using the latest version of this fork. It seems like the decompiler is struggling with register mapping for move-result-object.

Error Log

dex2jar extracted_dex/classes5.dex -> jar_out/classes5.jar
WARN: can't get operand(s) for move-result-object, wrong position ?
WARN: can't get operand(s) for move-result-object, wrong position ?

Steps to Reproduce

  1. Take the affected APK/DEX.
  2. Run ./d2j-dex2jar.sh classes5.dex
  3. Observe the warnings in the console output.

Environment Details (from Manifest)

  • Compile SDK (PlatformBuild): 33 (Android 13)
  • Target SDK: 28 (Android 9.0)
  • Min SDK: 22 (Android 5.1)
  • Dex-tools version: 2.4.35 (ThexXTURBOXx fork)
  • Java version: 21 (GitHub Actions Runner)

Additional Context

The DEX file was sanitized using baksmali and smali before running dex2jar, but the issue persists. This suggests a problem with how the decompiler handles specific bytecode sequences in this multidex file.

Note: I can provide the sample DEX file if needed for debugging.

classes5.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions