radareorg / radare2-bindings

Bindings of the r2 api for Valabind and friends
GNU Lesser General Public License v3.0
130 stars 92 forks source link

Graph PNG Output Not Working #229

Closed utkonos closed 1 year ago

utkonos commented 2 years ago

When using agCw in the python bindings, the dot format file a.dot is zero bytes, and the PNG output image is not created. The output from that command string does show that it is trying to create the file. Graphviz is installed and working with radare2 command line as well as r2pipe.

image

wtdcode commented 2 years ago

Hello, thanks for your issue. I would have a look ASAP. Sorry I'm a little busy these days.

utkonos commented 2 years ago

Hello, thanks for your issue. I would have a look ASAP. Sorry I'm a little busy these days.

Thanks for the quick response! BTW: Not a super high priority. I am able to get the dot output nice and cleanly from the agCd call at the top. Therefore, generating the PNG within radare2 is not a blocker for me. I will just need to learn a bit more about Graphviz and implement that part in my code.

The source for radare2 is a little bit dizzying, however, would you be able to point me to where the graphviz bits are? I'd like to make my implementation as similar as possible to radare2's final output product. This way what I do manually on the command line in radare2 will match what automation produces 1:1.