Microsoft::Resources::MRT_ERROR_SCENARIO_TYPE

Open
#1,384 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp

Research direction

Clone the repository, open the AppWindow C++/WinRT solution in Visual Studio 2022, and reproduce the breakpoint with the reported Windows, SDK, and x64 Debug configuration. Use the provided stack trace as the starting point, focusing on resource-manager initialization; done means the sample starts without executing the breakpoint.

Written by the indexing model from the issue text.

Description

bug

Which sample are you reporting a bug in?

AppWindow C++/WinRT

Describe the bug

A breakpoint instruction (__debugbreak() statement or a similar call) was executed in AppWindow.exe.

To Reproduce

Just clone the repository, open the solution with VS2022 and click Start Debugging.

Configuration

  • Language/architecture/flavor: C++/WinRT x64 Debug
  • Windows platform and build number: Desktop build 25324.
  • Visual Studio version: Version 17.6.0 Preview 2.0 with Windows SDK 22000

Stacktrace

KernelBase.dll!wil::details::DebugBreak(void)
MrmCoreR.dll!Microsoft::Resources::DebugBreakIfAppropriate(void)
MrmCoreR.dll!Microsoft::Resources::ReportFatalException_MachineIssue_AccessDenied(enum Microsoft::Resources::MRT_ERROR_SCENARIO_TYPE)
MrmCoreR.dll!Microsoft::Resources::HandleFatalError(long,enum Microsoft::Resources::MRT_ERROR_SCENARIO_TYPE)
MrmCoreR.dll!Microsoft::Resources::Runtime::CResourceManagerInternal::s_CreatePackageDefaultResourceManagerInternal()
MrmCoreR.dll!Windows::ApplicationModel::Resources::Core::CResourceManagerFactory::_CreateInternalResourceManagerWithStoreProfile(class Microsoft::Resources::Runtime::CResourceManagerInternal * *)
MrmCoreR.dll!Windows::ApplicationModel::Resources::Core::CResourceManagerFactory::get_Current()
MrmCoreR.dll!Windows::ApplicationModel::Resources::Core::CResourceManagerFactory::GetCurrentResourceManagerInternal()
MrmCoreR.dll!CMrtResourceManager::_GetResourceManagerForCurrentApplication()
MrmCoreR.dll!CMrtResourceManager::TryInitializeForCurrentApplication()
Windows.UI.Xaml.dll!ModernResourceProvider::TryCreateMrtResourceManagerForCurrentApplication(IMrtResourceManager * * ppResourceManager) Line 220
Windows.UI.Xaml.dll!ModernResourceProvider::TryCreate(ModernResourceProvider * * ppResourceProvider) Line 90
Windows.UI.Xaml.dll!CWindowsServices::CreateResourceProvider(void * pMrtResourceManager, IPALResourceProvider * * ppResourceProvider) Line 64
Windows.UI.Xaml.dll!ResourceManager::Create(CCoreServices * pCore, void * pMrtResourceManager, IPALResourceManager * * ppResourceManager) Line 27
Windows.UI.Xaml.dll!CJupiterControl::CreateResourceManager(IPALResourceManager * * ppResourceManager) Line 1139
[Inline Frame] Windows.UI.Xaml.dll!CCoreServices::GetResourceManager(IPALResourceManager * *) Line 9587
Windows.UI.Xaml.dll!CCoreServices::TryLoadXamlResourceHelper(IPALUri * pUri, bool * pfHasBinaryFile, IPALMemory * * ppMemory, Parser::XamlBuffer * pBuffer, IPALUri * * ppPhysicalUri) Line 2983
[Inline Frame] Windows.UI.Xaml.dll!CCoreServices::TryLoadXamlResource(IPALUri *) Line 2923
Windows.UI.Xaml.dll!CoreServices_TryGetApplicationResource(CCoreServices * pCore, const xstring_ptr & strUri, IPALMemory * * ppMemory, bool * pfIsBinaryXaml) Line 4081
Windows.UI.Xaml.dll!DirectUI::DXamlCore::ShouldTryLoadAppXaml(const xstring_ptr & appXamlLocation) Line 712
Windows.UI.Xaml.dll!DirectUI::DXamlCore::EnsureCoreApplicationInitialized() Line 668
Windows.UI.Xaml.dll!DirectUI::FrameworkView::Initialize(Windows::ApplicationModel::Core::ICoreApplicationView * pCoreApplicationView) Line 58
twinapi.appcore.dll!Windows::ApplicationModel::Core::CoreApplicationView::CreateAndInitializeFrameworkView()
twinapi.appcore.dll!Windows::ApplicationModel::Core::CoreApplicationViewAgileContainer::InitializeView()
twinapi.appcore.dll!(void)()
SHCore.dll!_WrapperThreadProc()
kernel32.dll!BaseThreadInitThunk()
ntdll.dll!RtlUserThreadStart()

Dominant language
JavaScript
Stars
9.7k
Forks
7.8k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/Windows-universal-samples

All issues in microsoft/Windows-universal-samples

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.