Null pointer access during startup in twinapi.appcore.dll #1779

Closed
opened 2026-01-30 22:36:17 +00:00 by claunia · 2 comments
Owner

Originally created by @mauve on GitHub (Jun 20, 2019).

Environment

Windows build number: `Microsoft Windows [Version 10.0.18917.1000]`
Windows Terminal version (if applicable): `440bee0e4abd0a778cbdff5b86f73fb34a92f3ed`

Steps to reproduce

  • Start

Expected behavior

Do not crash

Actual behavior

Exception thrown at 0x00007FF9FB23371C (twinapi.appcore.dll) in WindowsTerminal.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

Crashes with the following stack trace:

 	twinapi.appcore.dll!Microsoft::WRL::ComPtr<struct Windows::Phone::UI::Core::INavigationClient>::As<struct Windows::Internal::ApplicationModel::WindowManagement::INavigationClient_AdapterOwner>(class Microsoft::WRL::Details::ComPtrRef<class Microsoft::WRL::ComPtr<struct Windows::Internal::ApplicationModel::WindowManagement::INavigationClient_AdapterOwner> >)	Unknown
 	twinapi.appcore.dll!Windows::ApplicationModel::Core::CoreApplicationViewTitleBar::_TryGetTitleBarClientAdapter(struct Windows::Internal::ApplicationModel::WindowManagement::ITitleBarClientAdapter * *)	Unknown
 	twinapi.appcore.dll!Windows::ApplicationModel::Core::CoreApplicationViewTitleBar::add_IsVisibleChanged(struct Windows::Foundation::ITypedEventHandler<class Windows::ApplicationModel::Core::CoreApplicationViewTitleBar *,struct IInspectable *> *,struct EventRegistrationToken *)	Unknown
 	Microsoft.VisualStudio.DesignTools.UwpTap.dll!Microsoft::VisualStudio::DesignTools::UwpTap::InAppUI::InAppMenu::LoadInAppMenu(void)	Unknown
 	Microsoft.VisualStudio.DesignTools.UwpTap.dll!std::_Func_impl<<lambda>(void),std::allocator<int>,long>::_Do_call()	Unknown
 	Microsoft.VisualStudio.DesignTools.UwpTap.dll!std::_Func_impl<<lambda>(void),std::allocator<int>,void>::_Do_call()	Unknown
 	Microsoft.VisualStudio.DesignTools.UwpTap.dll!Microsoft::VisualStudio::DesignTools::UwpTap::PackagedTask<void>::operator()(void)	Unknown
 	Microsoft.VisualStudio.DesignTools.UwpTap.dll!winrt::Windows::UI::Core::impl_DispatchedHandler<<lambda>(void) >::abi_Invoke()	Unknown
 	[Inline Frame] Windows.UI.dll!Windows::UI::Core::CDispatcher::EnqueueAsyncWork::__l16::<lambda_59517943c03487243f9bea31c6c1a784>::operator()() Line 908	C++
 	Windows.UI.dll!Microsoft::WRL::Details::DelegateArgTraits<long (__cdecl Windows::System::IDispatcherQueueHandler::*)(void)>::DelegateInvokeHelper<Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,Windows::System::IDispatcherQueueHandler,Microsoft::WRL::FtmBase>,<lambda_59517943c03487243f9bea31c6c1a784>,-1>::Invoke() Line 245	C++
 	CoreMessaging.dll!Windows::System::DispatcherQueue::DeferInvokeCallback()	Unknown
 	CoreMessaging.dll!Microsoft__CoreUI__Dispatch__TimeoutHandler$CallbackThunk(class System::Delegate *)	Unknown
 	CoreMessaging.dll!Microsoft::CoreUI::Dispatch::DeferredCall::Callback_Dispatch(void)	Unknown
 	CoreMessaging.dll!Microsoft::CoreUI::Dispatch::DeferredCallDispatcher::Callback_OnDispatch()	Unknown
 	CoreMessaging.dll!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop(struct Microsoft::CoreUI::Dispatch::RunMode,bool,bool &)	Unknown
 	CoreMessaging.dll!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch(bool,struct Microsoft::CoreUI::Dispatch::UserAdapterBase__UserPriority,struct System::IntPtr &)	Unknown
 	CoreMessaging.dll!Microsoft::CoreUI::Dispatch::UserAdapter_DoWork()	Unknown
 	CoreMessaging.dll!Microsoft::CoreUI::Dispatch::UserAdapter_WindowProc()	Unknown
 	user32.dll!UserCallWinProcCheckWow()	Unknown
 	user32.dll!DispatchMessageWorker()	Unknown
>	WindowsTerminal.exe!wWinMain(HINSTANCE__ * __formal, HINSTANCE__ * __formal, wchar_t * __formal, int __formal) Line 50	C++
 	[External Code]	

Originally created by @mauve on GitHub (Jun 20, 2019). # Environment ```none Windows build number: `Microsoft Windows [Version 10.0.18917.1000]` Windows Terminal version (if applicable): `440bee0e4abd0a778cbdff5b86f73fb34a92f3ed` ``` # Steps to reproduce - Start # Expected behavior Do not crash # Actual behavior `Exception thrown at 0x00007FF9FB23371C (twinapi.appcore.dll) in WindowsTerminal.exe: 0xC0000005: Access violation reading location 0x0000000000000000.` Crashes with the following stack trace: ``` twinapi.appcore.dll!Microsoft::WRL::ComPtr<struct Windows::Phone::UI::Core::INavigationClient>::As<struct Windows::Internal::ApplicationModel::WindowManagement::INavigationClient_AdapterOwner>(class Microsoft::WRL::Details::ComPtrRef<class Microsoft::WRL::ComPtr<struct Windows::Internal::ApplicationModel::WindowManagement::INavigationClient_AdapterOwner> >) Unknown twinapi.appcore.dll!Windows::ApplicationModel::Core::CoreApplicationViewTitleBar::_TryGetTitleBarClientAdapter(struct Windows::Internal::ApplicationModel::WindowManagement::ITitleBarClientAdapter * *) Unknown twinapi.appcore.dll!Windows::ApplicationModel::Core::CoreApplicationViewTitleBar::add_IsVisibleChanged(struct Windows::Foundation::ITypedEventHandler<class Windows::ApplicationModel::Core::CoreApplicationViewTitleBar *,struct IInspectable *> *,struct EventRegistrationToken *) Unknown Microsoft.VisualStudio.DesignTools.UwpTap.dll!Microsoft::VisualStudio::DesignTools::UwpTap::InAppUI::InAppMenu::LoadInAppMenu(void) Unknown Microsoft.VisualStudio.DesignTools.UwpTap.dll!std::_Func_impl<<lambda>(void),std::allocator<int>,long>::_Do_call() Unknown Microsoft.VisualStudio.DesignTools.UwpTap.dll!std::_Func_impl<<lambda>(void),std::allocator<int>,void>::_Do_call() Unknown Microsoft.VisualStudio.DesignTools.UwpTap.dll!Microsoft::VisualStudio::DesignTools::UwpTap::PackagedTask<void>::operator()(void) Unknown Microsoft.VisualStudio.DesignTools.UwpTap.dll!winrt::Windows::UI::Core::impl_DispatchedHandler<<lambda>(void) >::abi_Invoke() Unknown [Inline Frame] Windows.UI.dll!Windows::UI::Core::CDispatcher::EnqueueAsyncWork::__l16::<lambda_59517943c03487243f9bea31c6c1a784>::operator()() Line 908 C++ Windows.UI.dll!Microsoft::WRL::Details::DelegateArgTraits<long (__cdecl Windows::System::IDispatcherQueueHandler::*)(void)>::DelegateInvokeHelper<Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,Windows::System::IDispatcherQueueHandler,Microsoft::WRL::FtmBase>,<lambda_59517943c03487243f9bea31c6c1a784>,-1>::Invoke() Line 245 C++ CoreMessaging.dll!Windows::System::DispatcherQueue::DeferInvokeCallback() Unknown CoreMessaging.dll!Microsoft__CoreUI__Dispatch__TimeoutHandler$CallbackThunk(class System::Delegate *) Unknown CoreMessaging.dll!Microsoft::CoreUI::Dispatch::DeferredCall::Callback_Dispatch(void) Unknown CoreMessaging.dll!Microsoft::CoreUI::Dispatch::DeferredCallDispatcher::Callback_OnDispatch() Unknown CoreMessaging.dll!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop(struct Microsoft::CoreUI::Dispatch::RunMode,bool,bool &) Unknown CoreMessaging.dll!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch(bool,struct Microsoft::CoreUI::Dispatch::UserAdapterBase__UserPriority,struct System::IntPtr &) Unknown CoreMessaging.dll!Microsoft::CoreUI::Dispatch::UserAdapter_DoWork() Unknown CoreMessaging.dll!Microsoft::CoreUI::Dispatch::UserAdapter_WindowProc() Unknown user32.dll!UserCallWinProcCheckWow() Unknown user32.dll!DispatchMessageWorker() Unknown > WindowsTerminal.exe!wWinMain(HINSTANCE__ * __formal, HINSTANCE__ * __formal, wchar_t * __formal, int __formal) Line 50 C++ [External Code] ```
Author
Owner

@zadjii-msft commented on GitHub (Jun 20, 2019):

This is crazy intermittent, but if you disable the "Enable UI Debugging Tools for XAML" setting in VS, it'll fix it:
image

@zadjii-msft commented on GitHub (Jun 20, 2019): This is crazy intermittent, but if you disable the "Enable UI Debugging Tools for XAML" setting in VS, it'll fix it: ![image](https://user-images.githubusercontent.com/18356694/59866529-648b5e00-9351-11e9-8f01-ff59f523858f.png)
Author
Owner

@mauve commented on GitHub (Jun 20, 2019):

thanks it works now

@mauve commented on GitHub (Jun 20, 2019): thanks it works now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1779