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

WPF Tree View Freeze / Hang #2490

Closed
pjchristmas opened this issue Jan 31, 2020 · 15 comments
Closed

WPF Tree View Freeze / Hang #2490

pjchristmas opened this issue Jan 31, 2020 · 15 comments
Assignees
Labels
Bug Product bug (most likely) netfx-servicing-approved Netfx Approved for Servicing

Comments

@pjchristmas
Copy link

pjchristmas commented Jan 31, 2020

  • .NET Framework 4.8 with latest patch that claimed to fix similar sounding bug.
  • Windows version: (winver): Win10 1803

Problem description:
Identical to issue 1962
but not fixed by update listed there.
We have a virtualized Tree View with up to 30k items. Going to the bottom and scrolling up 51 times (or using scroll wheel) will cause it to freeze. If I leave it up for an hour it will usually come back(or maybe it's just logging out and back in that kicks it out of the layout loop)
We've tried changing the virtualization settings (ScrollUnit, VirtualizationCacheLength, VirtualizationCacheLengthUnit and VirtualizationMode.Recycling) but none had any effect.

Minimal repro:
Attached app, just modified the one from previous posting and added reproducing data.
HangTest.zip

Looking for a hero @SamBent

@gomathip02 gomathip02 added the Bug Product bug (most likely) label Feb 6, 2020
@gomathip02 gomathip02 added this to the 5.0 milestone Feb 6, 2020
@SamBent
Copy link
Contributor

SamBent commented Feb 6, 2020

@pjchristmas - Just saw this, and looked at your repro just enough to confirm that it hangs, but for a different root cause than in 1962. I don't know the root cause yet.

Can you speak to the business case for fixing this in .NET servicing? How often does it happen, when did it start happening, what fraction of the data sets hit it, is there a reliable workaround - that sort of thing. (You've alluded to some of the already, I just want to fill in more blanks.)

BTW, I didn't get an email six days ago when you tagged me. Perhaps GitHub only sends email when you tag me in a new comment, not when you add the tag in an edit of an existing comment?

@pjchristmas
Copy link
Author

Business case: This is important to key products/customers at National Instruments. We will be elevating through service channels as well.
Reproducing: It happens every time (you do upward scrolling) for certain data sets. The particulars of the dataset are customer driven, and we've seen it in a number of their files, but not all. Some combination of size and shape of tree seem to matter.
Workaround: We don't have one yet. If you have ideas, we'd love to try them. Our datasets get big enough that turning off virtualization is not an option.

Thanks for looking into this @SamBent .

@BradenCalderMurphy
Copy link

BradenCalderMurphy commented Mar 5, 2020

Hi, have there been any updates with regards to this?
I'm using .NET 4.8 and still get the freezing on my WPF treeview using VirtualizationMode

@BradenCalderMurphy
Copy link

So I started using https://sourceforge.net/projects/treeviewadv/ (it's on nuget) in the meantime but actually it's great, super fast and responsive. I used it in WPF with the "WindowsFormsHost"

@SamBent SamBent added the netfx-servicing-approved Netfx Approved for Servicing label Jun 8, 2020
@SamBent
Copy link
Contributor

SamBent commented Jun 8, 2020

We've fixed a set of issues exposed by this bug (and variants supplied by @pjchristmas via MS customer support). Expect to see these fixes soon in a .NET Framework update and in .NET Core.

@ghost ghost removed this from the 5.0.0 milestone Jun 29, 2020
@ghost
Copy link

ghost commented Jun 29, 2020

@dotnet/wpf-developers, It's time to give an update to the community.

2 similar comments
@ghost
Copy link

ghost commented Jun 30, 2020

@dotnet/wpf-developers, It's time to give an update to the community.

@ghost
Copy link

ghost commented Jul 27, 2020

@dotnet/wpf-developers, It's time to give an update to the community.

@fabiant3
Copy link
Member

@SamBent - let's check in the .NET Core fixes and update this thread.

@ghost
Copy link

ghost commented Jul 28, 2020

@dotnet/wpf-developers, It's time to give an update to the community.

2 similar comments
@ghost
Copy link

ghost commented Aug 31, 2020

@dotnet/wpf-developers, It's time to give an update to the community.

@ghost
Copy link

ghost commented Sep 1, 2020

@dotnet/wpf-developers, It's time to give an update to the community.

@SamBent SamBent mentioned this issue Sep 24, 2020
@ghost
Copy link

ghost commented Sep 28, 2020

@dotnet/wpf-developers, It's time to give an update to the community.

1 similar comment
@ghost
Copy link

ghost commented Sep 29, 2020

@dotnet/wpf-developers, It's time to give an update to the community.

@SamBent
Copy link
Contributor

SamBent commented Aug 17, 2021

Fix ported to 3.1.19, 5.0.0, and 6.0.

@dotnet dotnet locked as resolved and limited conversation to collaborators Apr 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Product bug (most likely) netfx-servicing-approved Netfx Approved for Servicing
Projects
None yet
Development

No branches or pull requests

5 participants