This project has moved. For the latest updates, please go here.

native exception after adding polylines to MapControl and panning around

May 22, 2013 at 1:10 AM
Edited May 22, 2013 at 1:12 AM
Hi,
I stumbled upon an issue I am not really able to hunt down.

Summarized I have a map on my page and add a closed polyline with fill and stroke colors. As long as my polyline has only 2 points, everything works fine. When I add another point however, remove everything except the tile layer from the map, add the new line in a MapItemsControl and start to pan around the map, I get an exception (without details). I tried to figure out the StackTrace. Do you have any idea on what it could be?
>   combase.dll!RoFailFastWithErrorContextInternal(HRESULT hrError, unsigned long cStowedExceptions, _STOWED_EXCEPTION_INFORMATION_V1 * * aStowedExceptionPointers) Line 853    C++
    Windows.UI.Xaml.dll!CXcpDispatcher::OnWindowMessage(HWND__ * msg, unsigned int wParam, unsigned int lParam, long)   C++
    Windows.UI.Xaml.dll!CXcpDispatcher::WindowProc(HWND__ * hwnd, unsigned int msg, unsigned int wParam, long lParam)   C++
    user32.dll!_InternalCallWinProc@20()   Unknown
    user32.dll!_UserCallWinProcCheckWow@36()   Unknown
    user32.dll!_SendMessageWorker@24() Unknown
    user32.dll!_SendMessageW@16()  Unknown
    Windows.UI.Xaml.dll!CXcpBrowserHost::SyncScriptCallbackRequest(void * pVoidBH, IDependencyObject * pSender, IDependencyObject * pe, CXString * pstrFName, int flags, IScriptObject * pScriptObject, long (IDependencyObject *, IDependencyObject *) * pHandler) Line 2161   C++
    Windows.UI.Xaml.dll!CEventManager::Raise(CDependencyProperty * pEvent, int bRefire, CDependencyObject * pSender, CEventArgs * pArgs, unsigned int fRaiseSync, unsigned int fInputEvent, unsigned int bAllowErrorFallback, CDependencyObject * pSenderOverride) Line 925 C++
    Windows.UI.Xaml.dll!CEventManager::RaiseRoutedEvent(CDependencyProperty * pEvent, CDependencyObject * pSource, CRoutedEventArgs * pArgs, int bIgnoreVisibility, unsigned int fRaiseSync, unsigned int fInputEvent) Line 1274    C++
    Windows.UI.Xaml.dll!CInputManager::ReleasePointerCapture(IDependencyObject * pObject, CPointer * pPointer) Line 1100    C++
    Windows.UI.Xaml.dll!CInputManager::CleanPointerElementObject(CDependencyObject * pObject) Line 260  C++
    Windows.UI.Xaml.dll!CDependencyObject::LeaveImpl(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 1562 C++
    Windows.UI.Xaml.dll!CUIElement::LeaveImpl(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 1078    C++
    Windows.UI.Xaml.dll!CFrameworkElement::LeaveImpl(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 2334 C++
    Windows.UI.Xaml.dll!CDependencyObject::Leave(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 1427 C++
    Windows.UI.Xaml.dll!DependencyObject_Leave(CDependencyObject * pObject, CDependencyObject * pNamescopeOwner, unsigned int bSkipNameRegistration, unsigned int bCoercedIsEnabled, unsigned int bVisualTreeBeingReset) Line 1118  C++
    Windows.UI.Xaml.dll!DirectUI::DependencyObject::LeaveImpl(CDependencyObject * nativeDO, CDependencyObject * nativeNamescopeOwner, unsigned int bLive, unsigned int bSkipNameRegistration, unsigned int bCoercedIsEnabled, unsigned int bVisualTreeBeingReset) Line 3505 C++
    Windows.UI.Xaml.dll!CUIElement::LeaveImpl(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 1096    C++
    Windows.UI.Xaml.dll!CFrameworkElement::LeaveImpl(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 2334 C++
    Windows.UI.Xaml.dll!CDependencyObject::Leave(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 1427 C++
    Windows.UI.Xaml.dll!CDOCollection::ChildLeave(CDependencyObject * pChild, CDependencyObject * pNamescopeOwner, LeaveParams params, unsigned int fCanProcessEnterLeave) Line 458 C++
    Windows.UI.Xaml.dll!CDOCollection::LeaveImpl(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 276  C++
    Windows.UI.Xaml.dll!CUIElementCollection::LeaveImpl(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 5266  C++
    Windows.UI.Xaml.dll!CDependencyObject::Leave(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 1427 C++
    Windows.UI.Xaml.dll!CUIElement::LeaveImpl(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 1083    C++
    Windows.UI.Xaml.dll!CFrameworkElement::LeaveImpl(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 2334 C++
    Windows.UI.Xaml.dll!CControl::LeaveImpl(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 428   C++
    Windows.UI.Xaml.dll!CContentControl::LeaveImpl(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 278    C++
    Windows.UI.Xaml.dll!CDependencyObject::Leave(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 1427 C++
    Windows.UI.Xaml.dll!CDOCollection::ChildLeave(CDependencyObject * pChild, CDependencyObject * pNamescopeOwner, LeaveParams params, unsigned int fCanProcessEnterLeave) Line 458 C++
    Windows.UI.Xaml.dll!CDOCollection::LeaveImpl(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 276  C++
    Windows.UI.Xaml.dll!CUIElementCollection::LeaveImpl(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 5266  C++
    Windows.UI.Xaml.dll!CDependencyObject::Leave(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 1427 C++
    Windows.UI.Xaml.dll!CUIElement::LeaveImpl(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 1083    C++
    Windows.UI.Xaml.dll!CFrameworkElement::LeaveImpl(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 2334 C++
    Windows.UI.Xaml.dll!CDependencyObject::Leave(CDependencyObject * pNamescopeOwner, LeaveParams params) Line 1399 C++
    Windows.UI.Xaml.dll!CDOCollection::ChildLeave(CDependencyObject * pChild, CDependencyObject * pNamescopeOwner, LeaveParams params, unsigned int fCanProcessEnterLeave) Line 458 C++
    Windows.UI.Xaml.dll!CDOCollection::Neat(int bBreak) Line 866    C++
    Windows.UI.Xaml.dll!CCollection::Destroy() Line 39  C++
    Windows.UI.Xaml.dll!CCollection::Clear() Line 493   C++
    Windows.UI.Xaml.dll!CUIElementCollection::RemoveAllElements(unsigned int bTryUnloadingElements) Line 5408   C++
    Windows.UI.Xaml.dll!CUIElement::~CUIElement() Line 329  C++
    Windows.UI.Xaml.dll!CFrameworkElement::~CFrameworkElement() Line 138    C++
    Windows.UI.Xaml.dll!CItemsPresenter::`scalar deleting destructor'(unsigned int) C++
    Windows.UI.Xaml.dll!CDependencyObject::Release()    C++
    Windows.UI.Xaml.dll!CDOCollection::Neat(int bBreak) Line 846    C++
    Windows.UI.Xaml.dll!CCollection::Destroy() Line 39  C++
    Windows.UI.Xaml.dll!CCollection::Clear() Line 493   C++
    Windows.UI.Xaml.dll!CUIElementCollection::RemoveAllElements(unsigned int bTryUnloadingElements) Line 5408   C++
    Windows.UI.Xaml.dll!CUIElement::~CUIElement() Line 329  C++
    Windows.UI.Xaml.dll!CFrameworkElement::~CFrameworkElement() Line 138    C++
    Windows.UI.Xaml.dll!CControl::~CControl() Line 306  C++
    Windows.UI.Xaml.dll!CItemsControl::~CItemsControl() Line 51 C++
    Windows.UI.Xaml.dll!CItemsControl::`scalar deleting destructor'(unsigned int)   C++
    Windows.UI.Xaml.dll!CDependencyObject::Release()    C++
    Windows.UI.Xaml.dll!ReleaseM(void * hObject, unsigned int nType) Line 4391  C++
    Windows.UI.Xaml.dll!DirectUI::DependencyObject::DisconnectFrameworkPeerCore() Line 276  C++
    Windows.UI.Xaml.dll!DirectUI::DependencyObject::OnFinalRelease() Line 197   C++
    Windows.UI.Xaml.dll!ctl::ComBase::ReleaseImpl() Line 152    C++
    Windows.UI.Xaml.dll!DirectUI::UIAffinityReleaseQueue::Cleanup(DirectUI::DXamlCore * pCore) Line 77  C++
    Windows.UI.Xaml.dll!AgCoreCallbacks::PerFrameCallback() Line 1236   C++
    Windows.UI.Xaml.dll!CCoreServices::Tick(unsigned int tickForDrawing) Line 6718  C++
    Windows.UI.Xaml.dll!CCoreServices::NWDrawTree(HWWalk * pHWWalk, ICoreRenderTarget * pIRenderTarget, VisualTree * pVisualTree, unsigned int uBackgroundColor, unsigned int forceRedraw, unsigned int needsToReleaseHardwareResources, XRECT_WH * prcDirtyRect) Line 10779    C++
    Windows.UI.Xaml.dll!CCoreServices::NWDrawMainTree(ICoreRenderTarget * pIRenderTarget, unsigned int fForceRedraw, unsigned int needsToReleaseHardwareResources, XRECT_WH * prcDirtyRect) Line 10697  C++
    Windows.UI.Xaml.dll!CWindowRenderTarget::Draw(ICoreServices * pCore, unsigned int fForceRedraw, XRECT_WH * prcDirtyRect) 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, unsigned int wParam, unsigned int lParam, long) Line 653   C++
    Windows.UI.Xaml.dll!CXcpDispatcher::WindowProc(HWND__ * hwnd, unsigned int msg, unsigned int wParam, long lParam) Line 401  C++
    user32.dll!_InternalCallWinProc@20()   Unknown
    user32.dll!_UserCallWinProcCheckWow@36()   Unknown
    user32.dll!_DispatchMessageWorker@8()  Unknown
    user32.dll!_DispatchMessageW@4()   Unknown
    Windows.UI.dll!Windows::UI::Core::CDispatcher::ProcessMessage(int bDrainQueue, int * pbAnyMessages) Line 116    C++
    Windows.UI.dll!Windows::UI::Core::CDispatcher::ProcessEvents(Windows::UI::Core::CoreProcessEventsOption options) Line 184   C++
    Windows.UI.Xaml.dll!CJupiterWindow::RunCoreWindowMessageLoop() Line 416 C++
    Windows.UI.Xaml.dll!CJupiterControl::RunMessageLoop() Line 714  C++
    Windows.UI.Xaml.dll!DirectUI::DXamlCore::RunMessageLoop() Line 2538 C++
    Windows.UI.Xaml.dll!DirectUI::FrameworkView::Run() Line 91  C++
    twinapi.dll!`Windows::ApplicationModel::Core::CoreApplicationViewAgileContainer::RuntimeClassInitialize'::`55'::<lambda_A2234BA2CCD64E2C>::operator()(void * pv) Line 560   C++
    twinapi.dll!`Windows::ApplicationModel::Core::CoreApplicationViewAgileContainer::RuntimeClassInitialize'::`55'::<lambda_A2234BA2CCD64E2C>::<helper_func>(void * pv) Line 613    C++
    SHCore.dll!_SHWaitForThreadWithWakeMask@12()   Unknown
    kernel32.dll!@BaseThreadInitThunk@12() Unknown
    ntdll.dll!___RtlUserThreadStart@8()    Unknown
    ntdll.dll!__RtlUserThreadStart@8() Unknown
Coordinator
May 22, 2013 at 7:07 AM
Edited May 22, 2013 at 6:14 PM
Hard to tell without having seen your code.
May 22, 2013 at 10:35 AM
Would it be possible to give you access to the codebase and have a Skype meeting? It's a rather large system and pulling out the necessary functionality is difficult. But it's kind of a closed part that's not too big. My Skype nick is andreas-balzer
Coordinator
May 22, 2013 at 6:12 PM
Sorry, I won't do that. Please try to cut it down to a manageable project and send it to fischer.clemens at gmail dot com.