Closed gdosborne closed 9 years ago
There is not enough information available to investigate this issue. Some helpful information to provide:
VS 2013 Code Maid 0.8.1 C# Was working with previous version Happens every time with all files
[CodeMaid Handled Exception 04:03:56 PM] Unable to build code model for 'C:\Users\Greg\Source\Workspaces\Domaination\OSControls\OSControls\OSControls\AnalogClockView.cs': System.AggregateException: One or more errors occurred. ---> System.Runtime.InteropServices.COMException: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
at EnvDTE.TextPoint.get_Line()
at SteveCadwallader.CodeMaid.Model.CodeItems.CodeItemUsingStatement.RefreshCachedPositionAndName()
at SteveCadwallader.CodeMaid.Model.CodeItems.FactoryCodeItems.CreateCodeItemElement(CodeElement codeElement)
at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement)
at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>cDisplayClass8_0.2.<PartitionerForEachWorker>b__29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object ) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner
1 source, ParallelOptions parallelOptions, Action1 simpleBody, Action
2 bodyWithState, Action3 bodyWithStateAndIndex, Func
4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func
1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable
1 source, ParallelOptions parallelOptions, Action1 body, Action
2 bodyWithState, Action3 bodyWithStateAndIndex, Func
4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func
1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable
1 source, Action`1 body)
at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsFromElements(SetCodeItems codeItems, CodeElements codeElements)
at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveAllCodeItems(Document document)
at SteveCadwallader.CodeMaid.Model.CodeModelManager.BuildCodeItems(CodeModel codeModel)
---> (Inner Exception #0) System.Runtime.InteropServices.COMException (0x8002801D): Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
at EnvDTE.TextPoint.get_Line()
at SteveCadwallader.CodeMaid.Model.CodeItems.CodeItemUsingStatement.RefreshCachedPositionAndName()
at SteveCadwallader.CodeMaid.Model.CodeItems.FactoryCodeItems.CreateCodeItemElement(CodeElement codeElement)
at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement)
at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>c2.<PartitionerForEachWorker>b__29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )<--- ---> (Inner Exception #1) System.Runtime.InteropServices.COMException (0x8002801D): Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) at EnvDTE.TextPoint.get_AbsoluteCharOffset() at SteveCadwallader.CodeMaid.Model.CodeItems.CodeItemUsingStatement.RefreshCachedPositionAndName() at SteveCadwallader.CodeMaid.Model.CodeItems.FactoryCodeItems.CreateCodeItemElement(CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>c__DisplayClass8_0.<RetrieveCodeItemsFromElements>b__0(CodeElement child) at System.Threading.Tasks.Parallel.<>c__DisplayClass27
2.1.MoveNext() at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable
1.InternalPartitionEnumerable.GrabChunk_Buffered(KeyValuePair2[] destArray, Int32 requestedChunkSize, Int32& actualNumElementsGrabbed) at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable
1.InternalPartitionEnumerator.GrabNextChunk(Int32 requestedChunkSize)
at System.Collections.Concurrent.Partitioner.DynamicPartitionEnumerator_Abstract2.MoveNext() at System.Threading.Tasks.Parallel.<>c__DisplayClass27
2.1 source, ParallelOptions parallelOptions, Action
1 simpleBody, Action2 bodyWithState, Action
3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func
5 bodyWithEverything, Func1 localInit, Action
1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action
1 body, Action2 bodyWithState, Action
3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func
5 bodyWithEverything, Func1 localInit, Action
1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action
1 body)
at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsFromElements(SetCodeItems codeItems, CodeElements codeElements)
at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement)
at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>cDisplayClass8_0.2.<PartitionerForEachWorker>b__29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object ) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner
1 source, ParallelOptions parallelOptions, Action1 simpleBody, Action
2 bodyWithState, Action3 bodyWithStateAndIndex, Func
4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func
1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable
1 source, ParallelOptions parallelOptions, Action1 body, Action
2 bodyWithState, Action3 bodyWithStateAndIndex, Func
4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func
1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable
1 source, Action1 body) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsFromElements(SetCodeItems codeItems, CodeElements codeElements) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>c__DisplayClass8_0.<RetrieveCodeItemsFromElements>b__0(CodeElement child) at System.Threading.Tasks.Parallel.<>c__DisplayClass27
2.1.MoveNext() at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable
1.InternalPartitionEnumerable.GrabChunk_Buffered(KeyValuePair2[] destArray, Int32 requestedChunkSize, Int32& actualNumElementsGrabbed) at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable
1.InternalPartitionEnumerator.GrabNextChunk(Int32 requestedChunkSize)
at System.Collections.Concurrent.Partitioner.DynamicPartitionEnumerator_Abstract2.MoveNext() at System.Threading.Tasks.Parallel.<>c__DisplayClass27
2.1 source, ParallelOptions parallelOptions, Action
1 simpleBody, Action2 bodyWithState, Action
3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func
5 bodyWithEverything, Func1 localInit, Action
1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action
1 body, Action2 bodyWithState, Action
3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func
5 bodyWithEverything, Func1 localInit, Action
1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action
1 body)
at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsFromElements(SetCodeItems codeItems, CodeElements codeElements)
at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement)
at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>cDisplayClass8_0.2.<PartitionerForEachWorker>b__29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object ) ---> (Inner Exception #0) System.ArgumentNullException: Value cannot be null. Parameter name: pNativeData at System.Runtime.InteropServices.CustomMarshalers.EnumeratorToEnumVariantMarshaler.MarshalNativeToManaged(IntPtr pNativeData) at System.Collections.IEnumerator.MoveNext() at System.Linq.Enumerable.<OfTypeIterator>d__1
1.MoveNext()
at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerable.GrabChunk_Buffered(KeyValuePair
2[] destArray, Int32 requestedChunkSize, Int32& actualNumElementsGrabbed)
at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerator.GrabNextChunk(Int32 requestedChunkSize) at System.Collections.Concurrent.Partitioner.DynamicPartitionEnumerator_Abstract
2.MoveNext()
at System.Threading.Tasks.Parallel.<>cDisplayClass27`2.1.MoveNext() at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable
1.InternalPartitionEnumerable.GrabChunk_Buffered(KeyValuePair2[] destArray, Int32 requestedChunkSize, Int32& actualNumElementsGrabbed) at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable
1.InternalPartitionEnumerator.GrabNextChunk(Int32 requestedChunkSize)
at System.Collections.Concurrent.Partitioner.DynamicPartitionEnumerator_Abstract`2.MoveNext()
at System.Threading.Tasks.Parallel.<>cDisplayClass272.<PartitionerForEachWorker>b__29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object ) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner
1 source, ParallelOptions parallelOptions, Action1 simpleBody, Action
2 bodyWithState, Action3 bodyWithStateAndIndex, Func
4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func
1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable
1 source, ParallelOptions parallelOptions, Action1 body, Action
2 bodyWithState, Action3 bodyWithStateAndIndex, Func
4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func
1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable
1 source, Action1 body) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsFromElements(SetCodeItems codeItems, CodeElements codeElements) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>c__DisplayClass8_0.<RetrieveCodeItemsFromElements>b__0(CodeElement child) at System.Threading.Tasks.Parallel.<>c__DisplayClass27
2.1.MoveNext() at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable
1.InternalPartitionEnumerable.GrabChunk_Buffered(KeyValuePair2[] destArray, Int32 requestedChunkSize, Int32& actualNumElementsGrabbed) at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable
1.InternalPartitionEnumerator.GrabNextChunk(Int32 requestedChunkSize)
at System.Collections.Concurrent.Partitioner.DynamicPartitionEnumerator_Abstract2.MoveNext() at System.Threading.Tasks.Parallel.<>c__DisplayClass27
2.1 source, ParallelOptions parallelOptions, Action
1 simpleBody, Action2 bodyWithState, Action
3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func
5 bodyWithEverything, Func1 localInit, Action
1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action
1 body, Action2 bodyWithState, Action
3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func
5 bodyWithEverything, Func1 localInit, Action
1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action
1 body)
at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsFromElements(SetCodeItems codeItems, CodeElements codeElements)
at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveAllCodeItems(Document document)
at SteveCadwallader.CodeMaid.Model.CodeModelManager.BuildCodeItems(CodeModel codeModel)
---> (Inner Exception #0) System.Runtime.InteropServices.COMException (0x8002801D): Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
at EnvDTE.TextPoint.get_AbsoluteCharOffset()
at SteveCadwallader.CodeMaid.Model.CodeItems.CodeItemUsingStatement.RefreshCachedPositionAndName()
at SteveCadwallader.CodeMaid.Model.CodeItems.FactoryCodeItems.CreateCodeItemElement(CodeElement codeElement)
at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement)
at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>cDisplayClass8_0.2.<PartitionerForEachWorker>b__29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )<--- ---> (Inner Exception #2) System.Runtime.InteropServices.COMException (0x8002801D): Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) at EnvDTE.CodeElement.get_Children() at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>c__DisplayClass8_0.<RetrieveCodeItemsFromElements>b__0(CodeElement child) at System.Threading.Tasks.Parallel.<>c__DisplayClass27
2.
--------- Original Message --------- Subject: Re: [codemaid] Exception on Cleanup (#143) From: "Steve Cadwallader" notifications@github.com Date: 8/20/15 3:34 pm To: "codecadwallader/codemaid" codemaid@noreply.github.com Cc: "gdosborne" greg@gdosborne.com
There is not enough information available to investigate this issue. Some helpful information to provide:
Any additional notes, images, etc.
Reply to this email directly or view it on GitHub.
Can you provide your CodeMaid settings?
<?xml version="1.0" encoding="utf-8"?>
--------- Original Message --------- Subject: Re: [codemaid] Exception on Cleanup (#143) From: "Steve Cadwallader" notifications@github.com Date: 8/29/15 3:58 pm To: "codecadwallader/codemaid" codemaid@noreply.github.com Cc: "gdosborne" greg@gdosborne.com
Reply to this email directly or view it on GitHub.
Please try disabling the performance option "Multithread operations". It works great on some systems, but it has been known to cause issues on some other systems.
Disabling the above setting took care of the issue
Sent from my iPhone
On Sep 5, 2015, at 6:07 AM, Steve Cadwallader notifications@github.com wrote:
Please try disabling the performance option "Multithread operations". It works great on some systems, but it has been known to cause issues on some other systems.
— Reply to this email directly or view it on GitHub.
Glad to hear it, closing issue.
[CodeMaid Handled Exception 09:15:21 AM] Unable to build code model for '[somefilename]': System.AggregateException: One or more errors occurred. ---> System.ArgumentNullException: Value cannot be null. Parameter name: pNativeData at System.Runtime.InteropServices.CustomMarshalers.EnumeratorToEnumVariantMarshaler.MarshalNativeToManaged(IntPtr pNativeData) at System.Collections.IEnumerator.get_Current() at System.Linq.Enumerable.d1b 29()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>cDisplayClass0.b 1(Object )<---
1.MoveNext() at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable
1.InternalPartitionEnumerable.GrabChunk_Buffered(KeyValuePair2[] destArray, Int32 requestedChunkSize, Int32& actualNumElementsGrabbed) at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable
1.InternalPartitionEnumerator.GrabNextChunk(Int32 requestedChunkSize) at System.Collections.Concurrent.Partitioner.DynamicPartitionEnumerator_Abstract`2.MoveNext() at System.Threading.Tasks.Parallel.<>cDisplayClass272.<PartitionerForEachWorker>b__29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object ) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner
1 source, ParallelOptions parallelOptions, Action1 simpleBody, Action
2 bodyWithState, Action3 bodyWithStateAndIndex, Func
4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func
1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable
1 source, ParallelOptions parallelOptions, Action1 body, Action
2 bodyWithState, Action3 bodyWithStateAndIndex, Func
4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func
1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable
1 source, Action1 body) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsFromElements(SetCodeItems codeItems, CodeElements codeElements) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveAllCodeItems(Document document) at SteveCadwallader.CodeMaid.Model.CodeModelManager.BuildCodeItems(CodeModel codeModel) ---> (Inner Exception #0) System.ArgumentNullException: Value cannot be null. Parameter name: pNativeData at System.Runtime.InteropServices.CustomMarshalers.EnumeratorToEnumVariantMarshaler.MarshalNativeToManaged(IntPtr pNativeData) at System.Collections.IEnumerator.get_Current() at System.Linq.Enumerable.<OfTypeIterator>d__1
1.MoveNext() at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerable.GrabChunk_Buffered(KeyValuePair
2[] destArray, Int32 requestedChunkSize, Int32& actualNumElementsGrabbed) at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerator.GrabNextChunk(Int32 requestedChunkSize) at System.Collections.Concurrent.Partitioner.DynamicPartitionEnumerator_Abstract
2.MoveNext() at System.Threading.Tasks.Parallel.<>cDisplayClass27`2.