microsoft / calculator

Windows Calculator: A simple yet powerful calculator that ships with Windows
MIT License
29.84k stars 5.41k forks source link

Crash when copying result #1063

Open egorpugin opened 4 years ago

egorpugin commented 4 years ago

Describe the bug crash

Steps To Reproduce

Device and Application Information Microsoft Windows [Version 10.0.18363.693]

Requested Assignment I'm just reporting this problem. I don't want to fix it.

MicrosoftIssueBot commented 4 years ago

This is your friendly Microsoft Issue Bot. I've seen this issue come in and have gone to tell a human about it.

grochocki commented 4 years ago

Thanks for the detailed repro steps! Unfortunately, I am not able to reproduce the issue. What version of Calculator are you using? Can you reproduce the crash every time?

egorpugin commented 4 years ago

Calculator 10.1910.0.0 © 2019 Microsoft. All rights reserved.

Yes, every time calc crashes. Is there any place with prebuilt calc? Maybe this error was already fixed indeed?

egorpugin commented 4 years ago

Call stack:

    KernelBase.dll!RaiseFailFastException()    Unknown
    combase.dll!RoFailFastWithErrorContextInternal2(HRESULT hrError, unsigned long cStowedExceptions, _STOWED_EXCEPTION_INFORMATION_V2 * * aStowedExceptionPointers) Line 1458  C++
    Windows.UI.Xaml.dll!DirectUI::ErrorHelper::ProcessUnhandledError(DirectUI::ErrorInfo & errorInfo, unsigned int fSkipFailFastIfNoErrorContext, unsigned int * pfHandled) Line 618    C++
    Windows.UI.Xaml.dll!DirectUI::FinalUnhandledErrorDetectedRegistration::OnFinalUnhandledErrorDetected(IInspectable * pSender, Windows::ApplicationModel::Core::IUnhandledErrorDetectedEventArgs * pArgs) Line 1013   C++
>   [Inline Frame] Windows.UI.Xaml.dll!Microsoft::WRL::Callback::__l2::<lambda_fa46ac39691f4ca87fe78d9a3f2f4de1>::operator()(IInspectable * &&) Line 327    C++
    Windows.UI.Xaml.dll!Microsoft::WRL::Details::DelegateArgTraits<long (__cdecl Windows::Foundation::IEventHandler_impl<Windows::Foundation::Internal::AggregateType<Windows::ApplicationModel::Core::UnhandledErrorDetectedEventArgs *,Windows::ApplicationModel::Core::IUnhandledErrorDetectedEventArgs *>>::*)(IInspectable *,Windows::ApplicationModel::Core::IUnhandledErrorDetectedEventArgs *)>::DelegateInvokeHelper<Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,Windows::Foundation::IEventHandler<Windows::ApplicationModel::Core::UnhandledErrorDetectedEventArgs *>,Microsoft::WRL::FtmBase>,<lambda_fa46ac39691f4ca87fe78d9a3f2f4de1>,-1,IInspectable *,Windows::ApplicationModel::Core::IUnhandledErrorDetectedEventArgs *>::Invoke(IInspectable * <args_0>, Windows::ApplicationModel::Core::IUnhandledErrorDetectedEventArgs * <args_1>) Line 245  C++
    twinapi.appcore.dll!Windows::Internal::Details::GitInvokeHelper<struct Windows::Foundation::IEventHandler<class Windows::ApplicationModel::Core::UnhandledErrorDetectedEventArgs *>,class Windows::Internal::GitPtr,2>::Invoke(struct IInspectable *,struct Windows::ApplicationModel::Core::IUnhandledErrorDetectedEventArgs *)    Unknown
    twinapi.appcore.dll!Windows::ApplicationModel::Core::UnhandledErrorInvokeHelper::Invoke(struct IInspectable *,struct Windows::ApplicationModel::Core::IUnhandledErrorDetectedEventArgs *)   Unknown
    twinapi.appcore.dll!Microsoft::WRL::InvokeTraits<2>::InvokeDelegates<<lambda_d3aa4dff9873c46d1acd593e89259f7b>,Windows::Foundation::IEventHandler<Windows::ApplicationModel::Core::UnhandledErrorDetectedEventArgs *>>()    Unknown
    twinapi.appcore.dll!Microsoft::WRL::EventSource<Windows::Foundation::IEventHandler<Windows::ApplicationModel::Core::UnhandledErrorDetectedEventArgs *>,Microsoft::WRL::InvokeModeOptions<2>>::DoInvoke<<lambda_d3aa4dff9873c46d1acd593e89259f7b>>() Unknown
    twinapi.appcore.dll!Microsoft::WRL::EventSource<struct Windows::Foundation::IEventHandler<class Windows::ApplicationModel::Core::UnhandledErrorDetectedEventArgs *>,struct Microsoft::WRL::InvokeModeOptions<2> >::InvokeAll<std::nullptr_t,class Windows::ApplicationModel::Core::UnhandledErrorDetectedEventArgs *>(std::nullptr_t,class Windows::ApplicationModel::Core::UnhandledErrorDetectedEventArgs *)  Unknown
    twinapi.appcore.dll!Windows::ApplicationModel::Core::CoreApplication::ForwardLocalError(struct IRestrictedErrorInfo *)  Unknown
    twinapi.appcore.dll!Windows::ApplicationModel::Core::CoreApplicationFactory::ForwardLocalError(struct IRestrictedErrorInfo *)   Unknown
    combase.dll!CallErrorForwarder(void * hProcess, int fLocal, IRestrictedErrorInfo * pRestrictedErrorInfo) Line 1601  C++
    Windows.UI.Xaml.dll!DirectUI::ErrorHelper::ReportUnhandledError(HRESULT hrError) Line 489   C++
    Windows.UI.Xaml.dll!CCoreServices::CLR_FireEvent(CDependencyObject * pListener, EventHandle hEvent, CDependencyObject * pSender, CEventArgs * pArgs, unsigned int flags) Line 3224  C++
    Windows.UI.Xaml.dll!CommonBrowserHost::CLR_FireEvent(CDependencyObject * pListener, EventHandle hEvent, CDependencyObject * pSender, CEventArgs * pArgs, unsigned int flags) Line 771   C++
    Windows.UI.Xaml.dll!CControlBase::ScriptCallback(void * pControl, CDependencyObject * pListener, EventHandle hEvent, CDependencyObject * pSender, CEventArgs * pArgs, int flags, IScriptObject * pScriptObject, HRESULT(*)(CDependencyObject *, CEventArgs *) pInternalHandler) Line 267    C++
    [Inline Frame] Windows.UI.Xaml.dll!CXcpDispatcher::OnScriptCallback(CEventInfo *) Line 1336 C++
    Windows.UI.Xaml.dll!CXcpDispatcher::OnWindowMessage(HWND__ * msg, unsigned int wParam, unsigned __int64 lParam, __int64) Line 1103  C++
    [Inline Frame] Windows.UI.Xaml.dll!CXcpDispatcher::ProcessMessage(HWND__ *) Line 909    C++
    Windows.UI.Xaml.dll!CXcpDispatcher::WindowProc(HWND__ * hwnd, unsigned int msg, unsigned __int64 wParam, __int64 lParam) Line 840   C++
    user32.dll!UserCallWinProcCheckWow()    Unknown
    user32.dll!DispatchClientMessage()  Unknown
    user32.dll!__fnDWORD() Unknown
    ntdll.dll!KiUserCallbackDispatcherContinue()   Unknown
    win32u.dll!NtUserMessageCall() Unknown
    user32.dll!SendMessageWorker()  Unknown
    user32.dll!SendMessageW()   Unknown
    [Inline Frame] Windows.UI.Xaml.dll!CXcpDispatcher::SendMessageW(unsigned int) Line 807  C++
    Windows.UI.Xaml.dll!CXcpBrowserHost::SyncScriptCallbackRequest(void * pVoidBH, CDependencyObject * pListener, EventHandle hEvent, CDependencyObject * pSender, CEventArgs * pArgs, int flags, IScriptObject * pScriptObject, HRESULT(*)(CDependencyObject *, CEventArgs *) pHandler) Line 1048  C++
    [Inline Frame] Windows.UI.Xaml.dll!CEventManager::RaiseControlEvents(EventHandle) Line 1133 C++
    Windows.UI.Xaml.dll!CEventManager::Raise(EventHandle hEvent, int bRefire, CDependencyObject * pSender, CEventArgs * pArgs, bool fRaiseSync, bool fInputEvent, bool bAllowErrorFallback, CDependencyObject * pSenderOverride) Line 887   C++
    Windows.UI.Xaml.dll!CEventManager::RaiseRoutedEventBubbling(EventHandle hEvent, CDependencyObject * pSource, CRoutedEventArgs * pArgs, bool bIgnoreVisibility, bool fRaiseSync, bool fInputEvent, CDependencyObject * coerceToHandledAtElement) Line 1334   C++
    [Inline Frame] Windows.UI.Xaml.dll!CEventManager::RaiseRoutedEvent(EventHandle) Line 1241   C++
    Windows.UI.Xaml.dll!CInputServices::RaiseDelayedPointerUpEvent(TouchInteractionMsg * pMsgGesture, CDependencyObject * pElement) Line 2663   C++
    Windows.UI.Xaml.dll!CInputServices::ProcessGestureInput(CDependencyObject * pElement, TouchInteractionMsg * pMsg) Line 2414 C++
    Windows.UI.Xaml.dll!CInputServices::ProcessTouchInteractionCallback(const xref_ptr<CUIElement> & element, TouchInteractionMsg * message) Line 2310  C++
    Windows.UI.Xaml.dll!CCoreServices::ProcessTouchInteractionCallback(const xref_ptr<CUIElement> & element, TouchInteractionMsg * message) Line 1017   C++
    Windows.UI.Xaml.dll!TIEAdapter::InteractionEngineCallback(const INTERACTION_CONTEXT_OUTPUT * const pOutputFromICM) Line 238 C++
    Windows.UI.Xaml.dll!TIEAdapter::StaticInteractionEngineCallback(void * pvData, const INTERACTION_CONTEXT_OUTPUT * outputFromICM) Line 65    C++
    ninput.dll!COutputConverter::Process(class CInteractionContextConfiguration const &,enum InteractionContextProperties::MeasurementUnits,enum CInteractionContextGlobal::FeedbackSettings,struct DigitizerInfo const *,struct INTERACTION_INPUT const *,unsigned int,struct INTERACTION_OUTPUT const &,int)  Unknown
    ninput.dll!CInteractionContextImpl::OutputCallback(void *,struct INTERACTION_OUTPUT const *)    Unknown
    ninput.dll!CInteractionGroupingFilter::_SendOutput(struct INTERACTION_OUTPUT const &)   Unknown
    ninput.dll!CInteractionGroupingFilter::_OnInput(struct INTERACTION_OUTPUT const &)  Unknown
    ninput.dll!COutputCoalescingFilter::Flush(void) Unknown
    ninput.dll!COutputCoalescingFilter::_OnInput(struct INTERACTION_OUTPUT const &) Unknown
    ninput.dll!CInteractionEngineImpl::DigitizerInput(enum DIGITIZER_KIND,unsigned __int64,unsigned int,unsigned int,struct INTERACTION_INPUT const *)  Unknown
    ninput.dll!CInteractionContextImpl::ProcessFrameHistory(unsigned int,unsigned int,struct tagPOINTER_INFO const *)   Unknown
    ninput.dll!ProcessPointerFramesInteractionContext()    Unknown
    Windows.UI.Xaml.dll!ElementGestureTracker::ProcessPointerInformation(const InputMessage & msg, Windows::UI::Input::IPointerPointStatics * const pointerPointStatics) Line 703   C++
    Windows.UI.Xaml.dll!ElementGestureTracker::ProcessPointerMessage(const InputMessage & msg, Windows::UI::Input::IPointerPointStatics * const pointerPointStatics) Line 91    C++
    Windows.UI.Xaml.dll!CInputServices::ProcessPointerMessagesWithInteractionEngine(unsigned int pMsg, InputMessage * pInteractionElement, CUIElement * pManipulationElement, CUIElement * bIgnoreManipulationElement, unsigned int pInteractionContext, ElementGestureTracker * bForceDisableGesture, unsigned int) Line 1992  C++
    Windows.UI.Xaml.dll!CInputServices::ProcessInteractionPointerMessages(unsigned int pointerId, InputMessage * pMsg) Line 1758    C++
    Windows.UI.Xaml.dll!ContentRootInput::PointerInputProcessor::ProcessPointerInput(InputMessage * pMsg, int * handled) Line 716   C++
    Windows.UI.Xaml.dll!CInputServices::ProcessInput(InputMessage * pMsg, CContentRoot * contentRoot, int * handled) Line 887   C++
    Windows.UI.Xaml.dll!CCoreServices::ProcessInput(InputMessage * pMessage, CContentRoot * contentRoot, int * fHandled) Line 991   C++
    Windows.UI.Xaml.dll!CXcpBrowserHost::HandleInputMessage(unsigned int uMsg, MsgPacket * pMsgPack, CContentRoot * contentRoot, bool & fHandled) Line 1403 C++
    Windows.UI.Xaml.dll!CJupiterControl::HandlePointerMessage(unsigned int uMsg, unsigned __int64 wParam, __int64 lParam, CContentRoot * contentRoot, Windows::UI::Input::IPointerPoint * pointerPoint, Windows::UI::Core::IPointerEventArgs * pointerArgs) Line 750    C++
    Windows.UI.Xaml.dll!CJupiterControl::ForwardWindowedPopupMessageToJupiterWindow(HWND__ * window, unsigned int message, unsigned __int64 wParam, __int64 lParam, CContentRoot * contentRoot) Line 1191   C++
    [Inline Frame] Windows.UI.Xaml.dll!DirectUI::DXamlCore::ForwardWindowedPopupMessageToJupiterWindow(HWND__ *) Line 4366  C++
    Windows.UI.Xaml.dll!DirectUI::DXamlCore::ForwardWindowedPopupMessageToJupiterWindow(HWND__ * window, unsigned int message, unsigned __int64 wParam, __int64 lParam, CContentRoot * contentRoot, __int64 * pResult) Line 4333    C++
    [Inline Frame] Windows.UI.Xaml.dll!CFxCallbacks::Core_ForwardWindowedPopupMessageToJupiterWindow(HWND__ * contentRoot, unsigned int) Line 1152  C++
    Windows.UI.Xaml.dll!CPopup::HandleWindowedPopupMessage(HWND__ * hwnd, unsigned int message, unsigned __int64 wParam, __int64 lParam) Line 1729  C++
    Windows.UI.Xaml.dll!CPopup::WindowedPopupWindowProc(HWND__ * hwnd, unsigned int message, unsigned __int64 wParam, __int64 lParam) Line 1702 C++
    user32.dll!UserCallWinProcCheckWow()    Unknown
    user32.dll!DispatchMessageWorker()  Unknown
    Windows.UI.dll!Windows::UI::Core::CDispatcher::ProcessMessage(bool bDrainQueue, bool * pbWindowMessagesProcessed, bool * pbInvokeItemProcessed) Line 327    C++
    Windows.UI.dll!Windows::UI::Core::CDispatcher::WaitAndProcessMessagesInternal(bool bRunAlwaysOnce, void * hEventWait) Line 1953 C++
    Windows.UI.dll!Windows::UI::Core::CDispatcher::ProcessEvents(Windows::UI::Core::CoreProcessEventsOption options) Line 599   C++
    Windows.UI.Xaml.dll!CJupiterWindow::RunCoreWindowMessageLoop() Line 1233    C++
    [Inline Frame] Windows.UI.Xaml.dll!CJupiterControl::RunMessageLoop() Line 1065  C++
    Windows.UI.Xaml.dll!DirectUI::DXamlCore::RunMessageLoop() Line 2453 C++
    twinapi.appcore.dll!Windows::ApplicationModel::Core::CoreApplicationView::Run() Unknown
    twinapi.appcore.dll!<lambda>(void)()    Unknown
    SHCore.dll!_WrapperThreadProc() Unknown
    kernel32.dll!BaseThreadInitThunk() Unknown
    ntdll.dll!RtlUserThreadStart() Unknown
egorpugin commented 4 years ago

6ba379ec-436f-4585-842f-6413d72506dd

egorpugin commented 4 years ago

FYI: numbers do not play a big role. I see crashes on copying 2+2 result also.

terellison commented 4 years ago

Hello, I was able to reproduce this issue with the repro steps provided.

Calculator 10.1910.0.0 © 2019 Microsoft. All rights reserved.

grochocki commented 4 years ago

@joseartrivera I cannot repro in 10.2001.12. Can you help confirm whether we might have addressed this since 10.1910.* where the reports are coming from?

nishanc commented 4 years ago

I also could not reproduce the bug. On Calculator 10.1910.0.0 Windows 10 version 1903 (OS Build 18362.657)

Abhi011999 commented 4 years ago

Calc Version - 10.1910.0.0 Win Version - 1909 (Build 18363.778)

Here it goes -

It crashes. It can crash after second copy too.

Exception log after above steps -

Exception thrown at 0x00007FFAD5A8A799 (KernelBase.dll) in Calculator.exe: WinRT originate error - 0x800401D0 : 'OpenClipboard Failed'.
Exception thrown at 0x00007FFAD5A8A799 in Calculator.exe: Microsoft C++ exception: winrt::hresult_error at memory location 0x000000CE887FD640.

Hope its fixed soon.

wkucjas commented 4 years ago

I cannot reproduce this issue with:

Kalkulator 10.2008.2.0 © 2020 Microsoft. Wszelkie prawa zastrzeżone.

mikebeaton commented 1 year ago

Calculator still crashing when copying result, on one computer out of about 80 in our office, only - for whatever reason - others working fine.

Windows event log shows:

Faulting application name: CalculatorApp.exe, version: 11.2210.0.0, time stamp: 0x63694266
Faulting module name: twinapi.appcore.dll, version: 10.0.22621.169, time stamp: 0xefea65ab
Exception code: 0xc000027b
Fault offset: 0x000000000010cb4e
Faulting process ID: 0x0x11D74
Faulting application start time: 0x0x1D992F44979C23C
Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsCalculator_11.2210.0.0_x64__8wekyb3d8bbwe\CalculatorApp.exe
Faulting module path: C:\Windows\SYSTEM32\twinapi.appcore.dll
Report ID: 18b53337-9e97-4b3a-b008-a55fbeb0f0d3
Faulting package full name: Microsoft.WindowsCalculator_11.2210.0.0_x64__8wekyb3d8bbwe
Faulting package-relative application ID: App