VeronikaAveron

Crash with duplicated monitor modus

Discussion created by VeronikaAveron on Mar 22, 2017
Latest reply on Nov 6, 2017 by WMELEE

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

Outcomes