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

Not responding when start the app #2359

Closed
panxnan opened this issue Feb 22, 2023 · 7 comments
Closed

Not responding when start the app #2359

panxnan opened this issue Feb 22, 2023 · 7 comments
Labels
bug Something isn't working macOS 13 macOS 13 Ventura specific issue unreproducible Need help from the author to reproduce the issue

Comments

@panxnan
Copy link

panxnan commented Feb 22, 2023

Describe the bug
I have updated AltTab to the lastest version, but AltTab is not responding when I just start the app. And the "cmd+tab" doesnt work. I tried to delete it and re-install it, it didnt help.

Is it any way I can find the logs or somethings? No error code. I really dont know how to find out what happen.

Screenshots / video
1677047385839.jpg
591677048018_.pic.jpg

Steps to reproduce the bug

  1. just open the app

Your environment

  • AltTab version: 6.53.1
  • macOS version: Ventura 13.0 Beta 22A5531f
@panxnan panxnan added the bug Something isn't working label Feb 22, 2023
@lwouis
Copy link
Owner

lwouis commented Feb 22, 2023

Hi @panxnan,

You seem to be on a macOS Ventura beta. That could explain the issue. Have you faced the issue on other machines, other versions of macOS?

In order to get some logs to debug, could you please generate a Spindump and a Sample here, in Activity Monitor?

image

Thank you

@lwouis lwouis added unreproducible Need help from the author to reproduce the issue macOS 13 macOS 13 Ventura specific issue labels Feb 22, 2023
@panxnan
Copy link
Author

panxnan commented Feb 23, 2023

Hi @lwouis ,

Thank you for getting back to me regarding the issue I reported. I appreciate your prompt response.

Since this is my only device, I found that this problem only occur on my machine. I have attached the generated Sample and Spindump files for your reference.

Please let me know if you require any additional information or if there is anything else I can do to assist with resolving this issue.

Thank you for your attention to this matter.

Best Regards.

Sample of AltTab.txt
AltTab_Spindump.txt

@lwouis
Copy link
Owner

lwouis commented Feb 23, 2023

In the sample, I see:

Dispatch Thread Soft Limit: 64 reached in 2129 of 2129 samples -- too many dispatch threads blocked in synchronous operations

There are many threads, from the axCallsQueue DispatchQueue. They all look like this:

    2129 Thread_6694   DispatchQueue_139: axCallsQueue  (concurrent)
    + 2129 start_wqthread  (in libsystem_pthread.dylib) + 15  [0x7ff8041b0c67]
    +   2129 _pthread_wqthread  (in libsystem_pthread.dylib) + 256  [0x7ff8041b1c9d]
    +     2129 _dispatch_worker_thread2  (in libdispatch.dylib) + 160  [0x7ff804045e6f]
    +       2129 _dispatch_root_queue_drain  (in libdispatch.dylib) + 343  [0x7ff8040456cb]
    +         2129 _dispatch_async_redirect_invoke  (in libdispatch.dylib) + 714  [0x7ff804037bef]
    +           2129 _dispatch_continuation_pop  (in libdispatch.dylib) + 463  [0x7ff804038560]
    +             2129 _dispatch_client_callout  (in libdispatch.dylib) + 8  [0x7ff804035aa4]
    +               2129 _dispatch_call_block_and_release  (in libdispatch.dylib) + 12  [0x7ff80403485b]
    +                 2129 thunk for @escaping @callee_guaranteed () -> ()  (in AltTab) + 25  [0x104b8b509]
    +                   2129 retryAxCallUntilTimeout_(_:_:_:_:)  (in AltTab) + 271  [0x104b6556f]
    +                     2129 partial apply for closure #1 in Application.observeEvents()  (in AltTab) + 25  [0x104b86a69]
    +                       2129 closure #1 in Application.observeEvents()  (in AltTab) + 233  [0x104b860b9]
    +                         2129 _AXObserverAddNotificationAndCheckRemote  (in HIServices) + 43  [0x7ff809a67a08]
    +                           2129 _AXObserverAddNotification  (in HIServices) + 1055  [0x7ff809a67930]
    +                             2129 _os_nospin_lock_lock_slow  (in libsystem_platform.dylib) + 107  [0x7ff8041df6e6]
    +                               2129 __ulock_wait  (in libsystem_kernel.dylib) + 10  [0x7ff804177e06]

I'm not sure what to make of it yet. Maybe @decodism, you would have an idea of could be at play here?

@decodism
Copy link
Contributor

It looks like the cause is a deadlock in AXObserverAddNotification. This is a macOS bug, restarting should do the trick but using an outdated beta version doesn't help.

@lwouis
Copy link
Owner

lwouis commented Feb 23, 2023

Thank you @decodism. I'll close this ticket since it's on a beta of macOS. If the issue persists with the official release, we'll re-open and dig deeper 👍

@lwouis lwouis closed this as completed Feb 23, 2023
@decodism
Copy link
Contributor

To be clear, this is a 6+ months old beta version.

@panxnan
Copy link
Author

panxnan commented Feb 24, 2023

Thanks. Bug fixed after I updated to the lastest os version. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macOS 13 macOS 13 Ventura specific issue unreproducible Need help from the author to reproduce the issue
Projects
None yet
Development

No branches or pull requests

3 participants