Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JADX ERROR: Failed to decode insn: 0x0017: INVOKE_CUSTOM #1760

Open
billpeace opened this issue Jan 15, 2023 · 5 comments
Open

JADX ERROR: Failed to decode insn: 0x0017: INVOKE_CUSTOM #1760

billpeace opened this issue Jan 15, 2023 · 5 comments
Labels
bug Core Issues in jadx-core module java-input

Comments

@billpeace
Copy link

billpeace commented Jan 15, 2023

jadx.core.utils.exceptions.JadxRuntimeException: 'invoke-custom' instruction processing error:
Failed to process invoke-custom instruction:
CallSite{[
 {ENCODED_METHOD_HANDLE: INVOKE_STATIC: Ljava/lang/invoke/LambdaMetafactory;->altMetafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;},
 apply,
 {ENCODED_METHOD_TYPE: ()Lcom/baomidou/mybatisplus/core/toolkit/support/SFunction;},
 {ENCODED_METHOD_TYPE: (Ljava/lang/Object;)Ljava/lang/Object;},
 {ENCODED_METHOD_HANDLE: INVOKE_INSTANCE: Lcn/gwssi/extranet/app/khd/codeset/entity/PCTMkDmpzDmjxxT;->getDmjpzRid()Ljava/lang/Long;},
 {ENCODED_METHOD_TYPE: (Lcn/gwssi/extranet/app/khd/codeset/entity/PCTMkDmpzDmjxxT;)Ljava/lang/Object;},
 {ENCODED_INT: 5},
 {ENCODED_INT: 0}
]}
@billpeace billpeace added bug Core Issues in jadx-core module labels Jan 15, 2023
@skylot
Copy link
Owner

skylot commented Jan 15, 2023

@billpeace please share sample apk, overwise I will be unable to reproduce and fix this issue.

@billpeace
Copy link
Author

billpeace commented Jan 15, 2023

@billpeace please share sample apk, overwise I will be unable to reproduce and fix this issue.

JADX ERROR: Failed to decode insn: 0x0016: INVOKE_CUSTOM , method:
at jadx.core.dex.instructions.InvokeCustomBuilder.build(InvokeCustomBuilder.java:34)
at jadx.core.dex.instructions.InsnDecoder.invokeCustom(InsnDecoder.java:581)
at jadx.core.dex.instructions.InsnDecoder.decode(InsnDecoder.java:440)
at jadx.core.dex.instructions.InsnDecoder.lambda$process$0(InsnDecoder.java:50)
at jadx.plugins.input.java.data.code.JavaCodeReader.visitInstructions(JavaCodeReader.java:82)
at jadx.core.dex.instructions.InsnDecoder.process(InsnDecoder.java:45)
at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:145)
at jadx.core.dex.nodes.ClassNode.load(ClassNode.java:410)
at jadx.core.ProcessClass.process(ProcessClass.java:67)
at jadx.core.ProcessClass.generateCode(ProcessClass.java:115)
at jadx.core.dex.nodes.ClassNode.decompile(ClassNode.java:384)
at jadx.core.dex.nodes.ClassNode.decompile(ClassNode.java:308)
Caused by: jadx.core.utils.exceptions.JadxRuntimeException: Failed to process invoke-custom instruction: CallSite{、
at jadx.core.dex.instructions.InvokeCustomBuilder.build(InvokeCustomBuilder.java:32)

@skylot
Copy link
Owner

skylot commented Jan 15, 2023

@billpeace thanks for sample!
I commit a quick fix for this issue, please check latest unstable build.
I still not sure if additional args in altMetafactory method can be used, I will check this later.
Also, there are some other issues in the sample, I will try to resolve them too, so I will keep this issue open.

@billpeace
Copy link
Author

@billpeace thanks for sample! I commit a quick fix for this issue, please check latest unstable build. I still not sure if additional args in altMetafactory method can be used, I will check this later. Also, there are some other issues in the sample, I will try to resolve them too, so I will keep this issue open.

thanks very much

@hide955
Copy link

hide955 commented Feb 6, 2023

@skylot hi, last version JADX ERROR: Failed to decode insn: 0x0007: INVOKE_CUSTOM
invoke-custom.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Core Issues in jadx-core module java-input
Projects
None yet
Development

No branches or pull requests

3 participants