Page 1 of 1

Unity crash being caused by a ListView ScollViewer style's GridViewHeaderRowPresenter element

Posted: 04 Dec 2020, 13:06
by blafollette
In our Unity project, we have a ListView with a style targeting type ScrollViewer. In the ScrollViewer element inside a ControlTemplate part of the style, we have a GridViewHeaderRowPresenter.

What we're seeing is that this setup works just fine in WPF, but in Unity (either editor or build) viewing the pages which use the ListView control described above, we quickly get a crash with the following description
Description:
Faulting application name: Unity.exe, version: 2019.4.9.65162, time stamp: 0x5f3b4240
Faulting module name: ucrtbase.dll, version: 10.0.18362.1110, time stamp: 0xb4cacc38
Exception code: 0xc0000409
Fault offset: 0x000000000006dace
Faulting process id: 0x6080
Faulting application start time: 0x01d6a78595d5865b
Faulting application path: D:\Unitys\2019.4.9f1\Editor\Unity.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
This happens with no more specification than:
<ScrollViewer Focusable="False" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" PanningMode="HorizontalFirst">
    <GridViewHeaderRowPresenter/>
</ScrollViewer>
If we remove <GridViewHeaderRowPresenter/> from the style declaration, the crash no longer occurs.

Any help you could give us would be greatly appreciated!

Re: Unity crash being caused by a ListView ScollViewer style's GridViewHeaderRowPresenter element

Posted: 04 Dec 2020, 14:32
by sfernandez
Could you please create a ticket in our bugtracker and attach the crash dump info so we can see where the crash is coming from?

Re: Unity crash being caused by a ListView ScollViewer style's GridViewHeaderRowPresenter element

Posted: 04 Dec 2020, 16:19
by blafollette
I've submitted a ticket. Strangely, I haven't been able to find any sort of .dmp file at all associated with the crash. I attached all the diagnostic information I could gather from the Windows Event Viewer and from attaching VS to the process with the crash occurs.

Re: Unity crash being caused by a ListView ScollViewer style's GridViewHeaderRowPresenter element

Posted: 04 Dec 2020, 17:19
by sfernandez
Thanks for the report, we'll continue there: #1853