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

SmaliDebugger: io.github.hqktech.JDWP$JdwpRuntimeException: Insufficient space for decoding #1471

Closed
magicjva opened this issue Apr 28, 2022 · 5 comments
Milestone

Comments

@magicjva
Copy link

Please describe what you did before the error occurred.
IMPORTANT! If the error occurs with a specific APK file please attach or provide link to apk file!

  • Jadx version: 1.3.5
  • Java version: 11.0.5
  • Java VM: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM
  • Platform: Windows 10 (10.0 amd64)
  • Max heap size: 11296 MB
  • Program args: -Xms806m -Xmx11296m -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -XX:+UseG1GC
io.github.hqktech.JDWP$JdwpRuntimeException: Insufficient space for decoding, size(693501952) > bytes.length(2915).
	at io.github.hqktech.JDWP.checkCapability(JDWP.java:337)
	at io.github.hqktech.JDWP.decodeRaw(JDWP.java:401)
	at io.github.hqktech.JDWP$JdwpString.decode(JDWP.java:7475)
	at io.github.hqktech.JDWP$ReferenceType$MethodsWithGeneric.decode(JDWP.java:2417)
	at jadx.gui.device.debugger.SmaliDebugger.getMethodSignatureInternal(SmaliDebugger.java:998)
	at jadx.gui.device.debugger.SmaliDebugger.access$500(SmaliDebugger.java:83)
	at jadx.gui.device.debugger.SmaliDebugger$4.lambda$onMethodEntry$0(SmaliDebugger.java:412)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)

@jpstotz jpstotz changed the title io.github.hqktech.JDWP$JdwpRuntimeException: Insufficient space for decoding, size(693501952) > bytes.length(2915). SmaliDebugger: io.github.hqktech.JDWP$JdwpRuntimeException: Insufficient space for decoding Apr 28, 2022
@jpstotz
Copy link
Collaborator

jpstotz commented Apr 28, 2022

It is difficult to guess if this is a Jadx problem or a problem of the used smali debugging library.

In both cases without a lot more details on how details (e.g. the APK you were debugging) and what classes you were looking at when the error occurred and so on. @magicjva Can you please provide those details?

@george-hopkins
Copy link
Contributor

I encountered the same issue and was able to debug the APK after applying HQKTech/jdwp#2.

@skylot
Copy link
Owner

skylot commented Oct 7, 2022

I made a fork for jdwp library, apply @george-hopkins fix and switch jadx to my fork, so this issue should be fixed now.
Can anyone check latest unstable build? 🙂

@george-hopkins
Copy link
Contributor

Thank you for fixing the issue! I was able to debug the affected APK with jadx-1.4.4.86-29b64300.

@skylot
Copy link
Owner

skylot commented Oct 12, 2022

@george-hopkins great! Thank you for patch and fix confirmation 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants