-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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.ArrayIndexOutOfBoundsException: Index 9 out of bounds for length 9 #1796
Comments
At a first glance this looks like a bug in Java, not in Jadx. However the exception is very close to this bug report here: https://bugs.openjdk.org/browse/JDK-6253801 And the outcome of this bug report is it was not a Java bug, but a developer problem: UI component were added outside of the main thread. So may be the the debugger window performs some UI changes on a non-main thread? |
The PR reference is wrong, I accidentally used the wrong issue number. |
Do you guys have any idea of when a version with this bug fix will be released? not to be annoying, the other option for debuggin smali is "smalidea" for Android Studio which is very worse and doesn't work well, this one seems to be the best solution out there and I'm also using jadx-gui for works. Thanks in advance |
Unfortunately based on the error stack trace it is pretty complicated to identify the code section that is causing this error. Additionally such errors are very hard to reproduce as the execution timing and thus the OS, the used CPU, Java version and whatever have an impact if this error occurs or not. For example I have never seen this error and I can not reproduce it in my set-up. If you often get this error and you are familiar with IntelliJ you could help us checking out Jadx GIT, open it in IntelliJ and then add an exception break point of Then Start Jadx-GUI If the break-point hits please check the IntelliJ debugger view what list is causing the error (e.g. what are the existing 8 elements and what is |
@jpstotz you are right, reproduce rate of this issue is very low, and I was unable to trigger it in debug mode 🙁 |
Well, after changing to Java 17 this error is not happening anymore. However there are some things on the UI that are not very well, for example, the locals values that stands between the callstack and debugger log is not resizable. Also it always show "undefined" for every value of the registers, the main point for me to debug is to check how the variables are changing its values along the execution... It always show (JDWP Error Code:35) Invalid slot. for v1... |
@FabioNevesRezende What device do you use for debugging (real phone - which model, or emulator which emulator type, image architecture and image name)? |
I'm using an image of android-x86 running on Qemu/virt-manager |
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!
The error occurred with the apk https://mas.owasp.org/crackmes/Android/#android-uncrackable-l1
When it hit a breakpoint set on the first instruction of the MainAcitivy.verify method
The text was updated successfully, but these errors were encountered: