<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Crash with duplicated monitor modus in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/crash-with-duplicated-monitor-modus/m-p/26472#M289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our dev team is also expriencing this same issue.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hardware: Laptop, HP Elitebook 840 2015 connected to 2 external monitor via displayport 1.2 and VGA ports (Extended display mode)&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;ESRI runtime: 10.2.7 &amp;amp; 100.1&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have 2 simple .net solutions to display a map only with any basemap.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Test 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;1) On startup, the map window is moved to the VGA monitor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;2) The VGA port is unplugged from the monitor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;3) The map window redraws and is displayed on the main display (laptop)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;4) The VGA port is plugged back in and the map window is redrawn again but remains in the main display&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;No exception is encountered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Test 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;1) The VS solution is restarted and on map window loaded, it is moved to the displayport monitor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;2) The displayport is unplugged&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;3) The exception is encountered&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update (new findings)&lt;/P&gt;&lt;P&gt;Failure conditions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;On windows, the main display must be set to the external monitor. On application startup, the map should open on the main display&lt;/LI&gt;&lt;LI&gt;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).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test 1&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Using VGA interface and external monitor as main display, run either sample solutions&lt;/LI&gt;&lt;LI&gt;After loading, disconnect VGA cable&lt;/LI&gt;&lt;LI&gt;Exception should appear&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test 2&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Using display port interface and external monitor as main display, run either sample solutions&lt;/LI&gt;&lt;LI&gt;After loading, disconnect display port cable&lt;/LI&gt;&lt;LI&gt;Exception should appear&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached are the sample solutions used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Nov 2017 02:08:53 GMT</pubDate>
    <dc:creator>EdL</dc:creator>
    <dc:date>2017-11-07T02:08:53Z</dc:date>
    <item>
      <title>Crash with duplicated monitor modus</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/crash-with-duplicated-monitor-modus/m-p/26468#M285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our&amp;nbsp;app crashes, when we use two monitors,&amp;nbsp;start the app and then set the monitor modus with Window+P key combination on "Duplicate".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We could reproduce it with a minimal WPF Application with one Window and the following code in MainWindow.xaml. We tested&amp;nbsp;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no other code. (Unfortunately the solution of this minimal app is 166MB, which makes it too heavy to be attached here):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;lt;Window x:Class="MonitorCrashReproduction.MainWindow"&lt;/SPAN&gt;
&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlns="&lt;A href="http://schemas.microsoft.com/winfx/2006/xaml/presentation" style="color: #954f72; text-decoration: underline;" rel="nofollow noopener noreferrer" target="_blank"&gt;http://schemas.microsoft.com/winfx/2006/xaml/presentation&lt;/A&gt;"&lt;/SPAN&gt;
&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlns:x="&lt;A href="http://schemas.microsoft.com/winfx/2006/xaml" style="color: #954f72; text-decoration: underline;" rel="nofollow noopener noreferrer" target="_blank"&gt;http://schemas.microsoft.com/winfx/2006/xaml&lt;/A&gt;"&lt;/SPAN&gt;
&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlns:esri="&lt;A href="http://schemas.esri.com/arcgis/runtime/2013" style="color: #954f72; text-decoration: underline;" rel="nofollow noopener noreferrer" target="_blank"&gt;http://schemas.esri.com/arcgis/runtime/2013&lt;/A&gt;"&amp;gt;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;esri:MapView&amp;gt;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;esri:Map&amp;gt;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;esri:WmtsLayer&amp;nbsp;ServiceUri="&lt;A href="https://services.arcgisonline.com/arcgis/rest/services/Canvas/World_Dark_Gray_Base/MapServer/WMTS" style="color: #954f72; text-decoration: underline;" rel="nofollow noopener noreferrer" target="_blank"&gt;https://services.arcgisonline.com/arcgis/rest/services/Canvas/World_Dark_Gray_Base/MapServer/WMTS&lt;/A&gt;" /&amp;gt;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/esri:Map&amp;gt;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/esri:MapView&amp;gt;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 10pt; color: black;"&gt;&amp;lt;/Window&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The app crashes with:&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;System.Runtime.InteropServices.COMException was unhandled&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 14px;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;ErrorCode=-2003303418&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 14px;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;HResult=-2003303418&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 14px;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;Message=UCEERR_RENDERTHREADFAILURE (Ausnahme von HRESULT: 0x88980406)&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 14px;" /&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;Source=PresentationCore
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 15px;"&gt;For this render thread failure we have already tried all the recommendations from here:&amp;nbsp;&lt;A class="link-titled" href="https://blogs.msdn.microsoft.com/dsui_team/2013/11/18/wpf-render-thread-failures/" title="https://blogs.msdn.microsoft.com/dsui_team/2013/11/18/wpf-render-thread-failures/" rel="nofollow noopener noreferrer" target="_blank"&gt;WPF Render Thread Failures – The DSUI Team Blog&lt;/A&gt;. Nothing worked, the app still crashes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no crash without a map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the description is good enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Veronika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:04:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/crash-with-duplicated-monitor-modus/m-p/26468#M285</guid>
      <dc:creator>VeronikaAfanasyeva</dc:creator>
      <dc:date>2021-12-10T21:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Crash with duplicated monitor modus</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/crash-with-duplicated-monitor-modus/m-p/26469#M286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you also seeing this with v100.0 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 22:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/crash-with-duplicated-monitor-modus/m-p/26469#M286</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2017-03-28T22:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Crash with duplicated monitor modus</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/crash-with-duplicated-monitor-modus/m-p/26470#M287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We didn't try it with v.100.0, because we use WMS and WMTS layers in our project.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 14:31:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/crash-with-duplicated-monitor-modus/m-p/26470#M287</guid>
      <dc:creator>VeronikaAfanasyeva</dc:creator>
      <dc:date>2017-03-29T14:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Crash with duplicated monitor modus</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/crash-with-duplicated-monitor-modus/m-p/26471#M288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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&amp;nbsp; (any tile or dynamic layer would do).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WMTS will be available in 100.1, WMS is currently still on track for 100.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 19:40:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/crash-with-duplicated-monitor-modus/m-p/26471#M288</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2017-03-30T19:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Crash with duplicated monitor modus</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/crash-with-duplicated-monitor-modus/m-p/26472#M289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our dev team is also expriencing this same issue.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hardware: Laptop, HP Elitebook 840 2015 connected to 2 external monitor via displayport 1.2 and VGA ports (Extended display mode)&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;ESRI runtime: 10.2.7 &amp;amp; 100.1&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have 2 simple .net solutions to display a map only with any basemap.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Test 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;1) On startup, the map window is moved to the VGA monitor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;2) The VGA port is unplugged from the monitor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;3) The map window redraws and is displayed on the main display (laptop)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;4) The VGA port is plugged back in and the map window is redrawn again but remains in the main display&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;No exception is encountered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Test 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;1) The VS solution is restarted and on map window loaded, it is moved to the displayport monitor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;2) The displayport is unplugged&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;3) The exception is encountered&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update (new findings)&lt;/P&gt;&lt;P&gt;Failure conditions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;On windows, the main display must be set to the external monitor. On application startup, the map should open on the main display&lt;/LI&gt;&lt;LI&gt;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).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test 1&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Using VGA interface and external monitor as main display, run either sample solutions&lt;/LI&gt;&lt;LI&gt;After loading, disconnect VGA cable&lt;/LI&gt;&lt;LI&gt;Exception should appear&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test 2&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Using display port interface and external monitor as main display, run either sample solutions&lt;/LI&gt;&lt;LI&gt;After loading, disconnect display port cable&lt;/LI&gt;&lt;LI&gt;Exception should appear&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached are the sample solutions used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 02:08:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/crash-with-duplicated-monitor-modus/m-p/26472#M289</guid>
      <dc:creator>EdL</dc:creator>
      <dc:date>2017-11-07T02:08:53Z</dc:date>
    </item>
  </channel>
</rss>

