Visual Studio 2022 crashes randomly

Pedro González-Anta 0 Reputation points
2024-09-20T08:32:03.1666667+00:00

I'm working on a c++ project with Visual Studio 2022, and randomly Visual Studio closes with no apparent reason, i tried reinstalling it and repairing it and nothing. This is the text from the last CrashDump devenv.exe.16324.txt

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,128 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 30,566 Reputation points Microsoft Vendor
    2024-09-20T13:19:58.18+00:00

    @Pedro González-Anta, thanks again for sharing the ActivityLog.xml file and more details.

    I’m thinking if the issue you got is the same/similar to this one: Visual Studio restarts by itself after a while due to error in "StatusBar/InitializeCustomAnimationAsync".

    I have checked the ActivityLog.xml file that you shared, I also see the error code 0x80004005 and related error message. I doubt that this issue is caused by some limits(maybe it’s related to extensions/amount of threads/performance).

    Following is some of my suggestions

    1. Disable installed extensions temporarily and test again.
    2. Check the performance of your machine, maybe, like what I suggested before, try on another machine.
    3. It’s possible that there are some potential issues, kindly submit a ticket on our Developer Community – Visual Studio to report this issue. Developer Community supports attaching files like dump file, you can attach the dump file and the ActivityLog.xml file you got, there, for further investigate(if you do submit a ticket, please share the ticket link here for better tracking).

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.