swdc-visualstudio icon indicating copy to clipboard operation
swdc-visualstudio copied to clipboard

Code Time Freeze and VS not responding (v2.2.3)

Open TheMenerv opened this issue 4 years ago • 30 comments

Hello,

after some second when I start VS 2019, it will be not responding.

image image image

If you need the log for check, explain me how to collect them.

TheMenerv avatar Aug 28 '20 06:08 TheMenerv

Thank you for the information. We're looking into this now and will update as soon as we can. Regards.

xavluiz avatar Aug 28 '20 16:08 xavluiz

@TheMenerv We've published 2.2.5 with cleanup around metrics handling and code cleanup to help reduce cpu and memory load. Based on the diagnostic tool running against the latest installed plugin, memory normalizes at 338MB and CPU% averages are less than 20%. There are spikes of CPU during metric handling, and we will continue to work towards reducing that load. Would you be able to try the latest version and provide CPU feedback if you see any more issues? Thank you very much for your patience.

xavluiz avatar Aug 28 '20 18:08 xavluiz

Sorry for the bad news, so it's same issue. The CPU load to 50~60% and 0% after freeze!

TheMenerv avatar Aug 28 '20 18:08 TheMenerv

Ok, we'll continue investigating what may be causing this today. Thank you for the update.

xavluiz avatar Aug 28 '20 21:08 xavluiz

Hi @TheMenerv - @xavluiz made some further performance improvements in v2.3.0. Can you give this version a try?

If you do see a lag, then it would be really helpful if you are also able to try running a sampling report and then send us the cpu profile. We will send you a Software t-shirt to thank you for your time.

Here are the steps:

  • Clone this repository
  • Open the Code Time project solution (.sln) in Visual Studio
  • Go to Analyze > Performance Profiler
  • Click Start the project
  • Open a project solution (could be any project) in the debug window and simulate use
  • Stop the profiler
  • A report will be generated
  • View the summary report
    • Check for overall system spikes in the system chart
    • View the Functions report and click the “fire” icon to find the function in the call stack doing the most work

Here is more information: https://docs.microsoft.com/en-us/visualstudio/profiling/beginners-guide-to-performance-profiling?view=vs-2019

brettmstevens7 avatar Aug 31 '20 02:08 brettmstevens7

Hi, after launching, I have a freeze and crash and it stopping automatically the report : Report20200831-0841.zip

TheMenerv avatar Aug 31 '20 06:08 TheMenerv

Thank you for the response. We'll look at this report today.

Regards.

On Sun, Aug 30, 2020 at 11:45 PM Menerv [email protected] wrote:

Hi, after launching, I have a freeze and crash and it stopping automatically the report : Report20200831-0841.zip https://github.com/swdotcom/swdc-visualstudio/files/5148723/Report20200831-0841.zip

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/swdotcom/swdc-visualstudio/issues/29#issuecomment-683594127, or unsubscribe https://github.com/notifications/unsubscribe-auth/AINL3JMNDCJI7QGKN63NUT3SDNBIRANCNFSM4QNYQ27Q .

xavluiz avatar Aug 31 '20 15:08 xavluiz

Hi,

We're now up to 2.3.2. The latest changes include:

  • document listen events will not be hindered and we'll use a 1 minute trigger to capture keystroke and timing metrics instead of an active check.
  • the global session summary averages will only be fetched per day, along with not refreshing your current keystroke information
  • cleanup in checking if onboarding is required

I'm unable to view the current vsp that was attached to the previous email. Is there a specific VisualStudio version that we should use to view the profile report?

Thank you, Xavier

On Sun, Aug 30, 2020 at 11:45 PM Menerv [email protected] wrote:

Hi, after launching, I have a freeze and crash and it stopping automatically the report : Report20200831-0841.zip https://github.com/swdotcom/swdc-visualstudio/files/5148723/Report20200831-0841.zip

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/swdotcom/swdc-visualstudio/issues/29#issuecomment-683594127, or unsubscribe https://github.com/notifications/unsubscribe-auth/AINL3JMNDCJI7QGKN63NUT3SDNBIRANCNFSM4QNYQ27Q .

xavluiz avatar Aug 31 '20 21:08 xavluiz

We've also noticed that the newer version may have issues with the data format within the .software directory. Would you mind deleting your .software folder before re-enabling the extension?

It's in your user directory as ".software".

Thank you.

On Mon, Aug 31, 2020 at 2:08 PM Xavier Luiz [email protected] wrote:

Hi,

We're now up to 2.3.2. The latest changes include:

  • document listen events will not be hindered and we'll use a 1 minute trigger to capture keystroke and timing metrics instead of an active check.
  • the global session summary averages will only be fetched per day, along with not refreshing your current keystroke information
  • cleanup in checking if onboarding is required

I'm unable to view the current vsp that was attached to the previous email. Is there a specific VisualStudio version that we should use to view the profile report?

Thank you, Xavier

On Sun, Aug 30, 2020 at 11:45 PM Menerv [email protected] wrote:

Hi, after launching, I have a freeze and crash and it stopping automatically the report : Report20200831-0841.zip https://github.com/swdotcom/swdc-visualstudio/files/5148723/Report20200831-0841.zip

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/swdotcom/swdc-visualstudio/issues/29#issuecomment-683594127, or unsubscribe https://github.com/notifications/unsubscribe-auth/AINL3JMNDCJI7QGKN63NUT3SDNBIRANCNFSM4QNYQ27Q .

xavluiz avatar Aug 31 '20 21:08 xavluiz

Hi,

sorry for the bad news: image

I've delete the folder .software before installing version 2.3.2

TheMenerv avatar Sep 01 '20 15:09 TheMenerv

If you want, I can share my screen on discord (so I speak english not very well).

TheMenerv avatar Sep 01 '20 15:09 TheMenerv

No problem, and we'll get to the bottom of this. We appreciate your patience with this. I will get back to you later today and thank you again.

xavluiz avatar Sep 01 '20 15:09 xavluiz

@TheMenerv We've published 2.3.5 with the following updates:

  • caching images that are loaded into the tree view panel to prevent rebuilding the image source
  • delay initializing document listeners
  • thread count reduction

Would you be able to record a loom video of the installation of this version when its convenient for you? Showing the CPU from the diagnostic tools when installing and loading your solution should suffice. Thank you.

xavluiz avatar Sep 02 '20 19:09 xavluiz

Hi, same issue. https://youtu.be/5Kco4K_4Cxk

Edit: I made new video with CPU load.

TheMenerv avatar Sep 02 '20 19:09 TheMenerv

https://www.youtube.com/watch?v=jPuT7sdzfiY

TheMenerv avatar Sep 02 '20 19:09 TheMenerv

Hi @TheMenerv one more favor to ask. Could you try these two builds?

https://github.com/swdotcom/swdc-visualstudio/tree/main/builds

t0 doesn't initialize snowplow (a new pipeline we're setting up), t1 does. A freeze in t1 would help us narrow down the issue.

Also, we really appreciate your time. Shoot us an email at [email protected] and we'll send you a t-shirt.

brettmstevens7 avatar Sep 03 '20 14:09 brettmstevens7

Hi,

The results of tests was here: https://youtu.be/2rOu4RoMaXE

TheMenerv avatar Sep 03 '20 16:09 TheMenerv

@TheMenerv thank you. Can you check in the Windows Event Viewer (Start -> Event viewer -> Windows Logs -> Application) and see if there are error logs for devenv.exe with timestamp that matches the crash? If you find anything, send it our way.

brettmstevens7 avatar Sep 03 '20 20:09 brettmstevens7

Hi,

image

image

image

TheMenerv avatar Sep 03 '20 22:09 TheMenerv

Hi, We've published another version, v2.3.8, and we're still unable to reproduce the issue but wonder if it has something to do with a latent API request.

v2.8.8 updates:

  • initialization API requests will not delay plugin initialization

We'd also like to provide a $50 gift certificate to help identify the area that is currently causing the IDE to hang, when it's convenient for you. Thank you.

xavluiz avatar Sep 04 '20 05:09 xavluiz

Hi, I'm sorry so I've the crash with v2.3.8

image

TheMenerv avatar Sep 07 '20 16:09 TheMenerv

Do you need more tests?

TheMenerv avatar Sep 09 '20 06:09 TheMenerv

Thank you for your help in this and we apologize for not resolving it yet. We are looking into it more today with another resource and will provide a reply as soon as we can. Regards.

xavluiz avatar Sep 09 '20 23:09 xavluiz

Hi, I receive your TShirt! Thank you very much :) 20200918_112953532_iOS

Tell me if you need more help! (I need Code Time) 😘

TheMenerv avatar Sep 18 '20 12:09 TheMenerv

Hi, It looks like we've identified 2 areas that cause the issue. We've updated logic logic to read the process command output which can freeze when using "ReadToEnd". We've also updated logic to ensure we're not performing any of these command tasks unnecessarily, along with other minor improvements. The latest version is v2.3.9.

Thank you again for all of your help and let us know if this has fixed the issue for you or if there's anything else.

Regards :)

xavluiz avatar Oct 09 '20 19:10 xavluiz

Hi, We will have one more update coming that we just found. This should be ready by the end of the day. Regards.

xavluiz avatar Oct 11 '20 18:10 xavluiz

v2.4.0 is now available with updates to handle reading the process standard output results.

xavluiz avatar Oct 12 '20 15:10 xavluiz

Hi, good new, it seems ok!!!

TheMenerv avatar Oct 16 '20 16:10 TheMenerv

That is great news, thank you for the feedback and help. We will continue to monitor and optimize it going forward.

Kind regards.

xavluiz avatar Oct 17 '20 04:10 xavluiz

The latest update will work for this request and we apologize for the long delay. We've just published v2.6.7 with support for...

community 17,18 amd64 community 14,17 x86 pro 17,18 amd64 The latest version now has "Flow Mode" automations support. The documentation opens our website with more information about this. This version has been updated in all areas (performance, massive cleanup, and websocket support to provide responsive metric updates).

The new logic is no longer in this repo. We will now look for issues in the following: https://github.com/swdotcom/visualstudio-codetime/issues

Please let us know what you think. Thank you.

xavluiz avatar Nov 04 '21 23:11 xavluiz