locked
crash about animation in Metro

    Question

  • The following is the CallStack when my app crash,I have an animation in the first Page,when I Navigate to another page,sometimes it will crash,I think it may be caused by a null this pointer.I want to know if there is any effect way to destroy animation,so that the animation won't be executed when I navigate to another page.

    Windows.UI.Xaml.dll!CTextBoxView::MarkInheritedPropertyDirty(CDependencyProperty * pdp=0x025268ac, CValue * pValue=0x043df000) Line 328 C++

    Windows.UI.Xaml.dll!CUIElement::MarkInheritedPropertyDirty(CDependencyProperty * pdp=0x025268ac, CValue * pValue=0x043df000) Line 16048 C++
    Windows.UI.Xaml.dll!CUIElement::MarkInheritedPropertyDirty(CDependencyProperty * pdp=0x025268ac, CValue * pValue=0x043df000) Line 16048 C++
    Windows.UI.Xaml.dll!CUIElement::MarkInheritedPropertyDirty(CDependencyProperty * pdp=0x025268ac, CValue * pValue=0x043df000) Line 16048 C++
    Windows.UI.Xaml.dll!CUIElement::MarkInheritedPropertyDirty(CDependencyProperty * pdp=0x025268ac, CValue * pValue=0x043df000) Line 16048 C++
    Windows.UI.Xaml.dll!CDependencyObject::SetEffectiveValue(CDependencyProperty * pdp, CValue * pValue=0x0d27ec88) Line 3192 C++
    Windows.UI.Xaml.dll!CDependencyObject::UpdateEffectiveValue(CDependencyProperty * pdp=0x025268ac, CValue * pValue=0x043df128, CModifiedValue * pModifiedValue=0x0d5de338, unsigned int valueOperation=0x00000004) Line 5142 C++
    Windows.UI.Xaml.dll!CDependencyObject::SetValue(CDependencyProperty * pdp=0x025268ac, CValue * pValue=0x043df128) Line 2119 C++
    Windows.UI.Xaml.dll!CUIElement::SetValue(CDependencyProperty * pdp, CValue * pValue=0x043df128) Line 529 C++
    Windows.UI.Xaml.dll!CFrameworkElement::SetValue(CDependencyProperty * pdp=0x025268ac, CValue * pValue=0x043df128) Line 306 C++
    Windows.UI.Xaml.dll!CControl::SetValue(CDependencyProperty * pdp=0x025268ac, CValue * pValue=0x043df128) Line 123 C++
    Windows.UI.Xaml.dll!CContentControl::SetValue(CDependencyProperty * pdp=0x025268ac, CValue * pValue=0x043df128) Line 131 C++
    Windows.UI.Xaml.dll!CDependencyObject::UpdateEffectiveValue(CDependencyProperty * pdp, CValue * pValue, CModifiedValue * pModifiedValue=0x0d5de338, unsigned int valueOperation) Line 5179 C++
    Windows.UI.Xaml.dll!CAnimation::UpdateAnimationUsingKeyFrames(DurationType durationValue=0.000000000, float isInReverse=0x00000000, unsigned int combinedSpeedRatio=1.00000000, float pFrameScheduler=0x00000000, IFrameScheduler * isIndependentAnimation=0x00000000, unsigned int) Line 404 C++
    Windows.UI.Xaml.dll!CAnimation::UpdateAnimation(float beginTime, const float * pParentTime, unsigned int isParentInReverse, float combinedSpeedRatio, DurationType durationType, float durationValue, unsigned int isInReverse, const COptionalFloat & expirationTime, IFrameScheduler * pFrameScheduler, unsigned int * pIsIndependentAnimation) Line 189 C++
    Windows.UI.Xaml.dll!CTimeline::ComputeStateImpl(const float * pParentTime=0x0d431f68, unsigned int isParentInReverse=0x00000000, float combinedSpeedRatio=1.00000000, IFrameScheduler * pFrameScheduler=0x0253ef20, unsigned int * pHasNoExternalReferences=0x043df3d8, unsigned int * pHasIndependentAnimation=0x043df354, unsigned int * pIsInReverse=0x043df350) Line 306 C++
    Windows.UI.Xaml.dll!CTimeline::ComputeState(const float * pParentTime=0x0d431f68, unsigned int isParentInReverse=0x00000000, float parentCombinedSpeedRatio=1.00000000, IFrameScheduler * pFrameScheduler=0x0253ef20, unsigned int * pHasNoExternalReferences) Line 196 C++
    Windows.UI.Xaml.dll!CStoryboard::ComputeStateImpl(const float * pParentTime, unsigned int isParentInReverse, float combinedSpeedRatio=1.00000000, IFrameScheduler * pFrameScheduler=0x0253ef20, unsigned int * pHasNoExternalReferences=0x043df3d8, unsigned int * pHasIndependentAnimation=0x043df3d0, unsigned int * pIsInReverse=0x043df3c8) Line 299 C++
    Windows.UI.Xaml.dll!CTimeManager::Tick(unsigned int newTimelinesOnly, unsigned int processIATargets, IFrameScheduler * pFrameScheduler=0x0253ef20) Line 336 C++
    Windows.UI.Xaml.dll!CCoreServices::Tick(unsigned int tickForDrawing=0x00000001) Line 6680 C++
    Windows.UI.Xaml.dll!CCoreServices::NWDrawTree(HWWalk * pHWWalk=0x02540c30, ICoreRenderTarget * pIRenderTarget=0x02580d74, VisualTree * pVisualTree=0x024f2150, unsigned int uBackgroundColor=0xff000000, unsigned int forceRedraw=0x00000000, unsigned int needsToReleaseHardwareResources=0x00000000, XRECT_WH * prcDirtyRect=0x043df554) Line 10775 C++
    Windows.UI.Xaml.dll!CCoreServices::NWDrawMainTree(ICoreRenderTarget * pIRenderTarget=0x02580d74, unsigned int fForceRedraw=0x00000000, unsigned int needsToReleaseHardwareResources=0x00000000, XRECT_WH * prcDirtyRect=0x043df554) Line 10693 C++
    Windows.UI.Xaml.dll!CWindowRenderTarget::Draw(ICoreServices * pCore=0x02512d98, unsigned int fForceRedraw=0x00000000, XRECT_WH * prcDirtyRect=0x043df554) Line 128 C++
    Windows.UI.Xaml.dll!CXcpBrowserHost::OnTick() Line 1160 C++
    Windows.UI.Xaml.dll!CXcpDispatcher::Tick() Line 1120 C++
    Windows.UI.Xaml.dll!CXcpDispatcher::OnReentrancyProtectedWindowMessage(HWND__ * msg=0x00000402, unsigned int wParam=0x00000000, unsigned int lParam=0x00000000, long) Line 653 C++
    Windows.UI.Xaml.dll!CXcpDispatcher::WindowProc(HWND__ * hwnd=0x00060a9c, unsigned int msg=0x00000402, unsigned int wParam=0x00000000, long lParam=0x00000000) Line 401 C++

                              
    Saturday, September 15, 2012 6:13 AM

All replies

  • Hello,

    Would you please provide us the whole codes to reproduce this issue,

    You can upload your project to skydriver
    http://skydrive.live.com/

    It is not necessary that you send out the whole of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business details from it.

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Monday, September 17, 2012 7:46 AM