binaryninja-api icon indicating copy to clipboard operation
binaryninja-api copied to clipboard

macOS 26 window focus for restarting with a project file open

Open psifertex opened this issue 3 months ago • 3 comments

When using latest dev (and stable 5.2), if you open a file in a local (or remote) project on macOS 26, and use the "restart and re-open" command-palette action, it's possible to trigger a QT bug that causes focus to be completely lost and you can't regain it simply by doing ⌘-tab. You can get it back by using Expose (four finger swipe up on a trackpad).

We haven't identify under what circumstances this does or doesn't happen fully. Virtual machines so far do not exhibit the behavior, so it might even be related to having a native GPU rendering, but not sure.

The latest QT does not fix this.

It's possible we need to modify how projects work on initial load.

psifertex avatar Nov 12 '25 19:11 psifertex

Fixed in 5.3.8650

D0ntPanic avatar Nov 20 '25 00:11 D0ntPanic

The fix causes issues with remote projects, so it has been reverted.

D0ntPanic avatar Dec 01 '25 23:12 D0ntPanic

When a project gets opened, currently it always recreates the entire window in order to load the project. When this is done on initial startup, it breaks the event loop on macOS 26.

It is confirmed that modifying the project opening code to reuse the existing window fixes this issue. However, there are edge cases with doing this (especially with remote projects) that will need someone familiar with the project codebase to look into.

D0ntPanic avatar Dec 02 '25 00:12 D0ntPanic