-
Notifications
You must be signed in to change notification settings - Fork 107
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
Null Reference Exception in ABI.Microsoft.UI.Xaml.Data.ICustomProperty #840
Comments
Hi @angelazhangmsft and @Scottj1s Can you give an update on this issue? For me with WinUI 3 this is a blocker. The app crashes randomly when PropertyChanged events occur. We can not get through a 10 minute demo of our app without this crash occurring. Any guidance or tips how to find a workaround? |
BTW this is tracked at WinUI as microsoft/microsoft-ui-xaml#4926 |
Thanks @JanRajnoha and @Marv51 - we can repro this issue and are currently investigating |
@JanRajnoha can you provide more repro steps? I tried both slns in your repo, with multiple combinations of build config and startup project. The farthest I got with the CloudCash.Package was a crash at launch: |
@JanRajnoha - never mind, it looks like @manodasanW has found workable repro steps:
|
Hi @angelazhangmsft, this bug makes development process of our app for client much slower, and it is becoming critical to fulfill release plan. Could you please provide any release date for this bug fix? |
@JanRajnoha I am actively investigating this issue. Since I didn't have a root cause before the deadline for this milestone / release, it had to be moved to the next. This issue is being a bit tricky to root cause given the number of custom properties being created and I hadn't been able to create a much smaller isolated repro that hits the issue so that I can build with the test projections from our repo. But I have been able to reduce the pages involved in your repo app while still hitting the issue and I am hoping I can use that to root cause it. |
@manodasanW thank you for your answer. It is weird feel, when you just see your bug report moving from milestone to milestone without any proper explaining, what is happening. I believe, it is hard to understand core of the bug and given repo by me is not simple app :) So thank you for your explaining, what happened. |
@manodasanW According to newer issue, you have problem with packages, but preview package of community toolkit is working fine with Reunion 0.8.0 preview, on my PCs of course, but i have many different stations, with different configurations, OS versions,... :/ Sometimes could app throw another exception related to resources, because app is using resources for localization, but I haven't posted it yet, cause I can't find something useful for you, but other exceptions shouldn't be there. |
@JanRajnoha no worries, I was already able to get unblocked with the steps I had given you in the other issue. Also to note there has been progress on this issue. The fix we have for #842 does seem to resolve the issue in your repro. But we are working through some test regressions from that fix and hope to have it checked in soon. |
@manodasanW this is great news, I hope it will work fine now and dev process could work on 100%. Also thank you for inform about current status. |
@Scottj1s Hi Scott, I saw community call and thank you for your information about this bug. |
@JanRajnoha this bug is still being investigated - I believe the bugfix mentioned during the community call was #842. |
@JanRajnoha Thanks for your patience with this issue. With the help of the WinUI and .NET team, we have been able to root cause the crash and identify an issue in the .NET runtime related to when WinUI gets notified by the .NET runtime of RCWs being garbage collected. PR here: dotnet/runtime#58412 |
@manodasanW hi, you can't imagine, how i am happy i could work again :D thank you for your work and i hope, it will be okay. Can't wait for update. thank you and take care. |
Looks like the .NET 5 PR for servicing was merged. Based on the PR, it is scheduled to be in the .NET runtime 5.0.11 update. |
Describe the bug
First think, I'm not sure, it should be here, but I don't know about better place.
In my app I get Null Reference exception, when I'm trying to Notify Property Change. Null exception but throw after some time, with no specific time or user flow through app, it is random. Problem is probably in function Do_Abi_GetValue_2, but i'm not sure. Here is stack trace of exception:

Exception has no other useful information (I think), no keys or values related to exception. I tried to find, what was null, but without success.
Steps to reproduce the bug
Steps to reproduce the behavior:
Repo link - This is copy of real repo, but with changed DB info
Expected behavior
No exception, property changed notification should work okay.
Version Info
Windows 10 Insider, tested on multiple versions including 21364.1
NuGet package version:
[WinUI 3 - Project Reunion 0.5: 0.5.6]
Additional context
The text was updated successfully, but these errors were encountered: