Open djn3m0 opened 1 month ago
The exception is from the Java side. That error ghidra.framework.model.DomainObjectException
can sometimes result from the "program" domain object being closed.
As the decompile function returns return (all_funcs, decompilations, bin_output_path, str(program.compiler), str(program.languageID), callgraphs)
and you are calling print, maybe the one of the function references are references the program object? Or maybe printing all_funcs
causes ghidra.program.database.function.FunctionDB.toString
that reference the closed program. The program object is closed when the function returns. Likely it may need a refactor.
I use the all_funcs in several tests but only call len on all_funcs. https://github.com/clearbluejar/ghidrecomp/blob/main/tests/test_callgraph.py#L20-L25
Hi,
but as result i get,
Why is this happening and how can i fix it?
Thanks