Select to view content in your preferred language

WPF Map crash when layers are partially transparent

819
6
02-18-2011 05:42 AM
JayRaja
Emerging Contributor
Hi,

We seem to get repeatable errors when zooming in and out of the map rapidly. We use an ArcGISTiledMapService layer as our background but when the opacity is changed from the default we seem to get unrecoverable errors on the WPF render thread (partial stack trace below). Also, with opacity set to 1.0 we get similar issues if the user rapidly clicks through the buttons in the navigation widget (reset north and zoom to full extent). I notice that in the online SDK, the map can become unresponsive when doing this also. Are people aware of this and if so are there any steps we can take to alleviate or prevent this?

System.InvalidOperationException was unhandled
  Message="An unspecified error occurred on the render thread."
  Source="PresentationCore"
  StackTrace:
       at System.Windows.Media.MediaContext.NotifyPartitionIsZombie(Int32 failureCode)
       at System.Windows.Media.MediaContext.NotifyChannelMessage()
       at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
0 Kudos
6 Replies
JenniferNery
Esri Regular Contributor
Which SDK sample are you referring to? Thishttp://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LayerList?

Can you share some code and/or steps that will help us reproduce the issue? Also, what version of the API are you using?
0 Kudos
JayRaja
Emerging Contributor
Hi,

I am using this sample :
http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Navigation

I am using the .Net 3.5 assemblies of version 2.1 of the API

Which SDK sample are you referring to? Thishttp://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LayerList?

Can you share some code and/or steps that will help us reproduce the issue? Also, what version of the API are you using?
0 Kudos
DanielWalton
Frequent Contributor
I can't reproduce any problems on the online nav sample with FF, Chrome, or IE8. But sometimes I have trouble reproducing errors that other folks encounter. What browser, OS, CPU, and internet connection bandwidth do you have?
0 Kudos
JenniferNery
Esri Regular Contributor
I cannot produce the same StackTrace but I do get a crash.

Using the same sample and API assemblies for v2.1 Final with the steps you mentioned in post#1. I get NullReference exception instead from the zoom. This has been fixed for v2.2 beta. This does not look like the same error you are hitting though.
0 Kudos
JayRaja
Emerging Contributor
Hi,

We are due to release our code to production in the next few weeks. Do you have an expected release date for v2.2? v2.0 seems to have the same problem.


I cannot produce the same StackTrace but I do get a crash.

Using the same sample and API assemblies for v2.1 Final with the steps you mentioned in post#1. I get NullReference exception instead from the zoom. This has been fixed for v2.2 beta. This does not look like the same error you are hitting though.
0 Kudos
JenniferNery
Esri Regular Contributor
I can only say it is due soon without a tentative date of release because it goes from one department to another, but it will be in Beta state.
0 Kudos