Crash with duplicated monitor modus

1023
4
03-22-2017 05:08 AM
VeronikaAfanasyeva
New Contributor

Hello,

Our app crashes, when we use two monitors, start the app and then set the monitor modus with Window+P key combination on "Duplicate".

We could reproduce it with a minimal WPF Application with one Window and the following code in MainWindow.xaml. We tested it with Esri SDK for .NET 10.2.5, 10.2.6 and 10.2.7. And we used .NET Framework 4.6.1 and 4.6.2.

There is no other code. (Unfortunately the solution of this minimal app is 166MB, which makes it too heavy to be attached here):

<Window x:Class="MonitorCrashReproduction.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
    <esri:MapView>
        <esri:Map>
            <esri:WmtsLayer ServiceUri="https://services.arcgisonline.com/arcgis/rest/services/Canvas/World_Dark_Gray_Base/MapServer/WMTS" />
        </esri:Map>
    </esri:MapView>
</Window>

 

The app crashes with: 

System.Runtime.InteropServices.COMException was unhandled
ErrorCode=-2003303418
HResult=-2003303418
Message=UCEERR_RENDERTHREADFAILURE (Ausnahme von HRESULT: 0x88980406)
Source=PresentationCore

 

For this render thread failure we have already tried all the recommendations from here: WPF Render Thread Failures – The DSUI Team Blog. Nothing worked, the app still crashes.

There is no crash without a map.

I hope the description is good enough.

Best regards,

Veronika

0 Kudos
4 Replies
dotMorten_esri
Esri Frequent Contributor

Are you also seeing this with v100.0 ?

0 Kudos
VeronikaAfanasyeva
New Contributor

We didn't try it with v.100.0, because we use WMS and WMTS layers in our project. 

0 Kudos
dotMorten_esri
Esri Frequent Contributor

The reason I wanted to try is that if it works or not in v100, will help us better understand what's going on, since there's been a lot of changes in this area in v100.x  (any tile or dynamic layer would do).

WMTS will be available in 100.1, WMS is currently still on track for 100.2

0 Kudos
EdL
by
New Contributor II

Our dev team is also expriencing this same issue.

However, the problem root we trace to may or may not be an issue with ESRI's library. So this is just the findings that we got.

Hardware: Laptop, HP Elitebook 840 2015 connected to 2 external monitor via displayport 1.2 and VGA ports (Extended display mode)

  1. ESRI runtime: 10.2.7 & 100.1

We have 2 simple .net solutions to display a map only with any basemap.

Test 1

1) On startup, the map window is moved to the VGA monitor

2) The VGA port is unplugged from the monitor

3) The map window redraws and is displayed on the main display (laptop)

4) The VGA port is plugged back in and the map window is redrawn again but remains in the main display

No exception is encountered.

Test 2

1) The VS solution is restarted and on map window loaded, it is moved to the displayport monitor

2) The displayport is unplugged

3) The exception is encountered

Update (new findings)

Failure conditions:

  1. On windows, the main display must be set to the external monitor. On application startup, the map should open on the main display
  2. It does not matter what connection interface is used to connect from machine to monitor as long as when unplugging, the map under goes a change in size/resolution (eg. 2 screens with different resolutions).

Test 1

  1. Using VGA interface and external monitor as main display, run either sample solutions
  2. After loading, disconnect VGA cable
  3. Exception should appear

Test 2

  1. Using display port interface and external monitor as main display, run either sample solutions
  2. After loading, disconnect display port cable
  3. Exception should appear

Attached are the sample solutions used.

0 Kudos