Where does Windows 8 store user-mode crash minidumps?

32,221

Solution 1

I observed the following with Windows 8.1 Professional:

Windows Error Reporting writes to: %ProgramData%\Microsoft\Windows\WER\

However, per default, it no longer permanently stores the dumps on the local computer.  You need to explicitly enable the storing of the dumps.

Use the Group Policy Editor (gpedit.msc): Computer Configuration -> Administrative Templates -> Windows Components -> Windows Error Reporting -> Advanced Error Reporting Settings

  1. Enable the policy Configure Report Archive:

    • Archive behaviour = Store all
    • Max number = 100
  2. You may also want to enable the policy Do not throttle additional data to send and store dumps for consecutive crashes with similar signature.

The dumps are inside the file Report.cab of the crash specific subfolder.

Solution 2

It seems to be very simple:

On my Windows 8.1 machine there was no %LOCALAPPDATA%\CrashDumps and no dumps were generated. I created the following value in the Registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps]
DumpFolder=REG_EXPAND_SZ:"C:\Dumps"

(the above syntax is not quite for .reg files, but it must be clear what it is)

and next time I had a crash of my program, the dump was generated in C:\Dumps.

I hope this helps.

Solution 3

You can search for .dmp files on your computer. But if you don't find any, then keep on reading.

For Store applications, Windows 8 seems to collect the application crash-dumps on the Microsoft servers, where their life-time is quite unknown (my suspicion : 30 days and I picked this number up from here).

For details, see the article Improving apps with Quality reports.

In a nutshell: You access the Quality reports through your app's "app summary page". This page supplies a Download link for a .cab file containing the process dump (!).

I don't have Windows 8, and my above answer seems like pure craziness on Microsoft's part, but this unbelievable fact is what I read into the documentation. I just hope that I am wrong.

Share:
32,221

Related videos on Youtube

Ian Boyd
Author by

Ian Boyd

Updated on September 18, 2022

Comments

  • Ian Boyd
    Ian Boyd over 1 year

    Where does Windows 8 store minidumps from user-mode crashes?


    Windows Vista and Windows 7 is documented to (by default) store a crash dump in:

    %LOCALAPPDATA%\CrashDumps
    

    A fact supported by observational evidence:

    enter image description here

    But, when an application crashes on Windows 8:

    enter image description here

    There are no crash dumps in %LOCALAPPDATA%\CrashDumps; there isn't even a CrashDumps folder:

    enter image description here

    Which leads to the question:

    Where does Windows 8 store minidumps from user-mode crashes?

    Note: You can ignore everything after the first line; it's just wasted filler.


    enter image description here

    • Ian Boyd
      Ian Boyd about 11 years
      i did a dir *.dmp /s, dir *.mdmp /s from the Windows folder, and the root of my user profile folder.
    • Ian Boyd
      Ian Boyd about 11 years
      Where did you find them on your system? (i've checked two locations) What which settings for WER crash dumps do you have turned on? (i've checked 3 settings)
    • 0xC0000022L
      0xC0000022L about 11 years
      @IanBoyd: depends on the system settings and I'm not too familiar with W8, yet. I suggest you try to find that file next time while the WER dialog is still open.
    • Ian Boyd
      Ian Boyd about 11 years
      @ERROR_ACCESS_DENIED Even with Process Monitor running, looking for any Path containing dmp, and all file activity from dwwin.exe, i see no dump files being created.
    • jla
      jla about 10 years
      @IanBoyd - The MSDN article you link to says "This feature is not enabled by default." You do have to create the LocalDumps key. Having that and the DumpFolder REG_EXPAND_SZ makes things work on this Windows 8 machine.
  • Ian Boyd
    Ian Boyd about 11 years
  • harrymc
    harrymc about 11 years
    This is not necessary, since DumpFolder has the default value of %LOCALAPPDATA%\CrashDumps. But evidently this has no effect for the poster on Windows 8.
  • harrymc
    harrymc about 11 years
    Everything is possible with Windows 8... Hopefully, the poster might be able to give here some feedback.
  • Ian Boyd
    Ian Boyd about 11 years
    @harrymc The registry key exists; the screenshot in the original question shows the of mini dumps.
  • harrymc
    harrymc about 11 years
    @IanBoyd: The registry key doesn't need to exist for dumps to happen on Windows 7, because there it has a default value. This answer says to create and set it to another folder than %LOCALAPPDATA%\CrashDumps and see if that changes anything. I personally don't believe in it, but trying can't hurt.
  • Ian Boyd
    Ian Boyd about 11 years
    @harrymc No, what i was saying is that i had already created the registry key. It did not effect any change, and did not affect the behaviour. Updated question with screenshot of regedit showing key
  • magicandre1981
    magicandre1981 about 11 years
    again, change the value to something like C:\dumps. This works for me since the feature was added in Vista Sp1.
  • harrymc
    harrymc about 11 years
    ... and ensure that C:\dumps does exist. Create it if necessary.
  • magicandre1981
    magicandre1981 about 11 years
    for me, the WER service always creates the folder.
  • jww
    jww about 5 years
    This is a big security breach for apps that handle sensitive information, like passwords and private keys. There is absolutely no reason to ship dumps with the sensitive information to companies like Microsoft. The sensitive information should never leave the security boundary, like the app or the local machine. Law enforcement and criminals thank Microsoft for making it easy to collect the secret information.