Skip to content

"Close and Reopen" results in Multiple Open Windows on Same BNDB, Preventing Saving #3884

Open
@w1282

Description

@w1282

Version and Platform (required):

  • Binary Ninja Version: 3.3.4048-dev
  • OS: Windows
  • OS Version: 10
  • CPU Architecture: x64

Bug Description:
When "Close and Reopen" or "Update" cause BN to reopen active windows spawned from the same view (e.g. 'Split View' -> Drag into new Window), each window is reopened in a separate, unrelated process. This causes file contention when trying to save, and unless the user is aware of the underlying issue, it causes confusion around things like 'Sync Groups' not being synchronized even though both windows show themselves being sync'd.

Steps To Reproduce:
Please provide all steps required to reproduce the behavior:

  1. Open a file for analysis
  2. Cause a view to split
  3. Drag one view into a new Window
  4. Execute Close and Reopen
  5. Once respawned, make a change in one of the windows
  6. Attempt to save and observe the file contention

Expected Behavior:
Multiple views spawned from the same BN instance would reopen under the same process, maintaining cross-view synchronizations, and changes from one would reflect in the other. Alternatively, just reopen one instance and lose extraneous views.

Screenshots:
If applicable, please add screenshots here to help explain your problem.

Additional Information:
Not a particular nuisance, since the resolution is to just close one process without saving, but if the user didn't catch on soon enough and worked in both views they might end up losing some volume of work.

https://binaryninja.slack.com/archives/C0CV88A83/p1675892840609979

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: DatabaseIssue needs changes to BNDBsComponent: UIIssue needs changes to the user interfaceEffort: LowIssue should take < 1 weekImpact: LowIssue is a papercut or has a good, supported workaround

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions