-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
XPC Service hits 100% CPU and stops responding #43
Comments
Which version are you using? It's a known issue in 0.8.1 but should have been fixed in 0.8.2 |
I guess it's 0.8.3 base on the screenshot. Does it crash after stop responding? If so you can get a crash report from the Console.app. If not, please let me know:
Or, maybe, can you run time profiler on the extension service? |
No, only floating.
Locally
Yes, it still freezes.
It happens with every file, unfortunately. |
Sadly no, it doesn't crash, it just hangs. |
I can't reproduce the bug, so I need your help to locate it. I have prepared a modified version of the app, wherein I have disabled some features that may cause the problem. I have also added a few toggles in the host app, which you can use to turn these features back on. Please turn these toggles on one by one, and then run the ‘get suggestions’ command after making each change. Once you identify the toggle that causes the app to freeze, please let me know. Thanks. |
@cr2s367067 I can't reproduce it, would you mind installing the modified version mentioned above to help me locate the bug? It would be better if you can do a time profiling on the app. |
@cr2s367067 Thank you. Do you mean all these combinations can cause freeze? If the syntax highlighting and suggestion panel looks suspicious to you, do you my trying the following? A:
B:
|
Markdown also hangs
It works if you disable the SuggestionPanelView code block. But it doesn't work if you only disable syntax highlighting. So the problem is with the code block, but not the syntax highlighting. MacOS 13.1 (22C65) |
@timwredwards Thank you! I think we are pretty close to the real cause, I would guess it's some kind of SwiftUI bug. Here is a new version that changes the code block from LazyVGrid to VStack, and adds a new toggle to enable the code part in the code block view. Would you mind giving it a try? If it's still not working, I think I will have to make it a web view. Copilot for Xcode.app.zip |
Do you mean all these combinations can cause freeze?
macOS version: Ventrua 13.2.1 |
@cr2s367067 Oops I thought it was some Apple bug fixed in 13.2.1, but looks like it's not because I am also at 13.2.1. Please also give the following version a try! Thank you.
|
This seems to work, with all toggles activated! I'll keep testing and get back to you if I experience another hang. |
[Tears on my face] |
Hi,
I'm still trying to get this to work. Suggestions start appearing, but immediately the XPC service hits 100% CPU and completely stops responding.
This happens every single time, I have no idea why. Any ideas?
The text was updated successfully, but these errors were encountered: