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

Diff gets stuck at 58% #321

Open
karpiyon opened this issue Nov 29, 2024 · 2 comments
Open

Diff gets stuck at 58% #321

karpiyon opened this issue Nov 29, 2024 · 2 comments

Comments

@karpiyon
Copy link

karpiyon commented Nov 29, 2024

Hi,
I am diffing 2 files.
At first I exported the sqlite including small functions and run teh diff.
The sqlite was ~2.4Gb and it always got stuck at around 57%.
I decided to try to generate sqlite without small functions and not to select "Use the decompile" and this time the sqlite files were reduced to ~500MB yet the process gets stuck at ~58%.

I let it run for 3-4 hours and it is still stuck.

What can i do to assist in debugging this or to complete the process?

image

@karpiyon
Copy link
Author

I can try and upload the sqlite if it helps

@karpiyon karpiyon changed the title Digg gets stuck at 58% Diff gets stuck at 58% Nov 29, 2024
@joxeankoret
Copy link
Owner

joxeankoret commented Dec 1, 2024

It's most likely finding compilation units, found so many, and is still matching compilation units. I recommend you to wait as it might take more than 4 hours if that's the case. If you want to see if that's the case run a query like this one for each exported SQLite database:

select count(*) from compilation_units;

If it returns hundreds or thousands of them, well, that's the culprit of why it's taking long.

If you prefer to disable this heuristic, you will need to write a diffing script to disable the Related compilation unit heuristic. Basically, in the on_launch_heuristic event do return False for that heuristic. You have a skeleton example for such script here: https://github.com/joxeankoret/diaphora/blob/master/doc/examples/hooks/hooks_example2.py

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

No branches or pull requests

2 participants