<?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 Layers from .mmpk files crash WPF app in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/layers-from-mmpk-files-crash-wpf-app/m-p/1107656#M10531</link>
    <description>&lt;P&gt;Hi, we have WPF (.NET Framework 4.8) with Esri.ArcGISRuntime, Esri.ArcGISRuntime.runtimes.win, and Esri.ArcGISRuntime.WPF (all 100.11 versions). We are loading layers from .mmpk files and displaying them on a map. When the app is published in debug mode, all works fine. When the app is published in release mode, it crashes within a few seconds of either panning the map or zooming in and out. The more graphics a layer has, the quicker the app crashes. When .vtpk files (with exact same information) are used instead of&amp;nbsp; the .mmpk files, the app works fine.&lt;/P&gt;&lt;P&gt;A dump file generated by the crash has this information indicating that the problem happens in the runtimecore.dll:&lt;/P&gt;&lt;P&gt;CONTEXT: (.ecxr)&lt;BR /&gt;eax=0000000c ebx=00000000 ecx=0ad80d70 edx=0ad80d70 esi=0000000c edi=0ad80d70&lt;BR /&gt;eip=11f1cd86 esp=2fa8d188 ebp=2fa8d18c iopl=0 nv up ei pl nz na po nc&lt;BR /&gt;cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010202&lt;BR /&gt;runtimecore!SkBaseDevice::SkBaseDevice+0x16:&lt;BR /&gt;11f1cd86 8b0e mov ecx,dword ptr [esi] ds:002b:0000000c=????????&lt;BR /&gt;Resetting default scope&lt;/P&gt;&lt;P&gt;EXCEPTION_RECORD: (.exr -1)&lt;BR /&gt;ExceptionAddress: 11f1cd86 (runtimecore!SkBaseDevice::SkBaseDevice+0x00000016)&lt;BR /&gt;ExceptionCode: c0000005 (Access violation)&lt;BR /&gt;ExceptionFlags: 00000000&lt;BR /&gt;NumberParameters: 2&lt;BR /&gt;Parameter[0]: 00000000&lt;BR /&gt;Parameter[1]: 0000000c&lt;BR /&gt;Attempt to read from address 0000000c&lt;/P&gt;&lt;P&gt;PROCESS_NAME: MyProgram.exe&lt;/P&gt;&lt;P&gt;READ_ADDRESS: 0000000c&lt;/P&gt;&lt;P&gt;ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.&lt;/P&gt;&lt;P&gt;EXCEPTION_CODE_STR: c0000005&lt;/P&gt;&lt;P&gt;EXCEPTION_PARAMETER1: 00000000&lt;/P&gt;&lt;P&gt;EXCEPTION_PARAMETER2: 0000000c&lt;/P&gt;&lt;P&gt;STACK_TEXT:&lt;BR /&gt;2fa8d18c 11f2ac12 0000000c 2fa8f4ac 42898de6 runtimecore!SkBaseDevice::SkBaseDevice+0x16&lt;BR /&gt;2fa8d1c4 11eecdbb 00000000 2fa8f4ac 00000000 runtimecore!SkBitmapDevice::SkBitmapDevice+0x42&lt;BR /&gt;2fa8d220 1115ae36 00000000 00000000 00000000 runtimecore!SkCanvas::SkCanvas+0x13b&lt;BR /&gt;2fa8f4fc 11156eeb 00000000 2fa8f550 2cc22660 runtimecore!esri::Map_renderer::Canvas_layer::Render_properties::Display_list_collection::set_display_list+0x216&lt;BR /&gt;2fa8f584 11159426 2d88dc7c 4289aa26 ffffffff runtimecore!esri::Map_renderer::Canvas_drawable::draw_layer_+0x2ab&lt;BR /&gt;2fa8f604 100936a2 112f0f19 4289aa7a 2d542278 runtimecore!&amp;lt;lambda_63269ec17a9a1afc93e0e5efc624ae6d&amp;gt;::operator()+0xc6&lt;BR /&gt;2fa8f608 112f0f19 4289aa7a 2d542278 2d542288 runtimecore!std::_Func_impl_no_alloc&amp;lt;&amp;lt;lambda_fbfe540b7589c2b09cbd9ad0d74b0839&amp;gt;,unsigned char&amp;gt;::_Do_call+0x12&lt;BR /&gt;2fa8f658 112ee982 2d319a18 4289aab2 05f751d0 runtimecore!pplx::task&amp;lt;unsigned char&amp;gt;::_InitialTaskHandle&amp;lt;void,&amp;lt;lambda_63269ec17a9a1afc93e0e5efc624ae6d&amp;gt;,pplx::details::_TypeSelectorNoAsync&amp;gt;::_Init+0xd9&lt;BR /&gt;2fa8f690 10092677 4289aa8e 318b4130 2fa8f6d8 runtimecore!pplx::details::_PPLTaskHandle&amp;lt;unsigned char,pplx::task&amp;lt;unsigned char&amp;gt;::_InitialTaskHandle&amp;lt;void,&amp;lt;lambda_63269ec17a9a1afc93e0e5efc624ae6d&amp;gt;,pplx::details::_TypeSelectorNoAsync&amp;gt;,pplx::details::_TaskProcHandle&amp;gt;::invoke+0x92&lt;BR /&gt;2fa8f6ac 11e20e15 2d319a18 4289aac6 05f751c0 runtimecore!pplx::details::_TaskProcHandle::_RunChoreBridge+0x37&lt;BR /&gt;2fa8f6e4 11e20d1a 318b4130 4289ab3e 11e241d0 runtimecore!esri::common::concurrency::Core_scheduler::invoke_+0x35&lt;BR /&gt;2fa8f71c 11e2420d 318b4130 4289ab66 0b0107c8 runtimecore!esri::common::concurrency::Core_scheduler::bridge_proc_+0x8a&lt;BR /&gt;2fa8f744 77d16cd4 2fa8f858 318083b8 0b0107c8 runtimecore!esri::common::concurrency::`anonymous namespace'::Scheduler_param::work_callback+0x3d&lt;BR /&gt;2fa8f778 77d15d72 2fa8f858 0b010840 d6fa7cdb ntdll!TppWorkpExecuteCallback+0x144&lt;BR /&gt;2fa8f92c 77bffa29 05b06e88 77bffa10 2fa8f998 ntdll!TppWorkerThread+0x472&lt;BR /&gt;2fa8f93c 77d47a9e 05b06e88 d6fa7c6f 00000000 kernel32!BaseThreadInitThunk+0x19&lt;BR /&gt;2fa8f998 77d47a6e ffffffff 77d68a66 00000000 ntdll!__RtlUserThreadStart+0x2f&lt;BR /&gt;2fa8f9a8 00000000 77d15900 05b06e88 00000000 ntdll!_RtlUserThreadStart+0x1b&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SYMBOL_NAME: runtimecore!SkBaseDevice::SkBaseDevice+16&lt;/P&gt;&lt;P&gt;MODULE_NAME: runtimecore&lt;/P&gt;&lt;P&gt;IMAGE_NAME: runtimecore.dll&lt;/P&gt;&lt;P&gt;STACK_COMMAND: ~55s ; .ecxr ; kb&lt;/P&gt;&lt;P&gt;FAILURE_BUCKET_ID: NULL_CLASS_PTR_READ_c0000005_runtimecore.dll!SkBaseDevice::SkBaseDevice&lt;/P&gt;&lt;P&gt;OS_VERSION: 10.0.19041.1&lt;/P&gt;&lt;P&gt;BUILDLAB_STR: vb_release&lt;/P&gt;&lt;P&gt;OSPLATFORM_TYPE: x86&lt;/P&gt;&lt;P&gt;OSNAME: Windows 10&lt;/P&gt;&lt;P&gt;IMAGE_VERSION: 100.11.0.3114&lt;/P&gt;&lt;P&gt;Can you tell if this is a bug or a problem with how we laod layers?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Oct 2021 19:41:07 GMT</pubDate>
    <dc:creator>TomBara</dc:creator>
    <dc:date>2021-10-14T19:41:07Z</dc:date>
    <item>
      <title>Layers from .mmpk files crash WPF app</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/layers-from-mmpk-files-crash-wpf-app/m-p/1107656#M10531</link>
      <description>&lt;P&gt;Hi, we have WPF (.NET Framework 4.8) with Esri.ArcGISRuntime, Esri.ArcGISRuntime.runtimes.win, and Esri.ArcGISRuntime.WPF (all 100.11 versions). We are loading layers from .mmpk files and displaying them on a map. When the app is published in debug mode, all works fine. When the app is published in release mode, it crashes within a few seconds of either panning the map or zooming in and out. The more graphics a layer has, the quicker the app crashes. When .vtpk files (with exact same information) are used instead of&amp;nbsp; the .mmpk files, the app works fine.&lt;/P&gt;&lt;P&gt;A dump file generated by the crash has this information indicating that the problem happens in the runtimecore.dll:&lt;/P&gt;&lt;P&gt;CONTEXT: (.ecxr)&lt;BR /&gt;eax=0000000c ebx=00000000 ecx=0ad80d70 edx=0ad80d70 esi=0000000c edi=0ad80d70&lt;BR /&gt;eip=11f1cd86 esp=2fa8d188 ebp=2fa8d18c iopl=0 nv up ei pl nz na po nc&lt;BR /&gt;cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010202&lt;BR /&gt;runtimecore!SkBaseDevice::SkBaseDevice+0x16:&lt;BR /&gt;11f1cd86 8b0e mov ecx,dword ptr [esi] ds:002b:0000000c=????????&lt;BR /&gt;Resetting default scope&lt;/P&gt;&lt;P&gt;EXCEPTION_RECORD: (.exr -1)&lt;BR /&gt;ExceptionAddress: 11f1cd86 (runtimecore!SkBaseDevice::SkBaseDevice+0x00000016)&lt;BR /&gt;ExceptionCode: c0000005 (Access violation)&lt;BR /&gt;ExceptionFlags: 00000000&lt;BR /&gt;NumberParameters: 2&lt;BR /&gt;Parameter[0]: 00000000&lt;BR /&gt;Parameter[1]: 0000000c&lt;BR /&gt;Attempt to read from address 0000000c&lt;/P&gt;&lt;P&gt;PROCESS_NAME: MyProgram.exe&lt;/P&gt;&lt;P&gt;READ_ADDRESS: 0000000c&lt;/P&gt;&lt;P&gt;ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.&lt;/P&gt;&lt;P&gt;EXCEPTION_CODE_STR: c0000005&lt;/P&gt;&lt;P&gt;EXCEPTION_PARAMETER1: 00000000&lt;/P&gt;&lt;P&gt;EXCEPTION_PARAMETER2: 0000000c&lt;/P&gt;&lt;P&gt;STACK_TEXT:&lt;BR /&gt;2fa8d18c 11f2ac12 0000000c 2fa8f4ac 42898de6 runtimecore!SkBaseDevice::SkBaseDevice+0x16&lt;BR /&gt;2fa8d1c4 11eecdbb 00000000 2fa8f4ac 00000000 runtimecore!SkBitmapDevice::SkBitmapDevice+0x42&lt;BR /&gt;2fa8d220 1115ae36 00000000 00000000 00000000 runtimecore!SkCanvas::SkCanvas+0x13b&lt;BR /&gt;2fa8f4fc 11156eeb 00000000 2fa8f550 2cc22660 runtimecore!esri::Map_renderer::Canvas_layer::Render_properties::Display_list_collection::set_display_list+0x216&lt;BR /&gt;2fa8f584 11159426 2d88dc7c 4289aa26 ffffffff runtimecore!esri::Map_renderer::Canvas_drawable::draw_layer_+0x2ab&lt;BR /&gt;2fa8f604 100936a2 112f0f19 4289aa7a 2d542278 runtimecore!&amp;lt;lambda_63269ec17a9a1afc93e0e5efc624ae6d&amp;gt;::operator()+0xc6&lt;BR /&gt;2fa8f608 112f0f19 4289aa7a 2d542278 2d542288 runtimecore!std::_Func_impl_no_alloc&amp;lt;&amp;lt;lambda_fbfe540b7589c2b09cbd9ad0d74b0839&amp;gt;,unsigned char&amp;gt;::_Do_call+0x12&lt;BR /&gt;2fa8f658 112ee982 2d319a18 4289aab2 05f751d0 runtimecore!pplx::task&amp;lt;unsigned char&amp;gt;::_InitialTaskHandle&amp;lt;void,&amp;lt;lambda_63269ec17a9a1afc93e0e5efc624ae6d&amp;gt;,pplx::details::_TypeSelectorNoAsync&amp;gt;::_Init+0xd9&lt;BR /&gt;2fa8f690 10092677 4289aa8e 318b4130 2fa8f6d8 runtimecore!pplx::details::_PPLTaskHandle&amp;lt;unsigned char,pplx::task&amp;lt;unsigned char&amp;gt;::_InitialTaskHandle&amp;lt;void,&amp;lt;lambda_63269ec17a9a1afc93e0e5efc624ae6d&amp;gt;,pplx::details::_TypeSelectorNoAsync&amp;gt;,pplx::details::_TaskProcHandle&amp;gt;::invoke+0x92&lt;BR /&gt;2fa8f6ac 11e20e15 2d319a18 4289aac6 05f751c0 runtimecore!pplx::details::_TaskProcHandle::_RunChoreBridge+0x37&lt;BR /&gt;2fa8f6e4 11e20d1a 318b4130 4289ab3e 11e241d0 runtimecore!esri::common::concurrency::Core_scheduler::invoke_+0x35&lt;BR /&gt;2fa8f71c 11e2420d 318b4130 4289ab66 0b0107c8 runtimecore!esri::common::concurrency::Core_scheduler::bridge_proc_+0x8a&lt;BR /&gt;2fa8f744 77d16cd4 2fa8f858 318083b8 0b0107c8 runtimecore!esri::common::concurrency::`anonymous namespace'::Scheduler_param::work_callback+0x3d&lt;BR /&gt;2fa8f778 77d15d72 2fa8f858 0b010840 d6fa7cdb ntdll!TppWorkpExecuteCallback+0x144&lt;BR /&gt;2fa8f92c 77bffa29 05b06e88 77bffa10 2fa8f998 ntdll!TppWorkerThread+0x472&lt;BR /&gt;2fa8f93c 77d47a9e 05b06e88 d6fa7c6f 00000000 kernel32!BaseThreadInitThunk+0x19&lt;BR /&gt;2fa8f998 77d47a6e ffffffff 77d68a66 00000000 ntdll!__RtlUserThreadStart+0x2f&lt;BR /&gt;2fa8f9a8 00000000 77d15900 05b06e88 00000000 ntdll!_RtlUserThreadStart+0x1b&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SYMBOL_NAME: runtimecore!SkBaseDevice::SkBaseDevice+16&lt;/P&gt;&lt;P&gt;MODULE_NAME: runtimecore&lt;/P&gt;&lt;P&gt;IMAGE_NAME: runtimecore.dll&lt;/P&gt;&lt;P&gt;STACK_COMMAND: ~55s ; .ecxr ; kb&lt;/P&gt;&lt;P&gt;FAILURE_BUCKET_ID: NULL_CLASS_PTR_READ_c0000005_runtimecore.dll!SkBaseDevice::SkBaseDevice&lt;/P&gt;&lt;P&gt;OS_VERSION: 10.0.19041.1&lt;/P&gt;&lt;P&gt;BUILDLAB_STR: vb_release&lt;/P&gt;&lt;P&gt;OSPLATFORM_TYPE: x86&lt;/P&gt;&lt;P&gt;OSNAME: Windows 10&lt;/P&gt;&lt;P&gt;IMAGE_VERSION: 100.11.0.3114&lt;/P&gt;&lt;P&gt;Can you tell if this is a bug or a problem with how we laod layers?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 19:41:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/layers-from-mmpk-files-crash-wpf-app/m-p/1107656#M10531</guid>
      <dc:creator>TomBara</dc:creator>
      <dc:date>2021-10-14T19:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Layers from .mmpk files crash WPF app</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/layers-from-mmpk-files-crash-wpf-app/m-p/1109368#M10545</link>
      <description>&lt;P&gt;Could you share the mobile map package, it could help with figuring out the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 18:20:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/layers-from-mmpk-files-crash-wpf-app/m-p/1109368#M10545</guid>
      <dc:creator>MarkBockenhauer</dc:creator>
      <dc:date>2021-10-20T18:20:17Z</dc:date>
    </item>
  </channel>
</rss>

