You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I click the datagrid column header to sort which display decimal/enum/int32 field, the application will crash.
It works normal when not aot mode.
It works normal when dotnet run with PublishAot=true
It works normal when column data type is string/double
To Reproduce
I create a simple demo to reproduce this bug:
create a avalonia data grid demo.
create a TestModel which has decimal/int32/enum fields.
create a DataGrid to display TestModel data.
add <PublishAot>true</PublishAot> to csproj.
publish the application with NativeAot:dotnet publish -c Release
execute the published application:.\bin\Release\net8.0\win-x64\publish\AvaloniaDataGrid.exe
// Avalonia configuration, don't remove; also used by visual designer.publicstaticAppBuilderBuildAvaloniaApp()=>AppBuilder.Configure<App>().UsePlatformDetect().WithInterFont().AfterSetup(_ =>{varx=Comparer<int>.Default;vary=Comparer<decimal>.Default;varz=Comparer<PlatformID>.Default;}).LogToTrace();}
Describe the bug
When I click the datagrid column header to sort which display decimal/enum/int32 field, the application will crash.
It works normal when not aot mode.
It works normal when dotnet run with
PublishAot=true
It works normal when column data type is
string
/double
To Reproduce
I create a simple demo to reproduce this bug:
TestModel
which has decimal/int32/enum fields.<PublishAot>true</PublishAot>
to csproj.dotnet publish -c Release
.\bin\Release\net8.0\win-x64\publish\AvaloniaDataGrid.exe
I have create a repo to reproduce that. https://github.com/dameng324/AvaloniaDataGridDemo
Expected behavior
do not crash when
Screenshots
you can simple download the code and reproduce it.
Environment
Additional context
I have tried many types. result:
The text was updated successfully, but these errors were encountered: