AvaloniaVSCode icon indicating copy to clipboard operation
AvaloniaVSCode copied to clipboard

fix bug

Open RealmiRoblox opened this issue 3 months ago • 2 comments

Describe the bug

I am on MacOS Tahoe Beta 4

To Reproduce

click on show preview then build then opens blank page

Avalonia for VS Code

0.0.32

Avalonia version

No response

VS Code version

No response

Relevant log output

2025-07-30 23:10:08.691 [info] Command avalonia.previewProcess, file:///Users/saarynsemanov/Desktop/ELauncher/Controls/SidebarButton.axaml
2025-07-30 23:10:08.691 [info] PreviewServer.start /Users/saarynsemanov/Desktop/ELauncher/bin/Debug/net9.0/ELauncher.dll
2025-07-30 23:10:08.692 [info] Previewer process started with args: exec,--runtimeconfig "/Users/saarynsemanov/Desktop/ELauncher/bin/Debug/net9.0/ELauncher.runtimeconfig.json",--depsfile "/Users/saarynsemanov/Desktop/ELauncher/bin/Debug/net9.0/ELauncher.deps.json" "/Users/saarynsemanov/.nuget/packages/avalonia/11.3.2/tools/netstandard2.0/designer/Avalonia.Designer.HostApp.dll",--method avalonia-remote,--transport tcp-bson://127.0.0.1:8001/,--method html,--html-url http://127.0.0.1:8000,"/Users/saarynsemanov/Desktop/ELauncher/bin/Debug/net9.0/ELauncher.dll"
2025-07-30 23:10:08.692 [info] Preview server listening on port 8001
2025-07-30 23:10:08.693 [info] Show Preview to side: file:///Users/saarynsemanov/Desktop/ELauncher/Controls/SidebarButton.axaml
2025-07-30 23:10:08.907 [info] Preview server connected on port 8001
2025-07-30 23:10:08.907 [info] Preview server connected on port 8001
2025-07-30 23:10:08.907 [info] Preview server connected on port 8001
2025-07-30 23:10:08.907 [info] Preview server connected on port 8001
2025-07-30 23:10:08.907 [info] Preview server connected on port 8001
2025-07-30 23:10:08.907 [info] Preview server connected on port 8001
2025-07-30 23:10:08.907 [info] Preview server connected on port 8001
2025-07-30 23:10:08.907 [info] Preview server connected on port 8001
2025-07-30 23:10:08.930 [info] Initializing application in design mode

2025-07-30 23:10:08.970 [info] Obtaining AppBuilder instance from ELauncher.Program

2025-07-30 23:10:09.067 [info] {"Uri":"http://127.0.0.1:8000/"}
2025-07-30 23:10:09.068 [info] {"Uri":"http://127.0.0.1:8000/"}
2025-07-30 23:10:09.068 [info] {"Uri":"http://127.0.0.1:8000/"}
2025-07-30 23:10:09.068 [info] {"Uri":"http://127.0.0.1:8000/"}
2025-07-30 23:10:09.068 [info] {"Uri":"http://127.0.0.1:8000/"}
2025-07-30 23:10:09.068 [info] {"Uri":"http://127.0.0.1:8000/"}
2025-07-30 23:10:09.068 [info] {"Uri":"http://127.0.0.1:8000/"}
2025-07-30 23:10:09.068 [info] {"Uri":"http://127.0.0.1:8000/"}
2025-07-30 23:10:09.311 [info] Sending StartDesignerSessionMessage

2025-07-30 23:10:09.313 [info] {"SessionId":"c5587f13-a127-438d-8d42-15bc98afb0c4"}
2025-07-30 23:10:09.314 [info] Start designer session message received.
2025-07-30 23:10:09.314 [info] {"SessionId":"c5587f13-a127-438d-8d42-15bc98afb0c4"}
2025-07-30 23:10:09.314 [info] {"SessionId":"c5587f13-a127-438d-8d42-15bc98afb0c4"}
2025-07-30 23:10:09.314 [info] Start designer session message received.
2025-07-30 23:10:09.314 [info] {"SessionId":"c5587f13-a127-438d-8d42-15bc98afb0c4"}
2025-07-30 23:10:09.314 [info] {"SessionId":"c5587f13-a127-438d-8d42-15bc98afb0c4"}
2025-07-30 23:10:09.314 [info] Start designer session message received.
2025-07-30 23:10:09.314 [info] {"SessionId":"c5587f13-a127-438d-8d42-15bc98afb0c4"}
2025-07-30 23:10:09.314 [info] {"SessionId":"c5587f13-a127-438d-8d42-15bc98afb0c4"}
2025-07-30 23:10:09.315 [info] Start designer session message received.
2025-07-30 23:10:09.315 [info] {"SessionId":"c5587f13-a127-438d-8d42-15bc98afb0c4"}
2025-07-30 23:10:10.552 [info] Stack overflow.

2025-07-30 23:10:10.564 [info] Repeated 58096 times:
--------------------------------
   at Avalonia.PropertyStore.ValueStore.OnInheritanceAncestorChanged(Avalonia.PropertyStore.ValueStore)
--------------------------------
   at Avalonia.PropertyStore.ValueStore.SetInheritanceParent(Avalonia.AvaloniaObject)
   at Avalonia.AvaloniaObject.set_InheritanceParent(Avalonia.AvaloniaObject)
   at Avalonia.StyledElement.Avalonia.Controls.ISetInheritanceParent.SetParent(Avalonia.AvaloniaObject)
   at Avalonia.Controls.Presenters.ContentPresenter.UpdateChild(System.Object)
   at Avalonia.Controls.Presenters.ContentPresenter.UpdateChild()

2025-07-30 23:10:10.564 [info]    at Avalonia.Controls.Presenters.ContentPresenter.ApplyTemplate()
   at Avalonia.Layout.Layoutable.MeasureCore(Avalonia.Size)
   at Avalonia.Layout.Layoutable.Measure(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureOverride(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureCore(Avalonia.Size)
   at Avalonia.Layout.Layoutable.Measure(Avalonia.Size)
   at Avalonia.Layout.LayoutHelper.MeasureChild(Avalonia.Layout.Layoutable, Avalonia.Size, Avalonia.Thickness, Avalonia.Thickness)
   at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureCore(Avalonia.Size)
   at Avalonia.Layout.Layoutable.Measure(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureOverride(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureCore(Avalonia.Size)
   at Avalonia.Layout.Layoutable.Measure(Avalonia.Size)
   at Avalonia.Layout.LayoutHelper.MeasureChild(Avalonia.Layout.Layoutable, Avalonia.Size, Avalonia.Thickness, Avalonia.Thickness)
   at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureCore(Avalonia.Size)
   at Avalonia.Layout.Layoutable.Measure(Avalonia.Size)
   at Avalonia.Layout.LayoutHelper.MeasureChild(Avalonia.Layout.Layoutable, Avalonia.Size, Avalonia.Thickness)
   at Avalonia.Controls.Decorator.MeasureOverride(Avalonia.Size)
   at Avalonia.Controls.Primitives.VisualLayerManager.MeasureOverride(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureCore(Avalonia.Size)
   at Avalonia.Layout.Layoutable.Measure(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureOverride(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureCore(Avalonia.Size)
   at Avalonia.Layout.Layoutable.Measure(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureOverride(Avalonia.Size)
   at Avalonia.Controls.Window.MeasureOverride(Avalonia.Size)
   at Avalonia.Controls.WindowBase.MeasureCore(Avalonia.Size)
   at Avalonia.Layout.Layoutable.Measure(Avalonia.Size)
   at Avalonia.Layout.LayoutManager.Measure(Avalonia.Layout.Layoutable)
   at Avalonia.Layout.LayoutManager.ExecuteInitialLayoutPass()
   at Avalonia.Controls.Window.ShowCore[[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](Avalonia.Controls.Window, Boolean)
   at Avalonia.Controls.Window.Show()
   at Avalonia.DesignerSupport.DesignWindowLoader.LoadDesignerWindow(System.String, System.String, System.String, Double)
   at Avalonia.DesignerSupport.Remote.RemoteDesignerEntryPoint+<>c.<OnTransportMessage>b__17_0(System.Object)
   at Avalonia.Threading.SendOrPostCallbackDispatcherOperation.InvokeCore()
   at Avalonia.Threading.DispatcherOperation.Execute()
   at Avalonia.Threading.Dispatcher.ExecuteJob(Avalonia.Threading.DispatcherOperation)
   at Avalonia.Threading.Dispatcher.ExecuteJobsCore(Boolean)
   at Avalonia.Threading.Dispatcher.Signaled()
   at Avalonia.Controls.Platform.ManagedDispatcherImpl.RunLoop(System.Threading.CancellationToken)
   at Avalonia.Threading.DispatcherFrame.Run(Avalonia.Threading.IControlledDispatcherImpl)
   at Avalonia.Threading.Dispatcher.PushFrame(Avalonia.Threading.DispatcherFrame)
   at Avalonia.Threading.Dispatcher.MainLoop(System.Threading.CancellationToken)
   at Avalonia.DesignerSupport.Remote.RemoteDesignerEntryPoint.Main(System.String[])
   at Avalonia.Designer.HostApp.Program.Main(System.String[])

2025-07-30 23:10:10.746 [info] Preview server closed for /Users/saarynsemanov/Desktop/ELauncher/bin/Debug/net9.0/ELauncher.dll
2025-07-30 23:10:10.746 [info] Preview server closed for /Users/saarynsemanov/Desktop/ELauncher/bin/Debug/net9.0/ELauncher.dll
2025-07-30 23:10:10.746 [info] Preview server closed for /Users/saarynsemanov/Desktop/ELauncher/bin/Debug/net9.0/ELauncher.dll
2025-07-30 23:10:10.746 [info] Preview server closed for /Users/saarynsemanov/Desktop/ELauncher/bin/Debug/net9.0/ELauncher.dll
2025-07-30 23:10:10.746 [info] Preview server closed for /Users/saarynsemanov/Desktop/ELauncher/bin/Debug/net9.0/ELauncher.dll
2025-07-30 23:10:10.746 [info] Preview server closed for /Users/saarynsemanov/Desktop/ELauncher/bin/Debug/net9.0/ELauncher.dll
2025-07-30 23:10:10.746 [info] Preview server closed for /Users/saarynsemanov/Desktop/ELauncher/bin/Debug/net9.0/ELauncher.dll
2025-07-30 23:10:10.746 [info] Preview server closed for /Users/saarynsemanov/Desktop/ELauncher/bin/Debug/net9.0/ELauncher.dll
2025-07-30 23:10:10.746 [info] Previewer process exited with code null

Additional context

Image

RealmiRoblox avatar Jul 30 '25 14:07 RealmiRoblox

2025-07-30 23:10:10.552 [info] Stack overflow.

2025-07-30 23:10:10.564 [info] Repeated 58096 times:
--------------------------------
   at Avalonia.PropertyStore.ValueStore.OnInheritanceAncestorChanged(Avalonia.PropertyStore.ValueStore)
--------------------------------
   at Avalonia.PropertyStore.ValueStore.SetInheritanceParent(Avalonia.AvaloniaObject)
   at Avalonia.AvaloniaObject.set_InheritanceParent(Avalonia.AvaloniaObject)
   at Avalonia.StyledElement.Avalonia.Controls.ISetInheritanceParent.SetParent(Avalonia.AvaloniaObject)
   at Avalonia.Controls.Presenters.ContentPresenter.UpdateChild(System.Object)
   at Avalonia.Controls.Presenters.ContentPresenter.UpdateChild()

2025-07-30 23:10:10.564 [info]    at Avalonia.Controls.Presenters.ContentPresenter.ApplyTemplate()
   at Avalonia.Layout.Layoutable.MeasureCore(Avalonia.Size)
   at Avalonia.Layout.Layoutable.Measure(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureOverride(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureCore(Avalonia.Size)
   at Avalonia.Layout.Layoutable.Measure(Avalonia.Size)
   at Avalonia.Layout.LayoutHelper.MeasureChild(Avalonia.Layout.Layoutable, Avalonia.Size, Avalonia.Thickness, Avalonia.Thickness)
   at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureCore(Avalonia.Size)
   at Avalonia.Layout.Layoutable.Measure(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureOverride(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureCore(Avalonia.Size)
   at Avalonia.Layout.Layoutable.Measure(Avalonia.Size)
   at Avalonia.Layout.LayoutHelper.MeasureChild(Avalonia.Layout.Layoutable, Avalonia.Size, Avalonia.Thickness, Avalonia.Thickness)
   at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureCore(Avalonia.Size)
   at Avalonia.Layout.Layoutable.Measure(Avalonia.Size)
   at Avalonia.Layout.LayoutHelper.MeasureChild(Avalonia.Layout.Layoutable, Avalonia.Size, Avalonia.Thickness)
   at Avalonia.Controls.Decorator.MeasureOverride(Avalonia.Size)
   at Avalonia.Controls.Primitives.VisualLayerManager.MeasureOverride(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureCore(Avalonia.Size)
   at Avalonia.Layout.Layoutable.Measure(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureOverride(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureCore(Avalonia.Size)
   at Avalonia.Layout.Layoutable.Measure(Avalonia.Size)
   at Avalonia.Layout.Layoutable.MeasureOverride(Avalonia.Size)
   at Avalonia.Controls.Window.MeasureOverride(Avalonia.Size)
   at Avalonia.Controls.WindowBase.MeasureCore(Avalonia.Size)
   at Avalonia.Layout.Layoutable.Measure(Avalonia.Size)
   at Avalonia.Layout.LayoutManager.Measure(Avalonia.Layout.Layoutable)
   at Avalonia.Layout.LayoutManager.ExecuteInitialLayoutPass()
   at Avalonia.Controls.Window.ShowCore[[System.__Canon, System.Private.

indicates a possible infinite recursion in Avalonia with your code, so it requires thorough analysis beyond the scope of this extension.

lextm avatar Aug 15 '25 10:08 lextm

I fixed that just changing IDE to Rider

RealmiRoblox avatar Aug 15 '25 10:08 RealmiRoblox