Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stops working when Octave-app runs #182

Closed
KejPi opened this issue Mar 21, 2020 · 4 comments
Closed

Stops working when Octave-app runs #182

KejPi opened this issue Mar 21, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@KejPi
Copy link

KejPi commented Mar 21, 2020

When Octave-app runs Alt-Tab stops working - shortcut does nothing, clicking on Alt-Tab icon shows busy cursor. It resumes when Octave application is closed.
This problem is in version 3.x.x (tested latest 3.1.3 and also 3.0.5). I had to downgrade to 2.3.4 that works.

@lwouis lwouis added the bug Something isn't working label Mar 22, 2020
@lwouis
Copy link
Owner

lwouis commented Mar 22, 2020

I was able to reproduce the issue with Octave 4.4.1. I see that the AXObserverAddNotification calls fail and return kAXErrorCannotComplete. This explains why the Octave window is not shown in AltTab, but not why AltTab stops responding quickly and behaves strangely.

@lwouis
Copy link
Owner

lwouis commented Mar 24, 2020

Octave.app is pretty Frankenstein'y. You can tell it's a port and not a native mac app. In Activity Monitor, it looks like this:

image

From a technical perspective, one of these processes bundle ID "org.octave-app.Octave" and never answers the AXObserverAddNotification call. I will blacklist it for now. The other process octave-gui with bundle ID nil answers the call correctly, and we can get Octave.app's windows from it.

Looking into this issue outline a bug in AltTab's AXObserverAddNotification retry logic. I'll try to fix it. It's pretty complex as it involves multi-threading.

I'll deliver a fix that fixes this bug, but also blacklists the bogus "org.octave-app.Octave" process that we know to never respond. I also opened a ticket on Octave.app repo so they can fix their issue 👍

@lwouis lwouis closed this as completed in 246cf69 Mar 25, 2020
lwouis pushed a commit that referenced this issue Mar 25, 2020
## [3.2.1](v3.2.0...v3.2.1) (2020-03-25)

### Bug Fixes

* chrome shortcuts apps don't show up (closes [#185](#185)) ([0b35ebf](0b35ebf))
* don't hang waiting for faulty apps to reply (closes [#182](#182)) ([246cf69](246cf69))
* hidden apps windows don't show hidden icon ([6e190bf](6e190bf))
@lwouis
Copy link
Owner

lwouis commented Mar 25, 2020

I just released v3.2.1 which should fix this issue. I suggest updating to it using the built-in update button:

image

You can also download it manually here.

Let me know if that fixes your issue! 👍

@KejPi
Copy link
Author

KejPi commented Mar 25, 2020

I can confirm it works as expected now. Thank you for this great application!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants