-
-
Notifications
You must be signed in to change notification settings - Fork 330
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
v6.70.0 sometimes crashes #3392
Comments
Sorry to hear the crash's root cause is not immediately evident. Let me know if I can help further (debug build, etc). |
Thank you @stevehoek. Are you a developer? If you are, you could run the app from source on your machine, and it would show us exactly why it crashes. |
I'm a Windows desktop dev and web dev, but I pulled down the repo and tried to build with latest Xcode. First I had to change the settings to use my own developer certificate in provisioning. Now I have a build error "No such module 'ShortcutRecorder'"... is that a third party lib? |
I am also facing the same issue. Randomly crashes very frequently silently. @lwouis Are there any steps to run the app from source? I could also try and provide some logs if needed. |
Here are the 2 steps to get going on the project. @stevehoek ShortcutRecorder is a library we use indeed. It's present after a |
Is there a series of steps you know that lead to the crash 100%? If I could reproduce it locally, I could debug it on my side as well. |
In my case there were no particular series of steps as it was random. When I pressed opt + tab to navigate it was not appearing.
I think the link is not complete. I'm getting navigated to issues tab. |
@salman-ar-sar sorry about this. I fixed the link 👍 |
Thanks, that link is helpful... however, I get this when trying to gen a local codesign cert
|
Using my own Apple dev account to build the debug, I get 4 build errors in GeneralTab.swift along the lines of
|
@stevehoek Sorry about this. New versions of openssl have broken the script I think. Same for the code. New versions of XCode broke a few lines I think. I suggest to just comment out code that throws an error. It's probably fine and unrelated to this ticket. |
From what I can tell, if there are other full-screen apps such as Microsoft Remote Desktop or Parsec Remote Desktop in my case, it happens more frequently. I can't test for too long without these windows open, but in some limited testing of 30min at a time today I could not repro the bug, but once I had some of these full screen windows open it did crash silently |
If it's possible, I suggest running AltTab from XCode, in debug run. This way, when it crashes eventually, it will stop on the line throwing the error, and you'll probably see which variables is |
Unfortunately I'm not able to build it. I commented out lines in one file then got more errors in another file. |
The app is built released with CI/CD. It's easier to keep XCode stable on my machine + the CI VM, versus the constant changes. |
I have the same issue and can reproduce all the time (started in version 6.7.0):
The only solution is to relaunch Alt-Tab and quit it (click on the icon, Quit). I can also reproduce by launching Alt-Tab and interacting with the icon (for example, selecting Settings). |
@areynaldos could you please share a video of these steps so we can see it? |
@lwouis I am experiencing the same issues as others here. If you guide me on what to look for in the log stream i can provide the necessary data from terminal. Just let me know. |
It seems that if you have AltTab set to the default How to recover the default macOS behavior: In the meantime, if you are also affected by this issue, here is a fix (solution originally pointed out by @areynaldos, adding this detailed step-by-step just in case it helps anyone else):
Hope it helps other users not get stuck without app switcher, and give you time to rollback/find the issue in the meantime. Crash report already reported 🤞😊 |
Maybe two cents from me: I am not using cmd+tab but option+tab to have both possibilities. I made a downgrade to 6.69.0 without changing any of my windows or setup and this version is working. |
I'm not managing to reproduce the crash. I've tried with 2 screens, multiple Spaces, fullscreening windows. It doesn't crash for me. Is anyone able to get consistent steps to reproduce the issue? Could anyone share a video of the crash, so I can see what the setup is like, at the time of the crash? Finally, if you're a developer, you can run the app in debug mode, then when it crash you'll get pointed at the crash site and will be able to see which variables are causing the issue. |
@lwouis :
I am attaching the recording here in Dropbox. For me, it is easy to reproduce every time: just run AltTab and click cmd+tab. What I did:
Thanks for looking into it! |
One suggestion: give us a build off of master with the changes in 6.70 reverted and if that has an issue, we know it is something to do with latest macOS and your older CI/CD pipeline. If no issue, add back some of the changes to try to see what of that PR is causing it. I notice you release debug symbols with each version... would that help you? Or could you give us a debug version with trace statements that would show up in the macOS log viewer? Does Alt-Tab have a log file? |
Here's a build of AltTab with logs near the crash site. Could you please run it from Terminal.app (e.g. by running this command: Thank you 🙇 |
Experiencing it as well. |
Got the crash right away... started the version of AltTab you linked above from Terminal, had to enable the 2 permissions for Terminal, then I clicked with my trackpad on each open window, starting with the non-full screen ones first then the 3 full-screen ones that I have open. Then I hit Command+Tab and it did nothing so I looked at Terminal and saw the logging ending with a TRAP
|
I tried again and it crashed and I had not activated any of the full-screen windows. I have 5 spaces/desktops, if that helps at all... plus the 3 full screen windows.
|
Thank you. Could you please record a crash with this build? 🙇♂️ |
Here is the crash with the build from the previous post
|
Thank you. Could you please try out this build? I tried and added a fix in this one. |
Thank you @lwouis ... this version is working much better so far! One thing I see different from 6.69 however... my fullscreen window for a remote desktop type app called Parsec is not displaying in the alt-tab carousel. There are some logs about it when I switch to it manually... but nothing in the logs when I hit Alt-Tab keystroke and the carousel is built
|
Good news! I'll release the fix shortly, so that people who update to v6.70.0 can instead update to the next version and don't get the issue 👍 The issue was the following: In v6.70.0, I added a fix for a case where fullscreen windows were not detected. That fix consisted in getting the I made the mistake of assigning the OS-given title directly. It can be |
## [6.70.1](v6.70.0...v6.70.1) (2024-06-01) ### Bug Fixes * prevent crash introduced in v6.70.0 (closes [#3392](#3392)) ([e16a3d4](e16a3d4))
Describe the bug
Upgraded to 6.7.0 today and noticed after a few minutes of alt-tab'ing between applications, including some fullscreen ones (Microsoft Remote Desktops, Parsec remote desktop) eventually alt-tab stops doing anything and I look and Alt-Tab's menu bar icon is gone. When I restart it asks to send a crash report, which I do, but then it doesn't run successfully after that.
Steps to reproduce the bug
Your environment
The text was updated successfully, but these errors were encountered: