View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001472||NoesisGUI||C++ SDK||public||2019-05-21 11:34||2019-06-04 10:35|
|Target Version||2.3.0||Fixed in Version|
|Summary||0001472: Soft lock when measuring a list box with a content presenter sharing content with another item|
When I was filling out a list box with some dummy data I ended up getting a soft lock when measuring the visual tree. I ended up tracking it down to re-parenting a list box. The item template had a content presenter and I was sharing a common control between different items in the listbox (in my case a vector path). During measuring, the visual parent pointer is reassigned from nullptr to the new parent when measuring the first item. When it gets to the second item, it tries to reparent the parent of the content but it's already been re-parented. I've created a quick sample to reproduce this.
I have a workaround for this so it's not a big issue at all. It may be that we can't fix this, but it'd be nice to trigger an assert just to avoid having to debug this in the future. Much appreciated, cheers.
|Steps To Reproduce||1. Create a list box.|
2. Override the item template, use a content presenter.
3. Bind the list box to a source which uses a shared control.
4. Re-parent the list box to another element in the hierarchy.
5. This should soft lock during the next measure.
|Tags||No tags attached.|
|2019-05-21 11:34||steveh||New Issue|
|2019-05-21 11:34||steveh||File Added: MeasureSoftLock.zip|
|2019-05-21 13:06||sfernandez||Assigned To||=> sfernandez|
|2019-05-21 13:06||sfernandez||Status||new => assigned|
|2019-06-04 10:35||sfernandez||Target Version||=> 2.3.0|
|2019-06-04 10:35||sfernandez||Description Updated||View Revisions|
|2019-06-04 10:35||sfernandez||Steps to Reproduce Updated||View Revisions|