-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Extension likely caused X seconds of unresponsiveness #1516
Comments
Thank you @Neme12 for letting us know! We are aware of this issue and are looking to resolve it in an upcoming release this month! Once we release and you update, I will follow up to make sure this isn't still happening 👍 |
@bchavez You're right, ten seconds is kind of a big deal! Did you notice this unresponsiveness? If it hung for ten seconds, it would be difficult to miss! I wonder what it counts as unresponsiveness? For example does refreshing the list of PRs (which should be happening in the background) count as unresponsiveness? If it does, I'm surprised we haven't seen it while testing. 😕 |
I'm wondering if this might be related to #1542. My guess is that it isn't, because this other issue describes a "hang". When the "unresponsiveness" message appears, I don't think Visual Studio has actually hung. |
@jcansdale , I think, the message pertains to startup delay.
Are ya'll doing testing on super fast SSDs? Maybe, to reproduce the issue, try running Visual Studio and GH I ran these tests on a Windows 10 VM with the VMDK on a Western Digital Green WD20EZRX. If you have an external mechanical drive somewhere, install a VM on that external mechanical drive and maybe you could start seeing a more pronounced delay in start time with Also, maybe some old fashioned log messages with 🌲 🔮 PINES - Fate |
Here's a relevant link: We should be doing this: |
@bchavez Most of our initialization is now done on a background thread (as recommend by the VS SDK team) and we try to stay off the Main thread as much as possible. From what I can work out we shouldn't be seeing these dialogs, but there must be something going on that I'm keen to get to the bottom of! |
@Neme12, @bchavez, Hi folks, I have a new build that I'd very much appreciate if you could try: In theory you should be able to update by simply opening the I think what's happening is that our extension gets the blame for the time it takes for VS to initialize its MEF cache (VS is a heavy user of MEF). Because the extension hooks into the Git SCC service, there is a good change it will be the first extension that wakes up and queries MEF (causing the cache to refresh after a new extension is installed). This can take around 10 seconds the first time VS is launched. This update queries MEF on a background thread before installing it's UI on the Main thread. With any luck the background loading won't be held against us! BTW, this is a different (but related) issue to:
Please could you close the Thanks! |
@jcansdale , Okay, I closed the GitHub window. Do you also want me to clear the MEF cache before installing the update too? IIRC,
|
If as I'm hoping, it is MEF related, clearing the cache should provoke the worst performance hit (VS loading all MEF assemblies that it knows about). If you could clear the MEF cache, that would be great. 😄 BTW, there's a handy extension to clear the MEF cache here: I end up using it more than I'd like. The MEF cache can be temperamental. 😉 |
@jcansdale , seems okay now. Great job! :) Only thing I'm getting now is #1550 when I have the GitHub tab open:
☁️ ☀️ **[Bassnectar - Chasi... |
@bchavez I've made some progress on the tool window issue. Could you have a look at this PR:
You can find the VSIX here: Thanks again for all the investigation you've done! |
I am really sorry I don't have more info. I typically don't have the GitHub pane open and I think it doesn't repro unless I do that. I'll try to investigate this more. |
Actually I don't know... I haven't seen this very often recently, just occasionally. |
@jcansdale Has the change in the VSIX you recommended shipped already? |
I'm sorry I don't know how else I could help |
Given all this, I think my problem is completely unrelated to @bchavez because it doesn't happen after VS load or the github extension or window load, only after solution load. |
I just got 15 seconds after cloning the repo from scratch and then opening the solution. |
Hi, |
1 year later im still experiencing this issue. What happened? It's really driving me crazy. I've disabled solution wide analysis and it somewhat helps, but its frustrating as hell. |
How consistent is this? Is there a particular repository it does this on? I've seen this banner appear pretty randomly on extensions that aren't doing much (they really shouldn't be hogging the UI thread!). It's difficult to tell when it's a Visual Studio bug and when it's a GitHub extension bug. 😢 |
It happens frequently. VS hangs whenever:
This notification only occurs are opening a solution from a cold boot as far as i can tell. |
I get this fairly often.
The text was updated successfully, but these errors were encountered: