WindowsCommunityToolkit icon indicating copy to clipboard operation
WindowsCommunityToolkit copied to clipboard

DataGrid WinUI3 Crashing with ThreadPointer Exception

Open 1cue-jrupp opened this issue 3 years ago • 6 comments

Describe the bug

In a simple WinUI3 Desktop App the CommunityToolkit DataGrid Keeps crashing while scrolling or resizing the columns a few times. It feels also really lagging before crash. The unhandled Exception is:

"Ausnahmefehler bei 0x79554B97 (Microsoft.ui.xaml.dll) in CrashTest.exe: Der Stapelzeiger des Threads befand sich außerhalb des gültigen Stapelumfangs für den Thread."

Steps to Reproduce

See my example Project: https://github.com/1cue-jrupp/CrashTestToolkitDataGrid Just Run the project and scroll fast up and down in the DataGrid or resize the Columns multiple times.

Steps to reproduce the behavior:

  1. Run the Sample Project
  2. Scroll fast up and down in the DataGrid
  3. Resize the Columns multiple times

Expected behavior

DataGrid shouldn't lag like that with only 100 Rows and shouldn't crash

Environment

NuGet Package(s) (latest Versions):

  • CommunityToolkit.WinUI.UI.Controls 7.0.2
  • PropertyChanged.Fody
  • Default ProjectReunion Packages 0.5.7

Windows 10 Build Number:

  • [X] 20H2 (19042.985)

App min and target version:

  • [X] May 2020 Update (19041)

Device form factor:

  • [X] Desktop

Visual Studio

  • [X] 2019 Preview (version: 16.10.0 Preview 3.0)

1cue-jrupp avatar May 16 '21 13:05 1cue-jrupp

Hello 1cue-jrupp, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

ghost avatar May 16 '21 13:05 ghost

Thanks, @1cue-jrupp for highlighting the issue. Looping in @anawishnoff and @RBrid

Kyaa-dost avatar May 17 '21 16:05 Kyaa-dost

@1cue-jrupp can you help us a bit more by specifying the versions of the Toolkit and Reunion packages you are using? Are they all the latest?

FYI @azchohfi as well.

michael-hawker avatar May 17 '21 19:05 michael-hawker

@michael-hawker I'm currently using the following package versions:

CommunityToolkit.WinUI.UI.Controls 7.0.2 Microsoft.ProjectReunion 0.5.7 Microsoft.ProjectReunion.Foundation 0.5.7 Microsoft.ProjectReunion.WinUI 0.5.7

1cue-jrupp avatar May 18 '21 07:05 1cue-jrupp

Thanks 1cue-jrupp for patiently waiting while the team is still investigating the issue.

@anawishnoff @RBrid can we please have an update on this issue? Thanks

ghost avatar Jun 17 '21 12:06 ghost

@1cue-jrupp have you still been noticing an issue with the v1.0 release of the Windows App SDK and the latest toolkit package?

michael-hawker avatar Feb 02 '22 21:02 michael-hawker