Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i set design width 10500 by mistake .. visual studio freezed, had to kill restart #505

Open
blackholeearth opened this issue Nov 27, 2024 · 0 comments
Labels

Comments

@blackholeearth
Copy link

Describe the bug

i set design width 10000 by mistake .. visual studio freezed, cant do anything.

had to kill vs , restart it

<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d" 
       d:DesignWidth="500" 
       d:DesignHeight="25600"
        x:Class="avaNetApp_TargetDesktop.MainWindow"
        Title="avaNetApp_TargetDesktop">

		
	<StackPanel>
		<Label> Stackpanel -> label1</Label>
		<DataGrid	Name="grid1">		</DataGrid>
				
		<Button Width="300" Height="30">label1</Button>
		<Button Width="300" Height="30">label3</Button>
		<WrapPanel>
			<Label> WrapPanel -> label1</Label>
		</WrapPanel>
		<Canvas>
			<Label> canvas -> label1</Label>
		</Canvas>
	</StackPanel>



</Window>


To Reproduce

paste this code .
height to 1500
set desginwidth to 10000 or more ( 199000)

Solution:
it should time out after 5 seconds. - preview timed out - coundt preview im 5 seconds .

OR

limit previewer's max allowed preview size to 4000x4000 or whatever safe value.
so designer will not freeze visual studio forever.

AvaloniaVS plugin version

11.8

Avalonia version

11.21

Visual Studio version

visual studio 2022 - Version 17.11.5

Relevant log output

vs crashed . dont have it.

Additional context

@blackholeearth blackholeearth changed the title i set design width 10000 by mistake .. visual studio freezed, had to kill restart i set design width 10500 by mistake .. visual studio freezed, had to kill restart Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant