View Revisions: Issue #1853

Summary 0001853: Unity crash being caused by a ListView ScollViewer style's GridViewHeaderRowPresenter element
Revision 2020-12-04 16:13 by jsantos
Description 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:

[Code]
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
[/Code]

This happens with no more specification than:

[Code]
<ScrollViewer Focusable="False" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" PanningMode="HorizontalFirst">
    <GridViewHeaderRowPresenter/>
</ScrollViewer>
[/Code]

If we remove <GridViewHeaderRowPresenter/> from the style declaration, the crash no longer occurs.

NOTE: I haven't been able to find any .dmp file associated with the crash. Attached are the Windows Event Viewer log of the error, and the player.log from the compiled Unity build of the project from when the app crashed with this error.

I have also attached a copy of the callstack from attaching VS after a crash, and the final exit point source as given from the pdb for ucrtbase.dll
Revision 2020-12-04 16:12 by blafollette
Description 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:

[Code]
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
[/Code]

This happens with no more specification than:

[Code]
<ScrollViewer Focusable="False" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" PanningMode="HorizontalFirst">
    <GridViewHeaderRowPresenter/>
</ScrollViewer>
[/Code]

If we remove <GridViewHeaderRowPresenter/> from the style declaration, the crash no longer occurs.

NOTE: I haven't been able to find any .dmp file associated with the crash. Attached are the Windows Event Viewer log of the error, and the player.log from the compiled Unity build of the project from when the app crashed with this error.

I have also attached a copy of the callstack from attaching VS after a crash, and the final exit point source as given from the pdb for ucrtbase.dll