Bug 34329 - DocSync is crashing on startup caused by BufferOverflow
Summary: DocSync is crashing on startup caused by BufferOverflow
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: General ()
Version: 4.0.0 (C6)
Hardware: PC Windows
: Highest blocker
Target Milestone: 4.0.0 (C6)
Assignee: mag@xamarin.com
URL:
Depends on:
Blocks:
 
Reported: 2015-09-28 06:37 UTC by John Hardman
Modified: 2015-12-23 09:33 UTC (History)
9 users (show)

Tags: DocSync VisualStudio VS2013
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description John Hardman 2015-09-28 06:37:15 UTC
When opening a Xamarin.Forms solution in VS2013, DocSync is crashing.
The details from Windows Eventvwr are as follows:

Faulting application name: DocSync.exe, version: 1.0.0.0, time stamp: 0x55fadcb7
Faulting module name: KERNELBASE.dll, version: 6.3.9600.17415, time stamp: 0x54504ade
Exception code: 0xe0434352
Fault offset: 0x00014598
Faulting process ID: 0x3628
Faulting application start time: 0x01d0f9d8ffe4c232
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Xamarin\Xamarin\3.11.1443.0\DocSync.exe
Faulting module path: C:\Windows\SYSTEM32\KERNELBASE.dll
Report ID: 3dbc3877-65cc-11e5-84f6-240a6411040e
Faulting package full name: 
Faulting package-relative application ID: 

I am running VS2013 Professional, with Update 4, on a 64 bit Windows 8.1 machine.
Comment 1 John Hardman 2015-09-28 06:47:35 UTC
And here's the stack trace:

Application: DocSync.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ApplicationException
Stack:
   at Xamarin.VisualStudio.iOS.DocSync.Model.DocumentationExtractor.Decompress(System.String, System.String, System.String)
   at Xamarin.VisualStudio.iOS.DocSync.Model.DocumentationExtractor.Extract(System.String, System.String)
   at Xamarin.VisualStudio.iOS.DocSync.ViewModels.DocumentationProgressViewModel.ExtractDocumentation()
   at Xamarin.VisualStudio.iOS.DocSync.ViewModels.DocumentationProgressViewModel.CheckDocumentation()
   at Xamarin.VisualStudio.iOS.DocSync.ViewModels.DocumentationProgressViewModel..ctor(Xamarin.VisualStudio.iOS.DocSync.Model.IDocumentationDownloader, Xamarin.VisualStudio.iOS.DocSync.Model.IDocumentationExtractor, Xamarin.VisualStudio.iOS.DocSync.Model.IDocumentationManager, Xamarin.VisualStudio.iOS.DocSync.Model.DocumentationConfiguration)
   at Xamarin.VisualStudio.iOS.DocSync.DocumentationProgress.SetDataContext()
   at Xamarin.VisualStudio.iOS.DocSync.DocumentationProgress..ctor()
   at Xamarin.VisualStudio.iOS.DocSync.App.OnStartup(System.Windows.StartupEventArgs)
   at System.Windows.Application.<.ctor>b__1(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   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.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
   at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
   at System.Windows.Threading.Dispatcher.Run()
   at System.Windows.Application.RunDispatcher(System.Object)
   at System.Windows.Application.RunInternal(System.Windows.Window)
   at System.Windows.Application.Run(System.Windows.Window)
   at Xamarin.VisualStudio.iOS.DocSync.App.Main()
Comment 7 Saurabh 2015-10-08 01:35:33 UTC
I have checked this Issue at my end with latest C6 builds. After opening forms project in VS 2015, Project gets load successfully. However, not seeing any DocSync Issue

Xamarin Diagnostics: https://gist.github.com/saurabh360/9b06f622255b441ea5c0
VS Trace Log: https://gist.github.com/saurabh360/05014a18380888c3aefe

Microsoft Visual Studio Enterprise 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.00081

Installed Version: Enterprise

Architecture and Modeling Tools   00322-80000-00000-AA089
Microsoft Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

Visual Basic 2015   00322-80000-00000-AA089
Microsoft Visual Basic 2015

Visual C# 2015   00322-80000-00000-AA089
Microsoft Visual C# 2015

Visual C++ 2015   00322-80000-00000-AA089
Microsoft Visual C++ 2015

Windows Phone SDK 8.0 - ENU   00322-80000-00000-AA089
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools   14.0.20626.0
ASP.NET and Web Tools

ASP.NET Web Frameworks and Tools 2013   5.2.30624.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.5
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GenerateUnitTest   1.0
Generates unit test code for methods in classes under test.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft Code Digger   0.9
Microsoft Code Digger

Microsoft.Pex.VisualStudio   1.0
Pex

NuGet Package Manager   3.2.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

Python Tools for Visual Studio   2.2.30615.01
Python Tools for Visual Studio provides IntelliSense, projects, templates, Interactive windows, and other support for Python developers.

Python Tools for Visual Studio - Django Integration   2.2.30615.01
Provides templates and integration for the Django web framework.

Python Tools for Visual Studio - Profiling Support   2.2.30615.01
Profiling support for Python projects.

SQL Server Data Tools   14.0.50616.0
Microsoft SQL Server Data Tools

Visual Studio Tools for Universal Windows Apps   14.0.23309.00 d14oob
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   4.0.0.1571 (22caadd)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   6.0.0.11 (f94dc5b)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   9.2.0.85 (7bcf0da)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS   9.2.0.85 on build host