{"id":60985,"date":"2023-08-30T18:18:19","date_gmt":"2023-08-30T12:48:19","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=60985"},"modified":"2023-08-30T18:24:18","modified_gmt":"2023-08-30T12:54:18","slug":"0xc0000005-setupplatform-windows-setup","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/0xc0000005-setupplatform-windows-setup\/","title":{"rendered":"SetupPlatform.exe Error 0xc0000005 During Windows Setup"},"content":{"rendered":"<p>When you install a Windows 10\/11 Feature Update, the setup process may go until 87% and close automatically with an exception error 0xc0000005 that is recorded in the setup logs. A crash dump file may also be generated.<\/p>\n<p>Setupact.log (in the Panther directory) contains these entries:<!--more--><\/p>\n<pre>Info SP BFSVC: Opening template from \\Device\\HarddiskVolume2\\$WINDOWS.~BT\\NewOS\\WINDOWS\\System32\\config\\BCD-Template.\nInfo SP BFSVC: Reopening system store.\nFatalError SP Exception handler called! Details:\nFatalError SP Exception record: 0\nFatalError SP Exception code: 0xc0000005\nFatalError SP Exception flags: 0x0\nFatalError SP Exception address: 00007FF91D4911DD\nFatalError SP Exception parameter 0: 0000000000000000\nFatalError SP Exception parameter 1: 0000000000000000\nInfo SP SEH: Attempting to log exception\nInfo MOUPG Action progress: [60%]\nInfo MOUPG Task progress: [98%]\nInfo MOUPG Overall progress: [98%]\nInfo MOUPG Mapped Global progress: [98%]\nFatalError [0x090001] PANTHR Exception (code 0xC0000005: ACCESS_VIOLATION) occurred at 0x00007FF91D4911DD in C:\\$WINDOWS.~BT\\Sources\\SetupPlatform.dll (+00000000003F11DD). Minidump attached (143379 bytes) to diagerr.xml and C:\\$WINDOWS.~BT\\Sources\\Panther\\mndC459.diagerr.mdmp.<\/pre>\n<p><strong>Minidump<\/strong><\/p>\n<p>A minidump may be generated, and you may find something like below if you debug the dump file.<\/p>\n<pre>PROCESS_NAME: SetupPlatform.exe\nREAD_ADDRESS: 0000000000000000\nERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.\nEXCEPTION_CODE_STR: c0000005\nEXCEPTION_PARAMETER1: 0000000000000000\nEXCEPTION_PARAMETER2: 0000000000000000\n\nSTACK_TEXT:\n00000057`8614b0f0 00007ff9`c220156b : 00000000`00000000 00000000`00000000 00000057`8614b1c0 0000020b`e3ff1560 : SetupPlatform!BiSpacesUpdatePhysicalDevicePath+0x2d\n00000057`8614b150 00007ff9`c2200a69 : 00000000`0000038c 00007ff9`0000002a 00007ff9`00000000 00000057`00000003 : SetupPlatform!BiUpdateEfiEntry+0x7f\n00000057`8614b1f0 00007ff9`c2200bf9 : 0000020b`e3f65640 0000020b`00000000 0000020b`e3ff1560 00000000`0000038c : SetupPlatform!BiCreateEfiEntry+0xf9\n00000057`8614b250 00007ff9`c21ff683 : 00000000`00000000 00000057`8614b310 00000000`00000290 00000057`8614b310 : SetupPlatform!BiExportBcdObjects+0x99\n00000057`8614b290 00007ff9`c23495d6 : 00000000`00000000 00000000`00000000 00000000`00000002 00000000`00000013 : SetupPlatform!BiExportStoreToEfi+0x57\n00000057`8614b2d0 00007ff9`c234902b : 00000000`00000000 00000000`00000001 00000000`0000033c 0000020b`e3f64c10 : SetupPlatform!BiImportStoreFromFile+0x18e\n00000057`8614b340 00007ff9`c23054cf : 00000000`00000000 0000020b`e3f62718 0000020b`e3f62700 0000020b`e3fd54e8 : SetupPlatform!BcdImportStoreWithFlags+0x4b\n00000057`8614b370 00007ff9`c230ddce : 00007ff9`c2509e90 0000020b`e3f89ce8 0000020b`e3fd54e8 00000000`00000001 : SetupPlatform!OSRollbackUtils::RestoreBCDDatabase+0x167\n00000057`8614ba10 00007ff9`c2309001 : 0000020b`00000200 0000020b`e3f654e8 0000020b`00000047 00007ff9`c24782f8 : SetupPlatform!OSRollbackService::CBootFilesRestoreCheckpoint::Rollback+0x1c9e\n00000057`8614bc50 00007ff9`c2309c55 : 00007ff9`c2309b4c 00007ff9`c2309b4c 00007ff9`c2309b4c 00000057`8614bde0 : SetupPlatform!OSRollbackService::CCheckpointImpressario::ExecuteRollbackSequence+0x305\n00000057`8614bd30 00007ff9`c20a34e9 : 0000020b`e3f64828 00000000`00000000 00000000`00000001 0000020b`e3f2cc88 : SetupPlatform!OSRollbackService::CSetupRollbackService::RollbackExecuteSequence+0x151\n00000057`8614bdf0 00007ff9`c204cc20 : 00007ff9`c204c77e 00000000`00000000 00007ff9`c204c77e 00000000`00000001 : SetupPlatform!CSetupPlatformRollback::Execute+0x79\n00000057`8614be80 00007ff9`c2052457 : 0000020b`e3f2cc88 00000057`00000000 00000057`8614c420 00000000`00000001 : SetupPlatform!CSetupPlatformPrivate::RollbackOfflineCommon+0x9c4\n00000057`8614bfd0 00007ff7`fae6394c : 00000000`00000001 00000000`00000000 00000000`00000001 00000000`00000001 : SetupPlatform!CSetupPlatformPrivate::Rollback+0x15a7\n00000057`8614c2d0 00007ff7`fae691a9 : 00000000`00000001 00000000`00000001 00000000`00000000 00000000`00000000 : SetupPlatform_exe!wWinMain+0x20cc\n00000057`8614f980 00007ff9`c7ef6fd4 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : SetupPlatform_exe!__wmainCRTStartup+0x1c9\n00000057`8614fa40 00007ff9`c883cf31 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0x14\n00000057`8614fa70 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21\n\nSTACK_COMMAND: ~0s; .ecxr ; kb\nSYMBOL_NAME: SetupPlatform!BiSpacesUpdatePhysicalDevicePath+2d\nMODULE_NAME: SetupPlatform\nIMAGE_NAME: SetupPlatform.dll<\/pre>\n<p><strong>Event Viewer<\/strong><\/p>\n<p>The following Event log entry may be recorded:<\/p>\n<pre>Faulting application name: SetupHost.exe, version: 10.0.19041.1138, time stamp: 0xcdb250a9\nFaulting module name: SetupPlatform.dll, version: 1.60.19041.1138, time stamp: 0xfbb9a3ac\nException code: 0xc0000005\nFault offset: 0x00000000003f114d\nFaulting process id: 0x1bb4\nFaulting application start time: 0x01d79d062c9c526c\nFaulting application path: C:\\$WINDOWS.~BT\\Sources\\SetupHost.exe\nFaulting module path: C:\\$WINDOWS.~BT\\Sources\\SetupPlatform.dll\nReport Id: e69dc087-4ef3-4a31-8917-349a0dc87008\nFaulting package full name:\nFaulting package-relative application ID:<\/pre>\n<p><strong>{Bootmgr} entry<\/strong><\/p>\n<p>When you run the <strong>bcdedit \/enum bootmgr<\/strong> command-line, the {bootmgr} may look like below. The &#8220;<strong>device<\/strong>&#8221; entry may be missing.<\/p>\n<pre>Windows Boot Manager\n--------------------\nidentifier              {bootmgr}\npath                    \\EFI\\Microsoft\\Boot\\bootmgfw.efi\ndescription             Windows Boot Manager\nlocale                  en-US\ninherit                 {globalsettings}\nflightsigning           Yes\ndefault                 {current}\nresumeobject            {b41548ef-ca44-11e9-a1e1-f8b46ab8194f}\ndisplayorder            {current}\ntoolsdisplayorder       {memdiag}\ntimeout                 30<\/pre>\n<h2>Cause<\/h2>\n<p>The SetupPlatform.dll error 0xc0000005 error\/crash\u00a0in procedure SetupPlatform!BiSpacesUpdatePhysicalDevicePath occurs when reading\/writing to the BCD occurs because of the missing &#8220;device&#8221; value in the {Bootmgr} section of the BCD.<\/p>\n<h2>Resolution<\/h2>\n<p>It&#8217;s a BCD issue. Fixing it or rebuilding it should resolve the error in most cases.<\/p>\n<p>(Create a <a href=\"https:\/\/www.winhelponline.com\/blog\/windows-iso-to-usb-dvd-tool-bootable-media\/\">USB setup disk<\/a> and have it ready, just in case.)<\/p>\n<p>Open an admin Command Prompt, and run these commands below.<\/p>\n<pre class=\"cmd\">diskpart<\/pre>\n<pre class=\"cmd\">list vol<\/pre>\n<p><em>Note down the volume number of your EFI boot partition (on GPT-based systems) or the System Reserved partition on MBR-based systems. See <a href=\"https:\/\/www.winhelponline.com\/blog\/find-if-disk-is-mbr-or-gpt\/\">How to Find if a Disk Uses MBR or GPT<\/a>)<\/em><\/p>\n<p>In this example, the disks are GPT. The EFI boot partition is always a <strong>FAT32<\/strong> partition.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-60987\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/08\/bcd-diskpart-1.png\" alt=\"diskpart list vol\" width=\"801\" height=\"316\" srcset=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/08\/bcd-diskpart-1.png 801w, https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/08\/bcd-diskpart-1-768x303.png 768w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/p>\n<p>In the above output, you can see that the EFI boot partition is Volume 1 &#8212; i.e., <code>HarddiskVolume1<\/code>.<\/p>\n<p>Let&#8217;s run the following command to backup the BCD database.<\/p>\n<pre>bcdedit \/export c:\\bcd.bak<\/pre>\n<p>Then, add the &#8220;device&#8221; value under the {bootmgr} section of the BCD database. To do so, run the following command:<\/p>\n<pre>bcdedit \/set {bootmgr} device partition=\\Device\\HarddiskVolume1<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-60988\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/08\/bcd-diskpart-2.png\" alt=\"bcdedit add device under {bootmgr}\" width=\"801\" height=\"194\" srcset=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/08\/bcd-diskpart-2.png 801w, https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/08\/bcd-diskpart-2-768x186.png 768w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/p>\n<p>The bootmgr section in BCD should now look like below:<\/p>\n<pre>\nWindows Boot Manager\n--------------------\nidentifier              {bootmgr}\n<strong>device                  partition=\\Device\\HarddiskVolume1<\/strong>      &lt;== we added this entry.\npath                    \\EFI\\Microsoft\\Boot\\bootmgfw.efi\ndescription             Windows Boot Manager\nlocale                  en-US\ninherit                 {globalsettings}\nflightsigning           Yes\ndefault                 {current}\nresumeobject            {b41548ef-ca44-11e9-a1e1-f8b46ab8194f}\ndisplayorder            {current}\ntoolsdisplayorder       {memdiag}\ntimeout                 30\n<\/pre>\n<p>Re-run Setup. In case it fails, <a href=\"https:\/\/www.winhelponline.com\/blog\/rebuild-efi-partition-bcd-boot-files\/\">rebuild the BCD<\/a> and try again.<br \/>\nThat should resolve the setupplatform.dll exception error 0xc0000005 during Windows 10\/11 Setup.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you install a Windows 10\/11 Feature Update, the setup process may go until 87% and close automatically with an exception error 0xc0000005 that is recorded in the setup logs. A crash dump file may also be generated. Setupact.log (in the Panther directory) contains these entries:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8,869],"tags":[191,951,781],"class_list":["post-60985","post","type-post","status-publish","format-standard","hentry","category-windows-10","category-windows-11","tag-error-messages","tag-logs","tag-windows-setup"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":9422,"url":"https:\/\/www.winhelponline.com\/blog\/windows-10-feature-update-error-0xc1900101\/","url_meta":{"origin":60985,"position":0},"title":"Error 0xC1900101 Installing Windows 10 Feature Update","author":"Ramesh","date":"May 20, 2019","format":false,"excerpt":"When you install a Windows 10 feature update (eg., v1809 on a computer running v1803) via Windows Update, the error 0xC1900101 occurs and the installation fails. Error 0xC1900101 is a rollback code that indicates that an incompatible driver is present on the computer. Microsoft stated in its blog post that\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"0xc1900101 windows 10 1809","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/0xc1900101-error.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/0xc1900101-error.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/0xc1900101-error.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/0xc1900101-error.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":63725,"url":"https:\/\/www.winhelponline.com\/blog\/error-0xc1420121-feature-update\/","url_meta":{"origin":60985,"position":1},"title":"Error 0xc1420121 when installing a Feature Update","author":"Ramesh","date":"October 25, 2023","format":false,"excerpt":"When you attempt to install a feature update, the error 0xc1420121 may appear. The setupact.log may show the following entries: Info SP Mounting WIM file C:\\$WINDOWS.~BT\\Sources\\SafeOS\\winre.wim to C:\\$WINDOWS.~BT\\Sources\\SafeOS\\SafeOS.Mount Info SP WIM index 1 Info SP Working directory C:\\$WINDOWS.~BT\\Work Warning SP Failed to get WimMount ImagePath, 0x80070002 [12592] OpenFilterPort:(408) [12592] FltCommVerifyFilterPresent:(502)\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":39066,"url":"https:\/\/www.winhelponline.com\/blog\/error-0x80070002-0x20009-windows-setup\/","url_meta":{"origin":60985,"position":2},"title":"Error 0x80070002 &#8211; 0x20009 During Windows 10\/11 Setup","author":"Ramesh","date":"April 17, 2023","format":false,"excerpt":"When you install Windows 10 or 11, the setup may fail with the error 0x80070002-0x20009. 0x80070002 \u2013 0x20009 The installation failed in SAFE_OS phase with an error during PREPARE_ROLLBACK operation. When you run the SetupDiag tool, the\u00a0SetupDiagResults.log may show the following: Error: SetupDiag reports rollback failure found. Last Phase =\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"0x80070002 - 0x20009 error","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/04\/setup-error-0x80070002-0x20009-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/04\/setup-error-0x80070002-0x20009-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/04\/setup-error-0x80070002-0x20009-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/04\/setup-error-0x80070002-0x20009-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":30313,"url":"https:\/\/www.winhelponline.com\/blog\/error-0x8007001f-feature-update-setup-log\/","url_meta":{"origin":60985,"position":3},"title":"Error 0x8007001F Installing Feature Update or Cumulative Update","author":"Ramesh","date":"November 28, 2022","format":false,"excerpt":"When you attempt to install a feature update such as Windows 11 22H2, the error 0x8007001F may occur. The error code 0x8007001F (\"ERROR_GEN_FAILURE\") means \"A device attached to the system is not functioning.\" The Setupact.log (collected using SetupDiag) contained these significant lines: (The lines containing the phrase \"Found valid profile\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"0x8007001f setup error","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/11\/0x8007001f-wu-error.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/11\/0x8007001f-wu-error.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/11\/0x8007001f-wu-error.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/11\/0x8007001f-wu-error.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":19854,"url":"https:\/\/www.winhelponline.com\/blog\/error-0x800707e7-0x3000d-upgrade-windows-10\/","url_meta":{"origin":60985,"position":4},"title":"Error 0x800707E7 0x3000D during Windows Setup","author":"Ramesh","date":"November 13, 2020","format":false,"excerpt":"When you upgrade from Windows 7 or Windows 8 to Windows 10 or 11 or do a repair installation, the error 0x800707E7 \u2013 0x3000D may occur and the setup is canceled automatically. The same error may occur when installing a Feature Update (e.g., upgrading from 21H2 to 22H2). Here is\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"nvidia updatus user account uninstall","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/11\/nvidia-update.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":17869,"url":"https:\/\/www.winhelponline.com\/blog\/error-0x800f0922-windows-update\/","url_meta":{"origin":60985,"position":5},"title":"Fix for Windows Update Error 0x800F0922 in Windows 10\/11","author":"Ramesh","date":"August 13, 2020","format":false,"excerpt":"When installing an update, especially a Cumulative Update or .NET Framework package in your Windows 10 or 11 computer, the update installation may fail with an error code 0x800F0922 (\"CBS_E_INSTALLERS_FAILED\") or 0xc1900104 or the error message \"Something didn't go as planned\". In some cases, you may receive the following error:\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"Hyper-V and Windows Sandbox - OptionalFeatures","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/08\/optional-featuresl-uninstall-hyperv-sandbox.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/60985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=60985"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/60985\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=60985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=60985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=60985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}