-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[gui] full text search does not find all occurrences #812
Comments
I can not reproduce this issue. I downloaded the linked APK file and opened it in jadx-1.1.0-b1197-0c55ab90 on Windows using AdoptOpenJDK 11.0.5. Full text for I am getting the same result when starting the same Jadx version on Ubuntu 18.04 using OpenJdk 11.0.5. Are you sure you have assigned enough RAM/Heap for Jadx so that Jadx is able to fully decompile the app and create the full text index? If Jadx is running out of ram the full text index may be incomplete. In my environment 4 GB max heap is sufficient to open the APK file you have posted. If you use an older Java version you may need more RAM as the memory management of older Java versions is not as good as the one from Java 11. |
I found cause of the problem: ERROR - Index error in class: com.adguard.android.ui.DrawerActivity
jadx.core.utils.exceptions.JadxRuntimeException: JavaMethod not found by MethodNode: androidx.appcompat.app.AppCompatActivity.findViewById(int):T
at jadx.api.JadxDecompiler.getJavaMethodByNode(JadxDecompiler.java:354)
at jadx.api.JadxDecompiler.convertNode(JadxDecompiler.java:392)
at jadx.api.JavaClass.getUsageMap(JavaClass.java:143)
at jadx.gui.utils.CodeUsageInfo.processClass(CodeUsageInfo.java:39)
at jadx.gui.jobs.IndexJob.lambda$runJob$0(IndexJob.java:44)
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) This index error occur sometimes not always, and looks like it is a multithreading problem, setting threads count to 1 resolve all exceptions. @xmhwws try to set 'Processing threads count' in preferences to |
@skylot Thanks for your help, what you said may be a hidden bug. I identified the problem, which is what I said earlier #812 (comment) As long as I un-exclude android, this problem will not exist. Your discovery may be a new hidden bug? |
I made a fix for synchronization issue, this fix resolve exceptions for me. Please check latest unstable build. |
@skylot you are right. jadx still works, the search shows all results. You say exclusion, writing |
Yes, excluded only packages started with cls.getFullName().equals(exclude) || cls.getFullName().startsWith(exclude + '.') |
Something similar happened before:
#803 (comment)
#742 (comment)
jadx version: dev(2019.12.23 the lastest commit!) and jadx-1.1.0-b1197-0c55ab90
Tested both my compiled jadx and the unstable version of jadx you posted
apk link: https://drive.google.com/open?id=1ZC4soMkpfcFiGwbHb3bHIm0-PjxY6AQO
apk version:
3.3.227-10000227
class:

com.adguard.android.n
find:
joke_phrase_0
but in GDA:


Open jadx to the same location
class:
com.adguard.android.ui.DrawerActivity
find:
joke_phrase_0
method:
protected void onPostCreate(android.os.Bundle bundle)
This is the third time I have encountered the same problem in jadx and I don't know what to do.
I sincerely suggest you think about it:
search based on smali
The text was updated successfully, but these errors were encountered: