-
Notifications
You must be signed in to change notification settings - Fork 74
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
StaggeredLayout crashes on ARM64 build #542
Comments
Just updated the original post to say that the sample app crashes if you go to StaggeredLayout page from ARM64 device. Here's the log message from Event Viewer
|
@michael-hawker any ideas here? |
@Arlodotexe I think the only change here has been #371 and the update of the underlying WindowsAppSDK. PowerToys was seeing this as well: microsoft/PowerToys#35139 - reverting back to 8.0 - though they said they also saw it on x64. (The UWP sample app from the store is running for me though on my x64 box.) I don't have immediate access to an ARM64 device though for testing. It's odd that it'd be architecture specific here. @euju-ms can you try the latest 8.2-preview on NuGet we have and see if that changes anything? For the sample gallery, are you referring to the one directly from the store or did you build it locally? As the store build is UWP, which would indicate it's across framework and maybe something in our code then. Otherwise, based on the error message pointing out arrays, and only one main code change happening, I would wonder if it has something to do with the change to this logic here from #371: Windows/components/Primitives/src/StaggeredLayout/StaggeredLayout.cs Lines 161 to 181 in e3cd8ec
And it's downstream effect here: Windows/components/Primitives/src/StaggeredLayout/StaggeredLayout.cs Lines 217 to 281 in e3cd8ec
But in the default case, as far as I can tell, this should behave the same between 8.0 and 8.1... @Poker-sang you wouldn't happen to have an ARM64 device would you and able to assist in debugging this issue? I was able to test on my x64 machine and see that things work fine for both UWP and Uno WASM here, though hitting a different AOT related issue on main now for testing WinUI 3 (with setting ItemsSource), so I'm trying to resolve that first to continue testing. See #517, CommunityToolkit/Tooling-Windows-Submodule#213, #516. |
Updating to CSWinRT 2.1.6 allows me to run the StaggeredLayout sample on my x64 machine again, submitting a PR for that to the Tooling repo: CommunityToolkit/Tooling-Windows-Submodule#232 |
sorry i don't have an arm64 machine🤕 |
Describe the bug
The
StaggeredLayout
from the new namespaceCommunityToolkit.WinUI.Controls.Primitives
crashes on ARM64 build when used in an ItemsView with the following StackTace:Note that the sample app also crashes if you go to the StaggeredLayout page (IF you are on ARM64 device).
Regression
No response
Reproducible in sample app?
Steps to reproduce
Expected behavior
Expected to see three items show up instead of crashing.
Screenshots
Following three blue squares should show when it works; but using the newest StaggeredLayout crashes the app immediately.
Windows Build Number
Other Windows Build number
Windows 11 24H2 (Build 26100.1742)
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
Version 17.11.3
Device form factor
Desktop
Nuget packages
Additional context
I set
WindowsSdkPackageVersion
of10.0.22621.45
for WinAppSdk 1.6 to work (but I verified that the issue persists without this in WinAppSdk 1.5.240802000).I have also verified that the StaggeredLayout from the old package
CommunityToolkit.WinUI.UI.Controls
version7.1.2
works.Help us help you
No.
The text was updated successfully, but these errors were encountered: