Share via

Error: null_class_ptr_read_c0000005_windows.ui.xaml.dll!ccontentroot::getvisualidentifier

Henrik Barna 51 Reputation points
2021-11-11T02:49:00.587+00:00

Hello,

I have an UWP app available on PC and desktop. Recently, I have updated the app and realized there are daily hundreds of thousands crashes on Xbox can be found in Partner Center Health report. I am using AppCenter and it doesn't report any problem. After hours I could learn that the problem could be in the background process which is not supported by the AppCenter.

I have downloaded the minidumb and opened with Visual Studio where I could find the following information:
Process name: backgroundTaskHost.exe
Exception code: 0xC0000005
Exception information: The thread tried to read from or write to a virtual address for which it does not have the appropriate access.

I can not debug with mixed because I get the following error:
... The matching version of mrt100.dll could not be found on the Microsoft symbol server...

All I did in this recent update is the following:

  • Updates Microsoft.UI to ver 2.7
  • Changed IBackgroundTask to XamlRenderingBackgroundTask (Xbox not using any methods requiring XamlRendering, just the PC version)

I know this is not too much information, all I would like to ask to give me some tips to start figuring out what could cause the crash.

Thank you so much in advance.

Henrik

Developer technologies | Universal Windows Platform (UWP)

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.