Sysprogs forums › Forums › VisualGDB › System.Windows.Markup.XamlParseException
- This topic has 1 reply, 2 voices, and was last updated 3 years, 7 months ago by support.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
April 15, 2021 at 04:42 #30354davidjaquaParticipant
I just installed VisualGDB into VS 2019 community to try it out on an STM32 project.
Upon invoking New Project -> VisualGDB Project, the following unhandled exception appears.
Any ideas to resolve?
VisualGDB version: 5.5.104.3920 ------------------ System.Windows.Markup.XamlParseException ------------------ System.Windows.Markup.XamlParseException: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at System.Collections.Generic.List`1.get_Item(Int32 index) at System.Windows.Media.Imaging.BitmapDecoder.SetupFrames(BitmapDecoder decoder, ReadOnlyCollection`1 frames) at System.Windows.Media.Imaging.BitmapDecoder.Initialize(BitmapDecoder decoder) at System.Windows.Media.Imaging.BitmapDecoder..ctor(SafeMILHandle decoderHandle, BitmapDecoder decoder, Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, Boolean insertInDecoderCache, Boolean isOriginalWritable, Stream uriStream, UnmanagedMemoryStream unmanagedMemoryStream, SafeFileHandle safeFilehandle) at System.Windows.Media.Imaging.PngBitmapDecoder..ctor(SafeMILHandle decoderHandle, BitmapDecoder decoder, Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, Boolean insertInDecoderCache, Boolean originalWritable, Stream uriStream, UnmanagedMemoryStream unmanagedMemoryStream, SafeFileHandle safeFilehandle) at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache) at System.Windows.Media.Imaging.BitmapFrame.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy) at System.Windows.Media.ImageSourceConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) at System.Windows.Baml2006.TypeConverterMarkupExtension.ProvideValue(IServiceProvider serviceProvider) at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider) --- End of inner exception stack trace --- at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter) at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlObjectWriter objectWriter) at System.Windows.FrameworkTemplate.LoadOptimizedTemplateContent(DependencyObject container, IComponentConnector componentConnector, IStyleConnector styleConnector, List
1 affectedChildren, UncommonField
1 templatedNonFeChildrenField) at System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List`1 affectedChildren) at System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate) at System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container) at System.Windows.FrameworkElement.ApplyTemplate() at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Border.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Control.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.VirtualizingStackPanel.MeasureChild(IItemContainerGenerator& generator, IContainItemStorage& itemStorageProvider, IContainItemStorage& parentItemStorageProvider, Object& parentItem, Boolean& hasUniformOrAverageContainerSizeBeenSet, Double& computedUniformOrAverageContainerSize, Double& computedUniformOrAverageContainerPixelSize, Boolean& computedAreContainersUniformlySized, Boolean& hasAnyContainerSpanChanged, IList& items, Object& item, IList& children, Int32& childIndex, Boolean& visualOrderChanged, Boolean& isHorizontal, Size& childConstraint, Rect& viewport, VirtualizationCacheLength& cacheSize, VirtualizationCacheLengthUnit& cacheUnit, Int64& scrollGeneration, Boolean& foundFirstItemInViewport, Double& firstItemInViewportOffset, Size& stackPixelSize, Size& stackPixelSizeInViewport, Size& stackPixelSizeInCacheBeforeViewport, Size& stackPixelSizeInCacheAfterViewport, Size& stackLogicalSize, Size& stackLogicalSizeInViewport, Size& stackLogicalSizeInCacheBeforeViewport, Size& stackLogicalSizeInCacheAfterViewport, Boolean& mustDisableVirtualization, Boolean isBeforeFirstItem, Boolean isAfterFirstItem, Boolean isAfterLastItem, Boolean skipActualMeasure, Boolean skipGeneration, Boolean& hasBringIntoViewContainerBeenMeasured, Boolean& hasVirtualizingChildren) at System.Windows.Controls.VirtualizingStackPanel.MeasureOverrideImpl(Size constraint, Nullable1& lastPageSafeOffset, List
1& previouslyMeasuredOffsets, Nullable`1& lastPagePixelSize, Boolean remeasure) at System.Windows.Controls.VirtualizingStackPanel.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged) at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Border.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Control.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged) at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Border.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Window.MeasureOverrideHelper(Size constraint) at System.Windows.Window.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Interop.HwndSource.SetLayoutSize() at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value) at System.Windows.Interop.HwndSource.set_RootVisual(Visual value) at System.Windows.Window.SetRootVisual() at System.Windows.Window.SetRootVisualAndUpdateSTC() at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight) at System.Windows.Window.CreateSourceWindow(Boolean duringShow) at System.Windows.Window.CreateSourceWindowDuringShow() at System.Windows.Window.SafeCreateWindowDuringShow() at System.Windows.Window.ShowHelper(Object booleanBox) at System.Windows.Window.Show() at System.Windows.Window.ShowDialog() at aa2.y.e(Window a) at aa2.l1_2(Window a) at y01.h(Window a) at VisualGDB.Common_GUI.WPF.AddNewProjectItemWindow.Run(Item[] items, String initialLocation, INewProjectWindowItemCallbacks callbacks) at e3.a(VisualGDBPackageCommon a) at qc.NewProject.Execute() trace=[System.Windows.FrameworkTemplate.LoadTemplateXaml:588, System.Windows.FrameworkTemplate.LoadTemplateXaml:57, System.Windows.FrameworkTemplate.LoadOptimizedTemplateContent:276, System.Windows.FrameworkTemplate.LoadContent:26, System.Windows.StyleHelper.ApplyTemplateContent:277, System.Windows.FrameworkTemplate.ApplyTemplateContent:31, System.Windows.FrameworkElement.ApplyTemplate:93, System.Windows.FrameworkElement.MeasureCore:42, System.Windows.UIElement.Measure:401, System.Windows.Controls.Border.MeasureOverride:256, System.Windows.FrameworkElement.MeasureCore:568, System.Windows.UIElement.Measure:401, System.Windows.Controls.Control.MeasureOverride:27, System.Windows.FrameworkElement.MeasureCore:568, System.Windows.UIElement.Measure:401, System.Windows.Controls.VirtualizingStackPanel.MeasureChild:270, System.Windows.Controls.VirtualizingStackPanel.MeasureOverrideImpl:1095, System.Windows.Controls.VirtualizingStackPanel.MeasureOverride:76, System.Windows.FrameworkElement.MeasureCore:568, System.Windows.UIElement.Measure:401, MS.Internal.Helper.MeasureElementWithSingleChild:28, System.Windows.Controls.ItemsPresenter.MeasureOverride:0, System.Windows.FrameworkElement.MeasureCore:568, System.Windows.UIElement.Measure:401, MS.Internal.Helper.MeasureElementWithSingleChild:28, System.Windows.Controls.ScrollContentPresenter.MeasureOverride:81, System.Windows.FrameworkElement.MeasureCore:568, System.Windows.UIElement.Measure:401, System.Windows.Controls.Grid.MeasureCell:234, System.Windows.Controls.Grid.MeasureCellsGroup:53, System.Windows.Controls.Grid.MeasureCellsGroup:0, System.Windows.Controls.Grid.MeasureOverride:777, System.Windows.FrameworkElement.MeasureCore:568, System.Windows.UIElement.Measure:401, System.Windows.Controls.ScrollViewer.MeasureOverride:263, System.Windows.FrameworkElement.MeasureCore:568, System.Windows.UIElement.Measure:401, System.Windows.Controls.Border.MeasureOverride:256, System.Windows.FrameworkElement.MeasureCore:568, System.Windows.UIElement.Measure:401, System.Windows.Controls.Control.MeasureOverride:27, System.Windows.FrameworkElement.MeasureCore:568, System.Windows.UIElement.Measure:401, System.Windows.Controls.Grid.MeasureCell:234, System.Windows.Controls.Grid.MeasureCellsGroup:53, System.Windows.Controls.Grid.MeasureCellsGroup:0, System.Windows.Controls.Grid.MeasureOverride:777, System.Windows.FrameworkElement.MeasureCore:568, System.Windows.UIElement.Measure:401, MS.Internal.Helper.MeasureElementWithSingleChild:28, System.Windows.Controls.ContentPresenter.MeasureOverride:0, System.Windows.FrameworkElement.MeasureCore:568, System.Windows.UIElement.Measure:401, System.Windows.Documents.AdornerDecorator.MeasureOverride:0, System.Windows.FrameworkElement.MeasureCore:568, System.Windows.UIElement.Measure:401, System.Windows.Controls.Border.MeasureOverride:256, System.Windows.FrameworkElement.MeasureCore:568, System.Windows.UIElement.Measure:401, System.Windows.Window.MeasureOverrideHelper:216, System.Windows.Window.MeasureOverride:106, System.Windows.FrameworkElement.MeasureCore:57, System.Windows.UIElement.Measure:401, System.Windows.Interop.HwndSource.SetLayoutSize:179, System.Windows.Interop.HwndSource.set_RootVisualInternal:258, System.Windows.Interop.HwndSource.set_RootVisual:7, System.Windows.Window.SetRootVisual:14, System.Windows.Window.SetRootVisualAndUpdateSTC:0, System.Windows.Window.SetupInitialState:799, System.Windows.Window.CreateSourceWindow:353, System.Windows.Window.CreateSourceWindowDuringShow:0, System.Windows.Window.SafeCreateWindowDuringShow:21, System.Windows.Window.ShowHelper:53, System.Windows.Window.Show:31, System.Windows.Window.ShowDialog:492, aa2+y.e:143, aa2.l1_2:126, y01.h:37, VisualGDB.Common_GUI.WPF.AddNewProjectItemWindow.Run:19, e3.a:0, qc+NewProject.Execute:0] ------------------ Inner exception ------------------ ------------------ System.ArgumentOutOfRangeException ------------------ System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at System.Collections.Generic.List`1.get_Item(Int32 index) at System.Windows.Media.Imaging.BitmapDecoder.SetupFrames(BitmapDecoder decoder, ReadOnlyCollection`1 frames) at System.Windows.Media.Imaging.BitmapDecoder.Initialize(BitmapDecoder decoder) at System.Windows.Media.Imaging.BitmapDecoder..ctor(SafeMILHandle decoderHandle, BitmapDecoder decoder, Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, Boolean insertInDecoderCache, Boolean isOriginalWritable, Stream uriStream, UnmanagedMemoryStream unmanagedMemoryStream, SafeFileHandle safeFilehandle) at System.Windows.Media.Imaging.PngBitmapDecoder..ctor(SafeMILHandle decoderHandle, BitmapDecoder decoder, Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, Boolean insertInDecoderCache, Boolean originalWritable, Stream uriStream, UnmanagedMemoryStream unmanagedMemoryStream, SafeFileHandle safeFilehandle) at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache) at System.Windows.Media.Imaging.BitmapFrame.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy) at System.Windows.Media.ImageSourceConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) at System.Windows.Baml2006.TypeConverterMarkupExtension.ProvideValue(IServiceProvider serviceProvider) at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider) trace=[System.ThrowHelper.ThrowArgumentOutOfRangeException:46, System.Collections.Generic.List`1.get_Item:0, System.Windows.Media.Imaging.BitmapDecoder.SetupFrames:135, System.Windows.Media.Imaging.BitmapDecoder.Initialize:10, System.Windows.Media.Imaging.BitmapDecoder..ctor:164, System.Windows.Media.Imaging.PngBitmapDecoder..ctor:0, System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream:405, System.Windows.Media.Imaging.BitmapFrame.CreateFromUriOrStream:9, System.Windows.Media.ImageSourceConverter.ConvertFrom:303, System.Windows.Baml2006.TypeConverterMarkupExtension.ProvideValue:0, MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue:0]- This topic was modified 3 years, 7 months ago by support. Reason: formatting
April 15, 2021 at 09:46 #30360supportKeymasterHi,
Please try updating to VisualGDB 5.6 Beta 1. If the problem persists, please share the updated exception trace.
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.