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

java.lang.IllegalArgumentException: newPosition > limit: (8833896 > 1546640) #2424

Open
moriartywokao opened this issue Mar 4, 2025 · 1 comment
Labels
bug Core Issues in jadx-core module no-sample

Comments

@moriartywokao
Copy link

Issue details

I use jadx-gui 1.5.1 on win10 enterprise. Error message as follows:
ERROR: Failed to load class from file: C:\Users\xxxxxxxx\packagename\classes02.dex
java.lang.IllegalArgumentException: newPosition > limit: (8833896 > 1546640)
at java.base/java.nio.Buffer.createPositionException(Unknown Source)
at java.base/java.nio.Buffer.position(Unknown Source)
at java.base/java.nio.ByteBuffer.position(Unknown Source)
at jadx.plugins.input.dex.sections.SectionReader.absPos(SectionReader.java:82)
at jadx.plugins.input.dex.sections.SectionReader.getString(SectionReader.java:177)
at jadx.plugins.input.dex.sections.SectionReader.getType(SectionReader.java:165)
at jadx.plugins.input.dex.sections.DexClassData.getType(DexClassData.java:44)
at jadx.core.dex.nodes.ClassNode.(ClassNode.java:113)
at jadx.core.dex.nodes.RootNode.lambda$loadClasses$0(RootNode.java:127)
at jadx.plugins.input.dex.DexReader.visitClasses(DexReader.java:35)
at jadx.plugins.input.dex.DexLoadResult.visitClasses(DexLoadResult.java:26)
at jadx.core.dex.nodes.RootNode.loadClasses(RootNode.java:125)
at jadx.api.JadxDecompiler.load(JadxDecompiler.java:126)
at jadx.gui.JadxWrapper.open(JadxWrapper.java:75)
at jadx.gui.ui.MainWindow.lambda$loadFiles$3(MainWindow.java:537)
at jadx.core.utils.tasks.TaskExecutor.wrapTask(TaskExecutor.java:166)
at jadx.core.utils.tasks.TaskExecutor.runStages(TaskExecutor.java:142)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

and I want to upload dex file, but github does not allowed me to do so.

Thank u very much!

Relevant log output or stacktrace

Provide sample and class/method full name

No response

Jadx version

No response

@moriartywokao moriartywokao added bug Core Issues in jadx-core module labels Mar 4, 2025
@jpstotz
Copy link
Collaborator

jpstotz commented Mar 8, 2025

Can you please provide the APK file you try to load in Jadx?

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 no-sample
Projects
None yet
Development

No branches or pull requests

2 participants