This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided “as is” with no warranties.

Issue

The K2 HostServer crashes unexpectedly and no useful information is logged in the Event Viewer:

Image

Symptoms

For K2 to debug further on the cause of the crash, you can run the ProcDumpTool however the ProcDumpTool is only useful if the crash can be successfully reproduced instantly. However, in cases where the crash occurs randomly or if the crash occurs infrequently, it's best to enable WER (Windows Error Reporting).

Troubleshooting Steps

  1. Open the Registry on the K2 Server
  2. Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps

    Image
  3. Create the following 4 entries:
    Name: DumpFolder     Type: Expandable String Value
    This is the location where the crash dumps will be created.

    Name: DumpCount     Type: DWORD (32 bit)
    This number is how many dump files should be stored at the location created previously in step 2. By default, this number is 10. As the number of files exceeds 10, the oldest files will be erased, and new files will take their place.

    Name: DumpType     Type: DWORD (32 bit)
    This DWORD can be configured to get the dump file as Custom dumpMini dump; Full dump according to your requirement. Use Value Data 012 respectively.

    The steps above will create a Dump File whenever any application on the K2 Server crashes, if you are looking for creating Crash Dump Files for a particular application, like K2 Server Service, you will have to create a Sub Key on the LocalDumps key.

To create a SubKey to capture crash Dumps only for the K2HostServer.exe: 

  1. In the registry under the following Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps
  2. Create a subkey with the following Name: K2HostServer.exe

    The full key will be: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\K2HostServer.exe


  3. Then follow step 3 (above) to configure what type data to be stored for this subkey particularly. Please note that the settings of subkey K2HostServer.exe overrides the setting of main key LocalDumps.

To Disable Windows Error Reporting Service, simply delete the registry key.

Reference: http://www.thewindowsclub.com/activate-windows-error-reporting-windows-8