Visual Studio 2010 crashes randomly when get latest version (AccessViolationException)
-
02 Haziran 2011 Perşembe 06:20Hi!
My problem is that, Visual Studio 2010 randomly crashes when I try to get latest version on solution. When I restart the studio it works for a few hours or half an hours, and when I click on solution and get latest version it crashes again. The window which display the progress of the task is showed, but without the animation and progress bar, and after about 10 secs the Studio crashes :( . I found in the stacktrace of the crash, that the studio can't draw that animation.
I tried another video card driver, I reinstalled the studio and the frameworks, but nothing helps :( . The computer is a fujitsu e780 with intel hd graphics, corei5, 2Gb ram, Windows XP Profession SP3. I turned off the hardware graphics acceleration in visual studio.
EDIT: I installed VS 2010 SP1, but the problem is the same :( .
It writes in the eventlog three logs. One of them is the stacktrace:
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
at System.Drawing.SafeNativeMethods+Gdip.GdipDrawImageI(System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef, Int32, Int32)
at System.Drawing.Graphics.DrawImage(System.Drawing.Image, Int32, Int32)
at Microsoft.TeamFoundation.VersionControl.Controls.AnimationCanvas.OnPaint(System.Windows.Forms.PaintEventArgs)
at System.Windows.Forms.Control.PaintWithErrorHandling(System.Windows.Forms.PaintEventArgs, Int16)
at System.Windows.Forms.Control.WmPaint(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.SafeNativeMethods.UpdateWindow(System.Runtime.InteropServices.HandleRef)
at System.Windows.Forms.Control.Update()
at System.Windows.Forms.Control.Refresh()
at Microsoft.TeamFoundation.VersionControl.Controls.AnimationCanvas.gif_FrameChanged(System.Object, System.EventArgs)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(System.Object)
at System.Threading.ExecutionContext.runTryCode(System.Object)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application.Run(System.Windows.Forms.Form)
at Microsoft.TeamFoundation.VersionControl.Controls.Progress.Run(System.Object)
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart(System.Object)
If you need more information just ask :) .
Thanks for your help in advance!
Sincerely,
Zoli- Düzenleyen zoltan.barna 02 Haziran 2011 Perşembe 15:54 edit
- Taşıyan Victor_Chen 06 Haziran 2011 Pazartesi 03:55 TFS version control crash (From:Visual Studio Editor)
Tüm Yanıtlar
-
06 Haziran 2011 Pazartesi 03:54
Hi Zoli,
Thanks for your post.
I think it is a TFS version control issue, I'm going to move it for better support.
Ziwei Chen [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

-
06 Haziran 2011 Pazartesi 06:39Moderatör
Hi Zoli,
Thanks for your post.
In order to resolve this issue, I want to confirm some information with you:
1 What’s the version of your TFS?
2 Where did you click on solution and get latest version the VS 2010 crashed? Under Source Control Explorer or under Solution Explorer?
3 Get latest version on other clients using VS 2010, will also crashes? What about on TFS Server machine?
4 Get specific version works fine?
If you have any further research of this issue, please share your experience here.
John Qiao [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

-
06 Haziran 2011 Pazartesi 09:15
Thanks for your answer. Here the answers is for your questions:
1. I'm not sure what our TFS version, I will write it here soonly. EDIT: Our TFS version is 2008
2. I clicked on solution explorer, but I think it occurs every time I try to communicate with TFS.
3. On other clients it works well, and TFS server works fine.
4. I think get specific version is also crashes studio, because when I'm just try to open source control explorer it crashes again :( , so the error occurs when I want to communicate with TFS.
When I try to open the source control the Studio crashes, and write to the eventlog this information:
.NET Runtime version 2.0.50727.3620 - Fatal Execution Engine Error (7A2E12CA) (0)
Maybe something wrong with my .NET Framework 2. Earlier I reinstalled it too.
Thanks for your help in advance!
- Düzenleyen zoltan.barna 06 Haziran 2011 Pazartesi 13:09 TFS Version
-
07 Haziran 2011 Salı 07:53Moderatör
Hi Zoli,
Thanks for your reply.
According your answers, this issue only relate to your VS 2010, the TFS Server and other client VS work normally.
I suggest you to repair your VS 2010, then try again.
John Qiao [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

-
07 Haziran 2011 Salı 08:08
Hi John!
Thanks for answer!
I reinstalled my vs 2010 a few days ago, and installed SP1, but the problem still occurs. Now I found a hotfix, that may be solve my problem. The ID of the hotfix is KB963676.
If I'm sure that it solve my problem, I will write it here.
Regards,
Zoli
-
07 Haziran 2011 Salı 09:07Moderatör
Hi Zoli,
Thanks for your reply.
Does this issue only happen on getting latest version on .NET Framework 2.0 projects in Source Control Explorer?
VS 2010 use .NET Framework 4.0, try to perform get latest version on .NET Framework 4.0 projects in Source Control Explorer, still occur this issue?
I’m looking forward your updates. After your tried that, please share your experience here.
John Qiao [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

-
07 Haziran 2011 Salı 11:25
Hi!
Unfortunately that hotfix isn't fix my problem :( .
I getting latest version clicking on solution, I never tried to get latest only a project, but I think it occurs the crash too. We use .NET FrameWork 3.5 in every projects we have.
But today I right click on a source file in the project, and click on view history, and vs 2010 crashed again :( . The error log in the eventlog is that:
First log:
.NET Runtime version 2.0.50727.3620 - Fatal Execution Engine Error (7A2E12CA) (0)
Second log:
Faulting application devenv.exe, version 10.0.40219.1, stamp 4d5f2a73, faulting module gdiplus.dll, version 5.2.6002.22509, stamp 4cc2318e, debug? 0, fault address 0x0000f47d.
Regards,
Zoli
-
08 Haziran 2011 Çarşamba 07:40
FYI: I get the same error message when building a BizTalk solution in Visual Studio 2005 on a Windows 2003 Server.
".NET Runtime version 2.0.50727.3620 - Fatal Execution Engine Error (7A2E12CA) (0)"
Visual Studio hangs forcing me to shut it down forcibly. If I load the solution perform a clean and closes Visual Studio odds are that I can build the next time I open Visual Studio but this isn't 100%. Unfortunately the above message is all that is shown in the application log. I find no other errors or warnings in conjunction with it and there is no stack trace or similar information.
Regards
Edward
-
08 Haziran 2011 Çarşamba 11:19Moderatör
Hi Zoli,
Thanks for your reply.
Please refer the solution in this KB: http://support.microsoft.com/kb/913384.
John Qiao [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

-
08 Haziran 2011 Çarşamba 13:24
Thanks for the answer!
I tried to install that hotfix, but I get this error:
The upgrade patch cannot be installed by the Windows Installer service because
the program to be upgraded may be missing, or the upgrade patch may update
a different version of the program. Verify that the program to be upgraded exists
on your computer and that you have the correct upgarde patch.I read that it because, I have the .net Framework 2.0 with sp2, not without service pack.
Could you give me some idea how to install that hotfix, or this hotfix maybe already in .net framework 2.0 sp2?
Regards,
Zoli
-
09 Haziran 2011 Perşembe 04:06Moderatör
Hi Zoli,
Thanks for your reply.
You said that other clients works well. If there a client is the same OS(XP sp3) with your computer, please check this client’s Windows Updates history, whether installed KB913384 on this client.
According that install hotfix error message, it seems that Windows Installer server can’t find the .Net Framework 2.0(sp2) on your computer or the upgrade patch is not correct. I suggest you uninstall all the .Net Framework versions which after the 2.0 version manually, such as 2.0 sp2, 3.0, 4.0… on your computer, after uninstall that, to reinstall .Net Framework 2.0, then try to install this hotfix. How to manually remove and reinstall .Net Framework 2.0, please refer to: http://support.microsoft.com/kb/908077.
If this hotfix install completely, repair your VS 2010, check the crash issue still exist or not.
John Qiao [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

- Yanıt Olarak İşaretleyen John QiaoMicrosoft Contingent Staff, Moderator 21 Haziran 2011 Salı 08:06
- Yanıt İşaretini Geri Alan John QiaoMicrosoft Contingent Staff, Moderator 30 Haziran 2011 Perşembe 03:22
-
09 Haziran 2011 Perşembe 08:54
Hi!
Thank for the answer!
I checked the other client's updates, but I didn't find this hotfix in the list of the installed updates on his computer.
First of all, we compare the updates on my computer and the other client's computer, and I will install the differences, hope that it will solve my problem.
I will write here if i finish installing hotfixes.
Best Regards,
Zoli
-
20 Haziran 2011 Pazartesi 03:09Moderatör
Hi Zoli,
Has this issue been resolved?
John Qiao [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

-
29 Haziran 2011 Çarşamba 18:33
Hi!
Sorry for my disappearing.
I'm still waiting for the IT to download the missing hotfixes on my computer. If I installed the hotfixes I will write the experiencies.
Regards,
Zoli
-
01 Ağustos 2011 Pazartesi 07:47
Hi!
I installed the latest video card driver to the laptop, and now the VS 2010 doesn't crash, but really strange thing happens. When I get latest from TFS, the window with the progress bar appears, but there is no progress bar, and nothings happen. I click somewhere and the window disappears, and do the get latest.
So it isn't perfect, but at least doesn't crash. So I still don't know what's wrong, the laptop, or the windows xp, or something else.
Regards,
Zoli
-
20 Şubat 2012 Pazartesi 09:46
Visual Studio 2010 relies heavily on WPF and a capable video card is a very important part of Visual Studio 2010 performance and stability. You might want to force software rendering or hardware rendering.
If your PC originally came with XP installed, it might have a video card that hasn't received any real driver updates in years, in that case ivesting $70 in a recent low level ATI or nVidia card can do wonders for you.
See also:
http://blogs.msdn.com/b/jgoldb/archive/2010/06/22/software-rendering-usage-in-wpf.aspx
My blog: blog.jessehouwing.nl