question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash during Drag and Drop operation error 0x80004005

See original GitHub issue

Describe the bug

When performing a Drag and Drop operation on a DataGridRow, an error is thrown at random times.

Steps to reproduce the bug

Steps to reproduce the behavior:

  1. Build the attached project and run
  2. Select test from the nav menu
  3. drag an item in the datagrid and move it around the datagrid and the desktop (in and out of the app window)
  4. Observe the MANY error generated in the debug window
  5. Eventually the debugger will break due to Reentrant code exception

Note: Adding more UI panels in the XAML to nest the DataGrid deeper in the hierarchy causes the issue to manifest faster and generates more errors in the debug window. The eventual crash seems related to manipulation of the Margin property of the DataGridRow. (Uncommenting the return at line 62 of TestView.xaml.cs seems to avoid the crash). The code that triggers the crash is being dispatched asynchronously, and is locked with an AsyncLock. I am unsure if this crash is related to the DataGrid, or is more generally relalted to Project Reuinion

App5.zip

Partial Debug Output

Unhandled exception at 0x00007FF9631FBD5C (KernelBase.dll) in App5.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x00000267752A9ED0, 0x0000000000000003).



Exception thrown at 0x00007FF96311D759 (KernelBase.dll) in App5.exe: WinRT originate error - 0x80004005 : 'Reentrancy was detected in this XAML application. Use a debugger to locate the reentrant code and, if necessary, move that code to an asynchronous event handler. Press OK to exit the application.'.


Exception thrown at 0x00007FF96311D759 (KernelBase.dll) in App5.exe: WinRT originate error - 0x80070005 : 'Access is denied.'.
onecoreuap\shell\datatransfer\lib\datapackage.cpp(6046)\windows.applicationmodel.datatransfer.dll!00007FF936706EB8: (caller: 00007FF9366F00A3) ReturnHr(241) tid(83e8) 80070005 Access is denied.
Exception thrown at 0x00007FF96311D759 (KernelBase.dll) in App5.exe: WinRT originate error - 0x80004001 : 'Not implemented'.
onecoreuap\shell\datatransfer\lib\datapackage.cpp(6058)\windows.applicationmodel.datatransfer.dll!00007FF9366F00D9: (caller: 00007FF9366F48E8) ReturnHr(242) tid(83e8) 80004001 Not implemented
Exception thrown at 0x00007FF96311D759 (KernelBase.dll) in App5.exe: WinRT originate error - 0x80070005 : 'Access is denied.'.
onecoreuap\shell\datatransfer\lib\datapackage.cpp(6046)\windows.applicationmodel.datatransfer.dll!00007FF936706EB8: (caller: 00007FF9366F00A3) ReturnHr(243) tid(59d4) 80070005 Access is denied.
Exception thrown at 0x00007FF96311D759 (KernelBase.dll) in App5.exe: WinRT originate error - 0x80004001 : 'Not implemented'.
onecoreuap\shell\datatransfer\lib\datapackage.cpp(6058)\windows.applicationmodel.datatransfer.dll!00007FF9366F00D9: (caller: 00007FF9366F48E8) ReturnHr(244) tid(59d4) 80004001 Not implemented
Exception thrown at 0x00007FF96311D759 (KernelBase.dll) in App5.exe: WinRT originate error - 0x80070005 : 'Access is denied.'.
onecoreuap\shell\datatransfer\lib\datapackage.cpp(6046)\windows.applicationmodel.datatransfer.dll!00007FF936706EB8: (caller: 00007FF9366F00A3) ReturnHr(245) tid(59d4) 80070005 Access is denied.
Exception thrown at 0x00007FF96311D759 (KernelBase.dll) in App5.exe: WinRT originate error - 0x80004001 : 'Not implemented'.
onecoreuap\shell\datatransfer\lib\datapackage.cpp(6058)\windows.applicationmodel.datatransfer.dll!00007FF9366F00D9: (caller: 00007FF9366F48E8) ReturnHr(246) tid(59d4) 80004001 Not implemented
Exception thrown at 0x00007FF96311D759 (KernelBase.dll) in App5.exe: WinRT originate error - 0x80070005 : 'Access is denied.'.
onecoreuap\shell\datatransfer\lib\datapackage.cpp(6046)\windows.applicationmodel.datatransfer.dll!00007FF936706EB8: (caller: 00007FF9366F00A3) ReturnHr(247) tid(31cc) 80070005 Access is denied.
Exception thrown at 0x00007FF96311D759 (KernelBase.dll) in App5.exe: WinRT originate error - 0x80004001 : 'Not implemented'.
onecoreuap\shell\datatransfer\lib\datapackage.cpp(6058)\windows.applicationmodel.datatransfer.dll!00007FF9366F00D9: (caller: 00007FF9366F48E8) ReturnHr(248) tid(31cc) 80004001 Not implemented
Exception thrown at 0x00007FF96311D759 (KernelBase.dll) in App5.exe: WinRT originate error - 0x80070005 : 'Access is denied.'.
onecoreuap\shell\datatransfer\lib\datapackage.cpp(6046)\windows.applicationmodel.datatransfer.dll!00007FF936706EB8: (caller: 00007FF9366F00A3) ReturnHr(249) tid(6784) 80070005 Access is denied.
Exception thrown at 0x00007FF96311D759 (KernelBase.dll) in App5.exe: WinRT originate error - 0x80004001 : 'Not implemented'.
onecoreuap\shell\datatransfer\lib\datapackage.cpp(6058)\windows.applicationmodel.datatransfer.dll!00007FF9366F00D9: (caller: 00007FF9366F48E8) ReturnHr(250) tid(6784) 80004001 Not implemented
Exception thrown at 0x00007FF96311D759 (KernelBase.dll) in App5.exe: WinRT originate error - 0x80070005 : 'Access is denied.'.
onecoreuap\shell\datatransfer\lib\datapackage.cpp(6046)\windows.applicationmodel.datatransfer.dll!00007FF936706EB8: (caller: 00007FF9366F00A3) ReturnHr(251) tid(6784) 80070005 Access is denied.
Exception thrown at 0x00007FF96311D759 (KernelBase.dll) in App5.exe: WinRT originate error - 0x80004001 : 'Not implemented'.
onecoreuap\shell\datatransfer\lib\datapackage.cpp(6058)\windows.applicationmodel.datatransfer.dll!00007FF9366F00D9: (caller: 00007FF9366F48E8) ReturnHr(252) tid(6784) 80004001 Not implemented
onecoreuap\shell\dataexchange\winrt\lib\droptargetinternal.cpp(306)\DataExchange.dll!00007FF93A5A69E8: (caller: 00007FF9657B8FD3) ReturnHr(86) tid(6784) 80070490 Element not found.
onecoreuap\shell\dataexchange\winrt\lib\droptargetinternal.cpp(306)\DataExchange.dll!00007FF93A5A69E8: (caller: 00007FF9657B8FD3) ReturnHr(87) tid(31cc) 80070490 Element not found.
onecoreuap\shell\dataexchange\winrt\lib\droptargetinternal.cpp(306)\DataExchange.dll!00007FF93A5A69E8: (caller: 00007FF9657B8FD3) ReturnHr(88) tid(6784) 80070490 Element not found.
Exception thrown at 0x00007FF96311D759 (KernelBase.dll) in App5.exe: WinRT originate error - 0x80004005 : 'Reentrancy was detected in this XAML application. Use a debugger to locate the reentrant code and, if necessary, move that code to an asynchronous event handler. Press OK to exit the application.'.
onecore\com\combase\winrt\error\restrictederror.cpp(1016)\combase.dll!00007FF96430C8D3: (caller: 00007FF9643165A9) ReturnHr(3) tid(3084) 8007007E The specified module could not be found.
Exception thrown at 0x00007FF96311D759 (KernelBase.dll) in App5.exe: WinRT originate error - 0x80070005 : 'Access is denied.'.
Unhandled exception at 0x00007FF9631FBD5C (KernelBase.dll) in App5.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x00000267752A9ED0, 0x0000000000000003).

Call Stack

KernelBase.dll!RaiseFailFastException()
combase.dll!RoFailFastWithErrorContextInternal2(HRESULT hrError, unsigned long cStowedExceptions, _STOWED_EXCEPTION_INFORMATION_V2 * * aStowedExceptionPointers) Line 1455
	at onecore\com\combase\winrt\error\error.cpp(1455)
Microsoft.ui.xaml.dll!CXcpDispatcher::OnReentrancyProtectedWindowMessage()
Microsoft.ui.xaml.dll!CXcpDispatcher::ProcessMessage()
Microsoft.ui.xaml.dll!CXcpDispatcher::WindowProc()
user32.dll!UserCallWinProcCheckWow()
user32.dll!SendMessageWorker(struct tagWND *,unsigned int,unsigned __int64,__int64,int)
user32.dll!SendMessageW()
Microsoft.ui.xaml.dll!CXcpBrowserHost::SyncScriptCallbackRequest()
Microsoft.ui.xaml.dll!CEventManager::Raise()
Microsoft.ui.xaml.dll!CDragDropState::RaiseDragLeaveEvents(void)
Microsoft.ui.xaml.dll!CDragDropState::RaiseEvents(enum DirectUI::DataPackageOperation *)
Microsoft.ui.xaml.dll!ContentRootInput::DragDropProcessor::ProcessWinRtDragDrop(struct DragMsg *,struct IInspectable *,struct IInspectable *,enum DirectUI::DataPackageOperation *,class CDependencyObject *)
Microsoft.ui.xaml.dll!DragDrop_RaiseEvent()
Microsoft.ui.xaml.dll!DirectUI::DropOperationTarget::RaiseDragDropEventActionAsync(enum DirectUI::DragDropMessageType,struct ABI::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragInfo *,class DirectUI::RaiseDragDropEventAsyncOperation *,struct ABI::Windows::Foundation::IAsyncAction * *)
Microsoft.ui.xaml.dll!DirectUI::RaiseDragDropEventAsyncOperation::OnStart(void)
Microsoft.ui.xaml.dll!Microsoft::WRL::AsyncBase<struct ABI::Windows::Foundation::IAsyncOperationCompletedHandler<enum ABI::Windows::ApplicationModel::DataTransfer::DataPackageOperation>,class Microsoft::WRL::Details::Nil,1,struct Microsoft::WRL::AsyncOptions<2,0,&struct _GUID const GUID_NULL,0> >::Start(void)
Microsoft.ui.xaml.dll!DirectUI::DropOperationTarget::RaiseDragDropEventOperationAsync(enum DirectUI::DragDropMessageType,struct ABI::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragInfo *,struct ABI::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragUIOverride *,struct ABI::Windows::Foundation::IAsyncOperation<enum ABI::Windows::ApplicationModel::DataTransfer::DataPackageOperation> * *)
Microsoft.ui.xaml.dll!DirectUI::DropOperationTarget::OverAsync(struct ABI::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragInfo *,struct ABI::Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragUIOverride *,struct ABI::Windows::Foundation::IAsyncOperation<enum ABI::Windows::ApplicationModel::DataTransfer::DataPackageOperation> * *)
DataExchange.dll!DropTargetInternal::DragOver(struct IDragDropArgsPriv *,struct IDragUIOverridePriv * *)
rpcrt4.dll!Invoke()
rpcrt4.dll!Ndr64StubWorker()
rpcrt4.dll!NdrStubCall3()
combase.dll!CStdStubBuffer_Invoke(IRpcStubBuffer * This, tagRPCOLEMESSAGE * prpcmsg, IRpcChannelBuffer * pRpcChannelBuffer) Line 1458
	at onecore\com\combase\ndr\ndrole\stub.cxx(1458)
rpcrt4.dll!CStdStubBuffer_Invoke()
[Inline Frame] combase.dll!InvokeStubWithExceptionPolicyAndTracing::__l6::<lambda_c9f3956a20c9da92a64affc24fdd69ec>::operator()() Line 1279
	at onecore\com\combase\dcomrem\channelb.cxx(1279)
combase.dll!ObjectMethodExceptionHandlingAction<<lambda_c9f3956a20c9da92a64affc24fdd69ec>>(InvokeStubWithExceptionPolicyAndTracing::__l6::<lambda_c9f3956a20c9da92a64affc24fdd69ec> action, ObjectMethodExceptionHandlingInfo * pExceptionHandlingInfo, ExceptionHandlingResult * pExceptionHandlingResult, void *) Line 87
	at onecore\com\combase\dcomrem\excepn.hxx(87)
[Inline Frame] combase.dll!InvokeStubWithExceptionPolicyAndTracing(IRpcStubBuffer * pMsg, tagRPCOLEMESSAGE *) Line 1277
	at onecore\com\combase\dcomrem\channelb.cxx(1277)
combase.dll!DefaultStubInvoke(bool bIsAsyncBeginMethod, IServerCall * pServerCall, IRpcChannelBuffer * pChannel, IRpcStubBuffer * pStub, unsigned long * pdwFault) Line 1346
	at onecore\com\combase\dcomrem\channelb.cxx(1346)
[Inline Frame] combase.dll!SyncStubCall::Invoke(IServerCall *) Line 1403
	at onecore\com\combase\dcomrem\channelb.cxx(1403)
combase.dll!SyncServerCall::StubInvoke(IRpcChannelBuffer * pChannel, IRpcStubBuffer * pStub, unsigned long * pdwFault) Line 781
	at onecore\com\combase\dcomrem\ServerCall.hpp(781)
[Inline Frame] combase.dll!StubInvoke(tagRPCOLEMESSAGE * pMsg, CStdIdentity * pStdID, IRpcStubBuffer *) Line 1628
	at onecore\com\combase\dcomrem\channelb.cxx(1628)
combase.dll!ServerCall::ContextInvoke(tagRPCOLEMESSAGE * pMessage, IRpcStubBuffer * pStub, CServerChannel * pChannel, tagIPIDEntry * pIPIDEntry, unsigned long * pdwFault) Line 1423
	at onecore\com\combase\dcomrem\ctxchnl.cxx(1423)
[Inline Frame] combase.dll!CServerChannel::ContextInvoke(tagRPCOLEMESSAGE *) Line 1332
	at onecore\com\combase\dcomrem\ctxchnl.cxx(1332)
[Inline Frame] combase.dll!DefaultInvokeInApartment(tagRPCOLEMESSAGE *) Line 3297
	at onecore\com\combase\dcomrem\callctrl.cxx(3297)
combase.dll!ReentrantSTAInvokeInApartment(tagRPCOLEMESSAGE * pMsg, unsigned long dwCallCat, bool bIsTouchedASTACall, IRpcStubBuffer * pStub, CServerChannel * pChnl, tagIPIDEntry * pIPIDEntry, unsigned long * pdwFault) Line 113
	at onecore\com\combase\dcomrem\reentrantsta.cpp(113)
[Inline Frame] combase.dll!AppInvoke(ServerCall * pStub, CServerChannel *) Line 1122
	at onecore\com\combase\dcomrem\channelb.cxx(1122)
combase.dll!ComInvokeWithLockAndIPID(ServerCall * pServerCall, tagIPIDEntry * pIPIDEntry, bool * pbCallerResponsibleForRequestMessageCleanup) Line 2210
	at onecore\com\combase\dcomrem\channelb.cxx(2210)
[Inline Frame] combase.dll!ComInvoke(ServerCall *) Line 1697
	at onecore\com\combase\dcomrem\channelb.cxx(1697)
[Inline Frame] combase.dll!ThreadDispatch(ServerCall *) Line 414
	at onecore\com\combase\dcomrem\chancont.cxx(414)
combase.dll!ThreadWndProc(HWND__ * window, unsigned int message, unsigned __int64 wparam, __int64 params) Line 740
	at onecore\com\combase\dcomrem\chancont.cxx(740)
user32.dll!UserCallWinProcCheckWow()
user32.dll!DispatchMessageWorker()
[Inline Frame] combase.dll!CCliModalLoop::MyDispatchMessage(tagMSG *) Line 2989
	at onecore\com\combase\dcomrem\callctrl.cxx(2989)
combase.dll!CCliModalLoop::PeekRPCAndDDEMessage() Line 2611
	at onecore\com\combase\dcomrem\callctrl.cxx(2611)
combase.dll!CCliModalLoop::BlockFn(void * * ahEvent, unsigned long cEvents, unsigned long * lpdwSignaled) Line 2103
	at onecore\com\combase\dcomrem\callctrl.cxx(2103)
[Inline Frame] combase.dll!ModalLoop(CSyncClientCall *) Line 164
	at onecore\com\combase\dcomrem\chancont.cxx(164)
combase.dll!ClassicSTAThreadWaitForCall(CSyncClientCall * pClientCall, WaitForCallReason reason, unsigned long dwRetryTimeout) Line 172
	at onecore\com\combase\dcomrem\threadtypespecific.cpp(172)
[Inline Frame] combase.dll!ThreadSendReceive(tagRPCOLEMESSAGE *) Line 7355
	at onecore\com\combase\dcomrem\channelb.cxx(7355)
[Inline Frame] combase.dll!CSyncClientCall::SwitchAptAndDispatchCall(tagRPCOLEMESSAGE * pMessage) Line 5900
	at onecore\com\combase\dcomrem\channelb.cxx(5900)
combase.dll!CSyncClientCall::SendReceive2(tagRPCOLEMESSAGE * pMessage, unsigned long * pstatus) Line 5459
	at onecore\com\combase\dcomrem\channelb.cxx(5459)
[Inline Frame] combase.dll!SyncClientCallRetryContext::SendReceiveWithRetry(tagRPCOLEMESSAGE *) Line 1542
	at onecore\com\combase\dcomrem\callctrl.cxx(1542)
[Inline Frame] combase.dll!CSyncClientCall::SendReceiveInRetryContext(SyncClientCallRetryContext *) Line 565
	at onecore\com\combase\dcomrem\callctrl.cxx(565)
combase.dll!ClassicSTAThreadSendReceive(CSyncClientCall * pClientCall, tagRPCOLEMESSAGE * pMsg, unsigned long * pulStatus) Line 547
	at onecore\com\combase\dcomrem\callctrl.cxx(547)
combase.dll!CSyncClientCall::SendReceive(tagRPCOLEMESSAGE * pMessage, unsigned long * pulStatus) Line 783
	at onecore\com\combase\dcomrem\ctxchnl.cxx(783)
combase.dll!CClientChannel::SendReceive(tagRPCOLEMESSAGE * pMessage, unsigned long * pulStatus) Line 655
	at onecore\com\combase\dcomrem\ctxchnl.cxx(655)
combase.dll!NdrExtpProxySendReceive(void * pThis, _MIDL_STUB_MESSAGE * pStubMsg) Line 2002
	at onecore\com\combase\ndr\ndrole\proxy.cxx(2002)
rpcrt4.dll!NdrpClientCall3()
combase.dll!ObjectStublessClient(void * ParamAddress, __int64 * FloatRegisters, long Method) Line 369
	at onecore\com\combase\ndr\ndrole\amd64\stblsclt.cxx(369)
combase.dll!ObjectStubless() Line 176
	at onecore\com\combase\ndr\ndrole\amd64\stubless.asm(176)
[Inline Frame] combase.dll!RemoteReleaseRifRefHelper(IRemUnknown *) Line 8806
	at onecore\com\combase\dcomrem\marshal.cxx(8806)
[Inline Frame] combase.dll!RemoteReleaseRifRef(CStdMarshal * pRifRef, OXIDEntry *) Line 8713
	at onecore\com\combase\dcomrem\marshal.cxx(8713)
combase.dll!CStdMarshal::DisconnectCliIPIDs() Line 5403
	at onecore\com\combase\dcomrem\marshal.cxx(5403)
combase.dll!CStdMarshal::DisconnectWorker_ReleasesLock(unsigned long dwType, bool logEventIsActive, CObjectContext * explicitServerContext, bool performCallback) Line 4725
	at onecore\com\combase\dcomrem\marshal.cxx(4725)
combase.dll!CStdMarshal::Disconnect(unsigned long dwType) Line 4525
	at onecore\com\combase\dcomrem\marshal.cxx(4525)
[Inline Frame] combase.dll!CStdIdentity::{dtor}() Line 397
	at onecore\com\combase\dcomrem\stdid.cxx(397)
combase.dll!CStdIdentity::CInternalUnk::Release() Line 945
	at onecore\com\combase\dcomrem\stdid.cxx(945)
rpcrt4.dll!IUnknown_Release_Proxy()
DataExchange.dll!DropTargetInternal::DragInfo::`vector deleting destructor'(unsigned int)
DataExchange.dll!Microsoft::WRL::Details::RuntimeClassImpl<struct Microsoft::WRL::RuntimeClassFlags<1>,1,1,0,struct Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragInfo,struct Windows::ApplicationModel::DataTransfer::DragDrop::Core::ICoreDragInfo2,struct Microsoft::WRL::CloakedIid<struct Windows::ApplicationModel::DataTransfer::Internal::ICoreDragInfoWithCoordinateSpace>,class Microsoft::WRL::FtmBase>::Release(void)
Microsoft.ui.xaml.dll!CDragEventArgs::~CDragEventArgs(void)
Microsoft.ui.xaml.dll!CDragEventArgs::`vector deleting destructor'(unsigned int)
Microsoft.ui.xaml.dll!CEventArgs::Release(void)
Microsoft.ui.xaml.dll!DirectUI::EventArgs::~EventArgs()
Microsoft.ui.xaml.dll!ctl::ComObject<class DirectUI::DragEventArgs>::`vector deleting destructor'(unsigned int)
Microsoft.ui.xaml.dll!ctl::ComBase::ReleaseImpl()
Microsoft.ui.xaml.dll!DirectUI::UIAffinityReleaseQueue::DoCleanup()
Microsoft.ui.xaml.dll!DirectUI::UIAffinityReleaseQueue::BuildTree()
Microsoft.ui.xaml.dll!DirectUI::BuildTreeService::BuildTrees()
Microsoft.ui.xaml.dll!AgCoreCallbacks::FrameworkCallbacks_PhasedWorkDistributor_PerformWork()
Microsoft.ui.xaml.dll!CCoreServices::NWDrawTree()
Microsoft.ui.xaml.dll!CCoreServices::NWDrawMainTree()
Microsoft.ui.xaml.dll!CWindowRenderTarget::Draw()
Microsoft.ui.xaml.dll!CXcpBrowserHost::OnTick()
Microsoft.ui.xaml.dll!CXcpDispatcher::Tick()
Microsoft.ui.xaml.dll!CXcpDispatcher::OnReentrancyProtectedWindowMessage()
Microsoft.ui.xaml.dll!CXcpDispatcher::ProcessMessage()
Microsoft.ui.xaml.dll!CXcpDispatcher::WindowProc()
Microsoft.ui.xaml.dll!CDeferredInvoke::DispatchQueuedMessage()
Microsoft.ui.xaml.dll!Microsoft::WRL::Details::DelegateArgTraits<long (__cdecl ABI::Windows::Foundation::ITypedEventHandler_impl<ABI::Windows::Foundation::Internal::AggregateType<ABI::Microsoft::System::DispatcherQueueTimer *,ABI::Microsoft::System::IDispatcherQueueTimer *>,IInspectable *>::*)(ABI::Microsoft::System::IDispatcherQueueTimer *,IInspectable *)>::DelegateInvokeHelper<Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,ABI::Windows::Foundation::ITypedEventHandler<ABI::Microsoft::System::DispatcherQueueTimer *,IInspectable *>,Microsoft::WRL::FtmBase>,<lambda_fbe4f38be23425399af0724cc79ee2d3> &,1,ABI::Microsoft::System::IDispatcherQueueTimer *,IInspectable *>::Invoke()
CoreMessagingXP.dll!Microsoft::WRL::Details::DelegateArgTraits<long ( Windows::Foundation::ITypedEventHandler_impl<struct Windows::Foundation::Internal::AggregateType<class Microsoft::System::DispatcherQueueTimer *,struct Microsoft::System::IDispatcherQueueTimer *>,struct IInspectable *>::*)(struct Microsoft::System::IDispatcherQueueTimer *,struct IInspectable *)>::DelegateInvokeHelper<struct Microsoft::WRL::Implements<struct Microsoft::WRL::RuntimeClassFlags<2>,struct Windows::Foundation::ITypedEventHandler<class Microsoft::System::DispatcherQueueTimer *,struct IInspectable *>,class Microsoft::WRL::FtmBase>,class <lambda_67362a0a5709a7b3d634a36a54ed7d36>,-1,struct Microsoft::System::IDispatcherQueueTimer *,struct IInspectable *>::Invoke(struct Microsoft::System::IDispatcherQueueTimer *,struct IInspectable *)
CoreMessagingXP.dll!Microsoft::WRL::InvokeTraits<-2>::InvokeDelegates<class <lambda_00d64a5d69eb8cd85a8562b0747f7e4a>,struct Windows::Foundation::ITypedEventHandler<class Microsoft::System::DispatcherQueueTimer *,struct IInspectable *> >(class <lambda_00d64a5d69eb8cd85a8562b0747f7e4a>,class Microsoft::WRL::Details::EventTargetArray *,class Microsoft::WRL::EventSource<struct Windows::Foundation::ITypedEventHandler<class Microsoft::System::DispatcherQueueTimer *,struct IInspectable *>,struct Microsoft::WRL::InvokeModeOptions<-2> > *)
CoreMessagingXP.dll!Microsoft::System::DispatcherQueueTimer::TimerCallback(void *)
CoreMessagingXP.dll!CFlat::SehSafe::Execute<<lambda_654db17c35df07198786f0867aa10de6>>()
CoreMessagingXP.dll!Microsoft::CoreUI::Dispatch::TimeoutHandler::ImportAdapter$(class CFlat::Box$1<struct CFlat::FunctionPointerAndUserData$1<long (*)(void *)> > *)
CoreMessagingXP.dll!Microsoft::CoreUI::Dispatch::TimeoutManager::Callback_OnDispatch(void)
CoreMessagingXP.dll!Microsoft::CoreUI::Dispatch::Dispatcher::Callback_DispatchNextItem(void)
CoreMessagingXP.dll!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop(enum Microsoft::CoreUI::Dispatch::RunMode)
CoreMessagingXP.dll!Microsoft::CoreUI::Dispatch::SystemCoreMessaging::Callback_OnGroupDispatch(enum Microsoft::CoreUI::Dispatch::SystemCoreMessaging$GroupPriority,struct CFlat::Ref<struct System::IntPtr>)
CoreMessagingXP.dll!Microsoft::CoreUI::Dispatch::SystemCoreMessaging::NoContext_GroupDispatchHandler(enum Microsoft::CoreUI::Dispatch::SystemCoreMessaging$GroupPriority,void *)
CoreMessagingXP.dll!Microsoft::CoreUI::Dispatch::SystemCoreMessaging::NoContext_NormalPriorityDispatchHandler(void *)
CoreMessaging.dll!Microsoft__CoreUI__DispatchGroupHandler$CallbackThunk(class System::Delegate *)
CoreMessaging.dll!Microsoft::CoreUI::DispatchGroupHandler::Invoke()
CoreMessaging.dll!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop()
CoreMessaging.dll!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch()
CoreMessaging.dll!Microsoft::CoreUI::Dispatch::UserAdapter_DoWork()
CoreMessaging.dll!Microsoft::CoreUI::Dispatch::UserAdapter_WindowProc()
user32.dll!UserCallWinProcCheckWow()
user32.dll!DispatchClientMessage()
user32.dll!__fnDWORD()
ntdll.dll!KiUserCallbackDispatcherContinue()
win32u.dll!NtUserGetMessage()
user32.dll!GetMessageW()
Microsoft.ui.xaml.dll!DirectUI::FrameworkApplication::RunDesktopWindowMessageLoop(void)
Microsoft.ui.xaml.dll!DirectUI::FrameworkApplication::StartDesktop()
Microsoft.ui.xaml.dll!DirectUI::FrameworkApplicationFactory::Start()
[External Code]
[Inline Frame] hostpolicy.dll!coreclr_t::execute_assembly(int) Line 89
	at F:\workspace\_work\1\s\src\installer\corehost\cli\hostpolicy\coreclr.cpp(89)
hostpolicy.dll!run_app_for_context(const hostpolicy_context_t & context, int argc, const wchar_t * * argv) Line 246
	at F:\workspace\_work\1\s\src\installer\corehost\cli\hostpolicy\hostpolicy.cpp(246)
hostpolicy.dll!run_app(const int argc, const wchar_t * * argv) Line 275
	at F:\workspace\_work\1\s\src\installer\corehost\cli\hostpolicy\hostpolicy.cpp(275)
hostpolicy.dll!corehost_main(const int argc, const wchar_t * * argv) Line 408
	at F:\workspace\_work\1\s\src\installer\corehost\cli\hostpolicy\hostpolicy.cpp(408)
hostfxr.dll!execute_app(const std::wstring & impl_dll_dir, corehost_init_t * init, const int argc, const wchar_t * * argv) Line 146
	at F:\workspace\_work\1\s\src\installer\corehost\cli\fxr\fx_muxer.cpp(146)
[Inline Frame] hostfxr.dll!?A0xf9c2fcdf::read_config_and_execute(const std::wstring &) Line 520
	at F:\workspace\_work\1\s\src\installer\corehost\cli\fxr\fx_muxer.cpp(520)
hostfxr.dll!fx_muxer_t::handle_exec_host_command(const std::wstring & host_command, const host_startup_info_t & host_info, const std::wstring & app_candidate, const std::unordered_map<enum known_options,std::vector<std::wstring,std::allocator<std::wstring>>,known_options_hash,std::equal_to<enum known_options>,std::allocator<std::pair<enum known_options const ,std::vector<std::wstring,std::allocator<std::wstring>>>>> & opts, int argc, const wchar_t * * argv, int argoff, host_mode_t mode, wchar_t * result_buffer, int buffer_size, int * required_buffer_size) Line 1001
	at F:\workspace\_work\1\s\src\installer\corehost\cli\fxr\fx_muxer.cpp(1001)
hostfxr.dll!fx_muxer_t::execute(const std::wstring host_command, const int argc, const wchar_t * * argv, const host_startup_info_t & host_info, wchar_t * result_buffer, int buffer_size, int * required_buffer_size) Line 566
	at F:\workspace\_work\1\s\src\installer\corehost\cli\fxr\fx_muxer.cpp(566)
hostfxr.dll!hostfxr_main_startupinfo(const int argc, const wchar_t * * argv, const wchar_t * host_path, const wchar_t * dotnet_root, const wchar_t * app_path) Line 50
	at F:\workspace\_work\1\s\src\installer\corehost\cli\fxr\hostfxr.cpp(50)
App5.exe!exe_start(const int argc, const wchar_t * * argv) Line 236
	at F:\workspace\_work\1\s\src\installer\corehost\corehost.cpp(236)
App5.exe!wmain(const int argc, const wchar_t * * argv) Line 302
	at F:\workspace\_work\1\s\src\installer\corehost\corehost.cpp(302)
[External Code]

Expected behavior

No exceptions

Screenshots

Version Info

NuGet package version:

image

Windows app type:

UWP Win32
YES
Windows 10 version Saw the problem?
Insider Build (xxxxx)
October 2020 Update (19042) YES
May 2020 Update (19041)
November 2019 Update (18363)
May 2019 Update (18362)
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop YES
Xbox
Surface Hub
IoT

Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:19 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
wbokkerscommented, Nov 10, 2021

@codendone This is unacceptable. How can this crash still be in a so-called ‘stable’ version? We have thousands of users relying on drag/drop to work. How long do we need to communicate that this is a Microsoft issue that will be solved in some later version? Can you please make some workaround or make a silent fail without crashing the app?

3reactions
wbokkerscommented, Jun 26, 2021

@codendone Thanks. Good to have it fixed finally. This is bad news for our app and customers. We plan to release in a few months and drag & drop is a key feature of our app. The 0.8 release should support Drag & Drop, but obviously it doesn’t. Is there no way to make the drop fail without crashing the app in the mean time?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crash during Drag and Drop operation error 0x80004005
Describe the bug. When performing a Drag and Drop operation on a DataGridRow, an error is thrown at random times. Steps to reproduce...
Read more >
6 Ways to Fix VirtualBox Result Code: E_FAIL ...
This tutorial highlights probable causes and troubleshooting solutions for the E_FAIL (0x80004005) VirtualBox error on Windows devices.
Read more >
What could possibly cause COMExceptions while dragging ...
The IDataObject interface implementation in WPF says "no" by throwing an exception. The normal way in which COM failure codes are generated in...
Read more >
Bidirectional drag'n drop is not working with VirtualBox and ...
At the moment drag and drop is implemented for Windows- and X-Windows-based systems, both, on host and guest side.
Read more >
unfortunately, a process used by visual studio encountered ...
Unfortunately, a process used by visual studio encountered an unrecoverable error. We recommend that you save your work and then close and restart...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found