Skip to content

DataGrid crash in Sample App #4475

@michael-hawker

Description

@michael-hawker

Describe the bug

There's been a few reports on our app reviews for the sample app that the DataGrid sample is crashing immediately when navigated to. I haven't been able to reproduce on my Win 10 or Win 11 machine.

I have seen a couple of stack traces from Partner Center that look like this:

0 SharedLibrary.dll System::DateTimeParse.Parse 0x00000000000000D5
1 SharedLibrary.dll System::DateTimeOffset.Parse 0x0000000000000061
2 Microsoft.Toolkit.Uwp.SampleApp, Version=7.0.0.0, Culture=neutr Microsoft::Toolkit::Uwp::SampleApp::Data::DataGridDataSource::_GetDataAsync_d__4.MoveNext 0x000000000000032B

Wonder if there's a regional setting thing with the data from the DataGrid and the calendar column or something that may be causing an issue?

@XAML-Knight want to investigate?

Regression

No response

Reproducible in sample app?

  • This bug can be reproduced in the sample app.

Steps to reproduce

1. Open Sample app
2. Navigate to DataGrid example
3. Crash...

Not sure if specific regional setting change is involved, date parse would seem to indicate such? Reports were from US, Australia, and UK.

Expected behavior

Not crash.

Screenshots

No response

Windows Build Number

  • Windows 10 1809 (Build 17763)
  • Windows 10 1903 (Build 18362)
  • Windows 10 1909 (Build 18363)
  • Windows 10 2004 (Build 19041)
  • Windows 10 20H2 (Build 19042)
  • Windows 10 21H1 (Build 19043)
  • Windows 11 21H2 (Build 22000)
  • Other (specify)

Other Windows Build number

No response

App minimum and target SDK version

  • Windows 10, version 1809 (Build 17763)
  • Windows 10, version 1903 (Build 18362)
  • Windows 10, version 1909 (Build 18363)
  • Windows 10, version 2004 (Build 19041)
  • Other (specify)

Other SDK version

No response

Visual Studio Version

No response

Visual Studio Build Number

No response

Device form factor

Desktop

Nuget packages

No response

Additional context

No response

Help us help you

Yes, but only if others can assist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Completed 🔥DataGrid 🔠Issues on DataGrid controlWinUI 💠Related to WinUI 3 Version or when paired with External can mean requires fix in WinUI 2/3.bug 🐛An unexpected issue that highlights incorrect behaviorsample app 🖼

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions