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

ItemsRepeater template crashes when using x:Phase, and set x:Phase > 0 #1600

Closed
hupo376787 opened this issue Nov 12, 2019 · 4 comments
Closed
Assignees
Labels
area-ItemsRepeater bug Something isn't working needs-assignee-attention Assignee needs to follow-up or investigate this issue team-Controls Issue for the Controls team

Comments

@hupo376787
Copy link

Describe the bug
I used x:Phase in ItemsRepeater data template. When set x:Phase = 0, app runs well.
But when set x:Phase = 1, then the app crashes every time staring, and throws exception Access violation.

Steps to reproduce the bug

Go to MovieTemplate, change Image's phase to 1
<Image x:Phase = "1"/>
Run app.

Expected behavior
App runs well and show the normal home page.

Version Info

Win: 18362.418

NuGet package version:

Microsoft.UI.Xaml: 2.2.190917002

Additional context
Here is a small repo, and special thanks to @XamlBrewer's repo.

@msft-github-bot msft-github-bot added the needs-triage Issue needs to be triaged by the area owners label Nov 12, 2019
@jevansaks jevansaks added area-ItemsRepeater bug Something isn't working team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Nov 12, 2019
@jevansaks jevansaks added the needs-assignee-attention Assignee needs to follow-up or investigate this issue label Nov 12, 2019
@ranjeshj
Copy link
Contributor

If you have both phase 0 and phase 1 in the template does it work ?

@ranjeshj
Copy link
Contributor

This seems to be the same issue as
https://github.com/dotnet/coreclr/issues/22324

A possible workaround is to enable compilation for .net native. In project properties, go to Build section and check the "Compile with .Net Native tool chain"

@hupo376787
Copy link
Author

If set phase both 0 and 1, it also crashes.

And thanks for the workaround, it works : )

@ranjeshj
Copy link
Contributor

I've created a new .net core bug to follow up https://github.com/dotnet/coreclr/issues/27860 since the old one was closed. Resolving this bug as closed since this is not a bug in Microsoft.ui.xaml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-ItemsRepeater bug Something isn't working needs-assignee-attention Assignee needs to follow-up or investigate this issue team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

4 participants