BobLd / Caly

Cross-platform pdf reader application
GNU General Public License v3.0
27 stars 4 forks source link

Bug with WindowNotificationManager creation #21

Closed BobLd closed 4 months ago

BobLd commented 5 months ago
System.NullReferenceException: Object reference not set to an instance of an object.
   at Avalonia.Rendering.Composition.Compositor.RegisterForSerialization(ICompositorSerializable) + 0x8d
   at Avalonia.Rendering.Composition.CompositionVisual.set_Visible(Boolean) + 0x59
   at Avalonia.Rendering.Composition.CompositionVisual.InitializeDefaults() + 0x18
   at Avalonia.Visual.CreateCompositionVisual(Compositor) + 0x89
   at Avalonia.Visual.AttachToCompositor(Compositor) + 0x26
   at Avalonia.Visual.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs) + 0x166
   at Avalonia.Layout.Layoutable.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs) + 0x19
   at Avalonia.Controls.Control.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs) + 0x30
   at Avalonia.Visual.SetVisualParent(Visual) + 0xeb
   at Avalonia.Visual.SetVisualParent(IList, Visual) + 0x6c
   at Avalonia.Collections.AvaloniaList`1.NotifyAdd(T, Int32) + 0x72
   at Avalonia.Controls.Primitives.VisualLayerManager.get_AdornerLayer() + 0x1ca
   at Avalonia.Controls.Notifications.WindowNotificationManager.InstallFromTopLevel(TopLevel) + 0x1ef
   at Caly.Core.Views.MainWindow.OnLoaded(RoutedEventArgs) + 0xae
   at Avalonia.Controls.Control.<>c.<.cctor>b__69_0() + 0xe9
   at Avalonia.Threading.DispatcherOperation.InvokeCore() + 0x28a
   at Avalonia.Threading.DispatcherOperation.Execute() + 0x73
   at Avalonia.Threading.Dispatcher.ExecuteJob(DispatcherOperation) + 0x5d
   at Avalonia.Threading.Dispatcher.ExecuteJobsCore(Boolean) + 0xa4
   at Avalonia.Threading.Dispatcher.Signaled() + 0x41
   at Avalonia.Win32.Win32Platform.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam) + 0x58
   at Caly!<BaseAddress>+0xe4993a
BobLd commented 4 months ago

closing as fix now