binaryninja-api
binaryninja-api copied to clipboard
Saving two files at the same time causes Deadlock
Version and Platform (required):
- Binary Ninja Version: 3.1.3704
- OS: macOS
- OS Version: 12.4
- CPU Architecture: M1
Bug Description: If you have two windows open, and try to save both windows at the same time, the program hangs and deadlocks. A quick debuggering shows that both save threads are trying to execute the save on the main thread, while the main thread is stuck waiting for one of the saves to finish, so neither can start.
Steps To Reproduce: Please provide all steps required to reproduce the behavior:
- Open a bndb
- File > New Window
- In the new window, open a different bndb
- Try to save both windows at the same time
- Might take a few attempts if the files are small, but eventually one window will be stuck at 0% and the other 1%, with the entire process hanging.
Expected Behavior: I expected the process to not deadlock