[GH-ISSUE #851] Issue when loading Startup window #2566

Closed
opened 2026-03-01 18:59:29 +03:00 by kerem · 0 comments
Owner

Originally created by @NickeManarin on GitHub (Apr 29, 2021).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/851

This issue prevents users from opening the Startup window. Unclear on how the Startup size got to that value.

► Title - 
	On dispacher unhandled exception - Unknown
▬ Message - 
	Initialization of 'ScreenToGif.Windows.Other.Startup' threw an exception.
○ Type - 
	System.Windows.Markup.XamlParseException
♦ [Version] Date/Hour - 
	[2.28.2] 04/28/2021 10:46:46
▲ Source - 
	PresentationFramework
▼ TargetSite - 
	Void RewrapException(System.Exception, System.Xaml.IXamlLineInfo, System.Uri)
♠ StackTrace - 
   at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at ScreenToGif.Model.ApplicationViewModel.<get_OpenLauncher>b__1_0(Object a)
   at ScreenToGif.App.App_Startup(Object sender, StartupEventArgs e)
   at System.Windows.Application.OnStartup(StartupEventArgs e)
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

▬▬ Message - 
	'1.7456E+16' is not a valid value for this property. Valid values are from Int32.MinValue through Int32.MaxValue.
○○ Type - 
	System.ArgumentException
▲▲ Source - 
	PresentationFramework
▼▼ TargetSite - 
	Void ValidateLengthForHeightWidth(Double)
♠♠ StackTrace - 
   at System.Windows.Window.ValidateLengthForHeightWidth(Double l)
   at System.Windows.Window.OnHeightChanged(Double height)
   at System.Windows.Window._OnHeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.PropertyChangedCallback.Invoke(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at ScreenToGif.Windows.Other.Startup.UpdatePositioning(Boolean onLoad)
   at ScreenToGif.Windows.Other.Startup.Startup_Initialized(Object sender, EventArgs e)
   at System.Windows.FrameworkElement.RaiseInitialized(EventPrivateKey key, EventArgs e)
   at System.Windows.FrameworkElement.TryFireInitialized()
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.InitializationGuard(XamlType xamlType, Object obj, Boolean begin)
Originally created by @NickeManarin on GitHub (Apr 29, 2021). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/851 This issue prevents users from opening the Startup window. Unclear on how the Startup size got to that value. ```stacktrace ► Title - On dispacher unhandled exception - Unknown ▬ Message - Initialization of 'ScreenToGif.Windows.Other.Startup' threw an exception. ○ Type - System.Windows.Markup.XamlParseException ♦ [Version] Date/Hour - [2.28.2] 04/28/2021 10:46:46 ▲ Source - PresentationFramework ▼ TargetSite - Void RewrapException(System.Exception, System.Xaml.IXamlLineInfo, System.Uri) ♠ StackTrace - at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) at ScreenToGif.Model.ApplicationViewModel.<get_OpenLauncher>b__1_0(Object a) at ScreenToGif.App.App_Startup(Object sender, StartupEventArgs e) at System.Windows.Application.OnStartup(StartupEventArgs e) at System.Windows.Application.<.ctor>b__1_0(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) ▬▬ Message - '1.7456E+16' is not a valid value for this property. Valid values are from Int32.MinValue through Int32.MaxValue. ○○ Type - System.ArgumentException ▲▲ Source - PresentationFramework ▼▼ TargetSite - Void ValidateLengthForHeightWidth(Double) ♠♠ StackTrace - at System.Windows.Window.ValidateLengthForHeightWidth(Double l) at System.Windows.Window.OnHeightChanged(Double height) at System.Windows.Window._OnHeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.PropertyChangedCallback.Invoke(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at ScreenToGif.Windows.Other.Startup.UpdatePositioning(Boolean onLoad) at ScreenToGif.Windows.Other.Startup.Startup_Initialized(Object sender, EventArgs e) at System.Windows.FrameworkElement.RaiseInitialized(EventPrivateKey key, EventArgs e) at System.Windows.FrameworkElement.TryFireInitialized() at MS.Internal.Xaml.Runtime.ClrObjectRuntime.InitializationGuard(XamlType xamlType, Object obj, Boolean begin) ```
kerem 2026-03-01 18:59:30 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#2566
No description provided.