Version and Platform (required):
- Binary Ninja Version: 6.0.10601 (can't easily test dev for packaging reasons)
- Edition: Personal
- OS: NixOS
- OS Version: 26.05
- CPU Architecture: x64
Bug Description:
Importing and using binaryninja.interaction.show_graph_report causes pyright evaluation time to rise from 6s to ~40s.
Steps To Reproduce:
- Create
test.py
- Paste:
from binaryninja.interaction import show_graph_report
show_graph_report(1, 2)
- Run
pyright --outputjson test.py
- Observe
timeInSec to be vastly larger than normal (~40s for my system)
- Comment out
show_graph_report(1, 2)
- Rerun pyright and observe
timeInSec of below 1s
Expected Behavior:
Importing show_graph_report should not cause a drastic increase in pyright evaluation time.
Screenshots/Video Recording:
If applicable, please add screenshots/video recording here to help explain your problem.
Binary:
If applicable, please provide us with the binary to help us work with the issue faster. Here are a few options:
Additional Information:
I'm using this to get pyright to discover the api in my dev env:
BINJA_ROOT=$(cat "$HOME/.binaryninja/lastrun" | tr -d '\n')
export PYTHONPATH="$BINJA_ROOT/python:$PYTHONPATH"
Version and Platform (required):
Bug Description:
Importing and using
binaryninja.interaction.show_graph_reportcauses pyright evaluation time to rise from 6s to ~40s.Steps To Reproduce:
test.pypyright --outputjson test.pytimeInSecto be vastly larger than normal (~40s for my system)show_graph_report(1, 2)timeInSecof below 1sExpected Behavior:
Importing
show_graph_reportshould not cause a drastic increase in pyright evaluation time.Screenshots/Video Recording:
If applicable, please add screenshots/video recording here to help explain your problem.Binary:
If applicable, please provide us with the binary to help us work with the issue faster. Here are a few options:Additional Information:
I'm using this to get pyright to discover the api in my dev env: