Skip to content

New windows are opening instead of using existing windows #8436

Description

@UvuvDev

Version and Platform (required):

  • Binary Ninja Version: 6.0.10495
  • Edition: Ultimate
  • OS: MacOS
  • OS Version: Beta 27.0 26A5406E
  • CPU Architecture: M3 Pro

Bug Description:
During certain operations, particularly when the UI is open and binary ninja is opened from the command line, window management seems to break. For this specific issue, it's spawning a new window instead of using the existing one when launching a .bndb. However, there may be a wider issue, as I've had bugs where the window won't open at all from CLI but be selected by the toolbar, and will only appear after clicking the icon (un-reproducible for me, which is why I haven't made it a separate issue).

Steps To Reproduce:

  1. Close all running instances of Binary Ninja
  2. Run binaryninja from the CLI to open:
    • Windows: C:\windows\notepad.exe
    • Linux: /bin/ls
    • macOS: /bin/ls (select an object, arm64e or x86_64)
  3. Ensure it opens the file correctly, with no error
  4. Make note of the entry point function, then save a BNDB
  5. Open a new tab
  6. Run binaryninja from a new CLI with the path to the BDNB, ensure you get a confirmation prompt in the running instance, click Yes
  7. Observe that it opens a new window instead of activating the tab with the BNDB in it

Although inconsistently, this can cause a new window to show up.

Expected Behavior:
It should open the tab that has the file open already.

Screenshots/Video Recording:
Image

Binary:
/bin/ls on macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions