none
C# Program crashing with new .dll RRS feed

  • Question

  • I have a program that has been running for quite some time, until the latest release of KERNELBASE.dll. The error log I am getting is: 

    Getting the following logs:

    Error 5/21/2019 3:51:22 PM .NET Runtime 1026 None
    Log Name: Application
    Source: .NET Runtime
    Date: 5/21/2019 3:51:22 PM
    Event ID: 1026
    Task Category: None
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: 078
    Description:
    Application: WW.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.IO.FileNotFoundException
        at WWVS9_PresentationLayer.ReportsControl.MSReportViewerControl..ctor()
        at WWVS9_PresentationLayer.MainForm_v2.InitializeComponent()
        at WWVS9_PresentationLayer.MainForm_v2..ctor()
        at WWVS9_PresentationLayer.Program.Main()
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name=".NET Runtime" />
    <EventID Qualifiers="0">1026</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2019-05-21T20:51:22.815295300Z" />
    <EventRecordID>22464</EventRecordID>
    <Channel>Application</Channel>
    <Computer>078</Computer>
    <Security />
    </System>
    <EventData>
    <Data>Application: WW.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.IO.FileNotFoundException
    at WWVS9_PresentationLayer.ReportsControl.MSReportViewerControl..ctor()
    at WWVS9_PresentationLayer.MainForm_v2.InitializeComponent()
    at WWVS9_PresentationLayer.MainForm_v2..ctor()
    at WWVS9_PresentationLayer.Program.Main()
    </Data>
    </EventData>
    </Event>

    Error 5/21/2019 3:51:23 PM Application Error 1000 (100)
    Log Name: Application
    Source: Application Error
    Date: 5/21/2019 3:51:23 PM
    Event ID: 1000
    Task Category: (100)
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: 078
    Description:
    Faulting application name: WW.exe, version: 2018.2.1.0, time stamp: 0x5ce4394b
    Faulting module name: KERNELBASE.dll, version: 10.0.17134.556, time stamp: 0xb9f4a0f1
    Exception code: 0xe0434352
    Fault offset: 0x000000000003a388
    Faulting process id: 0x676c
    Faulting application start time: 0x01d51016f23df4e2
    Faulting application path: C:\Program Files (x86)\WR\WW\WW.exe
    Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
    Report Id: 1d4eb31c-7ccf-4bd6-ab98-0bd381db3534
    Faulting package full name:
    Faulting package-relative application ID:
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2019-05-21T20:51:23.067292600Z" />
    <EventRecordID>22465</EventRecordID>
    <Channel>Application</Channel>
    <Computer>078</Computer>
    <Security />
    </System>
    <EventData>
    <Data>WW.exe</Data>
    <Data>2018.2.1.0</Data>
    <Data>5ce4394b</Data>
    <Data>KERNELBASE.dll</Data>
    <Data>10.0.17134.556</Data>
    <Data>b9f4a0f1</Data>
    <Data>e0434352</Data>
    <Data>000000000003a388</Data>
    <Data>676c</Data>
    <Data>01d51016f23df4e2</Data>
    <Data>C:\Program Files (x86)\WR\WW\WW.exe</Data>
    <Data>C:\WINDOWS\System32\KERNELBASE.dll</Data>
    <Data>1d4eb31c-7ccf-4bd6-ab98-0bd381db3534</Data>
    <Data>
    </Data>
    <Data>
    </Data>
    </EventData>
    </Event>

    Information 5/21/2019 3:51:26 PM Windows Error Reporting 1001 None
    Log Name: Application
    Source: Windows Error Reporting
    Date: 5/21/2019 3:51:26 PM
    Event ID: 1001
    Task Category: None
    Level: Information
    Keywords: Classic
    User: N/A
    Computer: 078
    Description:
    Fault bucket 1584137685360680718, type 5
    Event Name: CLR20r3
    Response: Not available
    Cab Id: 0
    Problem signature:
    P1: WW.exe
    P2: 2018.2.1.0
    P3: 5ce4394b
    P4: WW
    P5: 2018.2.1.0
    P6: 5ce4394b
    P7: 5b
    P8: 1b8
    P9: System.IO.FileNotFoundException
    P10:
    Attached files:
    \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER3786.tmp.mdmp
    \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER3B9D.tmp.WERInternalMetadata.xml
    \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER3C2B.tmp.xml
    \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER3C68.tmp.csv
    \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER3D72.tmp.txt
    These files may be available here:
    C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_WW.ex_9b4fb9a2599c13fe6ee4dcd0a587eac8187fb_b15dde52_603b42a1
    Analysis symbol:
    Rechecking for solution: 0
    Report Id: 1d4eb31c-7ccf-4bd6-ab98-0bd381db3534
    Report Status: 268435456
    Hashed bucket: 907653a42650623215fbfcd4eb3b9f0e
    Cab Guid: 0
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Windows Error Reporting" />
    <EventID Qualifiers="0">1001</EventID>
    <Level>4</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2019-05-21T20:51:26.401622100Z" />
    <EventRecordID>22466</EventRecordID>
    <Channel>Application</Channel>
    <Computer>078</Computer>
    <Security />
    </System>
    <EventData>
    <Data>1584137685360680718</Data>
    <Data>5</Data>
    <Data>CLR20r3</Data>
    <Data>Not available</Data>
    <Data>0</Data>
    <Data>WW.exe</Data>
    <Data>2018.2.1.0</Data>
    <Data>5ce4394b</Data>
    <Data>WW</Data>
    <Data>2018.2.1.0</Data>
    <Data>5ce4394b</Data>
    <Data>5b</Data>
    <Data>1b8</Data>
    <Data>System.IO.FileNotFoundException</Data>
    <Data>
    </Data>
    <Data>
    \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER3786.tmp.mdmp
    \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER3B9D.tmp.WERInternalMetadata.xml
    \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER3C2B.tmp.xml
    \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER3C68.tmp.csv
    \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER3D72.tmp.txt</Data>
    <Data>C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_WW.ex_9b4fb9a2599c13fe6ee4dcd0a587eac8187fb_b15dde52_603b42a1</Data>
    <Data>
    </Data>
    <Data>0</Data>
    <Data>1d4eb31c-7ccf-4bd6-ab98-0bd381db3534</Data>
    <Data>268435456</Data>
    <Data>907653a42650623215fbfcd4eb3b9f0e</Data>
    <Data>0</Data>
    </EventData>
    </Event>



    The code block that is referenced (InitializeComponent) is:

     private void InitializeComponent()
     {
      components = new Sys.ComponentModel.Container();
      Sys.ComponentModel.ComponentResourceManager resources = new Sys.ComponentModel.ComponentResourceManager(typeof(MainForm_v2));
      fileTSMI = new SWF.TSMI();
      newProjectTSMI = new SWF.TSMI();
      createBlankProjectTSMI = new SWF.TSMI();
      openTSMI = new SWF.TSMI();
      saveTSMI = new SWF.TSMI();
      saveAsTSMI = new SWF.TSMI();
      TSS1 = new SWF.TSS();
      exitTSMI = new SWF.TSMI();
      editTSMI = new SWF.TSMI();
      copyTSMI = new SWF.TSMI();
      copyTSMI1 = new SWF.TSMI();
      pasteTSMI = new SWF.TSMI();
      deleteTSMI = new SWF.TSMI();
      reportsTSMI = new SWF.TSMI();
      toolsTSMI = new SWF.TSMI();
      helpTSMI = new SWF.TSMI();
      iMsTSMI = new SWF.TSMI();
      sampleLayoutsTSMI = new SWF.TSMI();
      TSS2 = new SWF.TSS();
      aboutWW2007TSMI = new SWF.TSMI();
      TSS = new SWF.TSS();
      TSS3 = new SWF.TSS();
      statusStrip1 = new SWF.StatusStrip();
      TSStLb1 = new SWF.TSStLb();
      TSStLb2 = new SWF.TSStLb();
      sC1 = new SWF.sC();
      btn6 = new SWF.Btn();
      btn5 = new SWF.Btn();
      btn4 = new SWF.Btn();
      btn3 = new SWF.Btn();
      btn1 = new SWF.Btn();
      btn2 = new SWF.Btn();
      sC2 = new SWF.sC();
      roomsCtl1 = new WWVS9_PL.RoomsCtl();
      promelt_elementHost = new SWF.Integration.ElementHost();
      proMC_v11 = new WWVS9_PL.ProMC_v1();
      tCtl2 = new WWVS9_PL.TC.TC_v2();
      msReportViewerCtl1 = new WWVS9_PL.ReportsCtl.MSReportViewerCtl();
      accessoriesCtl1 = new WWVS9_PL.AccessoriesCtl.AccessoriesCtl();
      defaultCtl1 = new WWVS9_PL.DefaultCtl.DefaultCtl();
      projectInformationCtl1 = new WWVS9_PL.ProjectInformationCtl.ProjectInformationCtl();
      mainFormCatalogItemCtl1 = new WWVS9_PL.MainFormCatalogItem.MainFormCatalogItemCtl();
      labelWWDescription = new SWF.Label();
      timerAutoSave = new SWF.Timer(components);
      openFD1 = new SWF.OpenFD();
      saveFD1 = new SWF.SaveFD();
      fileTSMI1 = new SWF.TSMI();
      TSS6 = new SWF.TSS();
      saveAsTSMI1 = new SWF.TSMI();
      TSS7 = new SWF.TSS();
      TSS8 = new SWF.TSS();
      exitTSMI1 = new SWF.TSMI();
      editTSMI1 = new SWF.TSMI();
      undoTSMI = new SWF.TSMI();
      redoTSMI = new SWF.TSMI();
      TSS9 = new SWF.TSS();
      cutTSMI = new SWF.TSMI();
      copyTSMI2 = new SWF.TSMI();
      pasteTSMI1 = new SWF.TSMI();
      TSS10 = new SWF.TSS();
      selectAllTSMI = new SWF.TSMI();
      toolsTSMI1 = new SWF.TSMI();
      customizeTSMI = new SWF.TSMI();
      optionsTSMI = new SWF.TSMI();
      helpTSMI1 = new SWF.TSMI();
      contentsTSMI = new SWF.TSMI();
      indexTSMI = new SWF.TSMI();
      searchTSMI = new SWF.TSMI();
      TSS11 = new SWF.TSS();
      aboutTSMI = new SWF.TSMI();
      menuStrip1 = new SWF.MenuStrip();
      fileTSMI2 = new SWF.TSMI();
      newTSMI1 = new SWF.TSMI();
      openTSMI2 = new SWF.TSMI();
      TSS4 = new SWF.TSS();
      saveTSMI2 = new SWF.TSMI();
      saveAsTSMI2 = new SWF.TSMI();
      TSS5 = new SWF.TSS();
      printTSMI1 = new SWF.TSMI();
      printPreviewTSMI1 = new SWF.TSMI();
      TSS12 = new SWF.TSS();
      TSMILastFile1 = new SWF.TSMI();
      TSMILastFile2 = new SWF.TSMI();
      TSMILastFile3 = new SWF.TSMI();
      TSMILastFile4 = new SWF.TSMI();
      TSS14 = new SWF.TSS();
      exitTSMI2 = new SWF.TSMI();
      editTSMI2 = new SWF.TSMI();
      undoTSMI1 = new SWF.TSMI();
      redoTSMI1 = new SWF.TSMI();
      TSS13 = new SWF.TSS();
      cutTSMI1 = new SWF.TSMI();
      copyTSMI3 = new SWF.TSMI();
      pasteTSMI2 = new SWF.TSMI();
      toolsTSMI2 = new SWF.TSMI();
      optionsTSMI1 = new SWF.TSMI();
      updatePricingTSMI = new SWF.TSMI();
      helpTSMI2 = new SWF.TSMI();
      contentsTSMI1 = new SWF.TSMI();
      indexTSMI1 = new SWF.TSMI();
      searchTSMI1 = new SWF.TSMI();
      TSS15 = new SWF.TSS();
      aboutTSMI1 = new SWF.TSMI();
      TS1 = new SWF.TS();
      Wintate = SWF.FormWintate.Maximized;
      sC1.Panel1.ResumeLayout(false);
      sC1.Panel2.ResumeLayout(false);
      ((Sys.ComponentModel.ISupportInitialize)(sC1)).EndInit();
      sC1.ResumeLayout(false);
      sC2.Panel1.ResumeLayout(false);
      sC2.Panel2.ResumeLayout(false);
      ((Sys.ComponentModel.ISupportInitialize)(sC2)).EndInit();
      sC2.ResumeLayout(false);
      menuStrip1.ResumeLayout(false);
      menuStrip1.PerformLayout();
      TS1.ResumeLayout(false);
      TS1.PerformLayout();
      ResumeLayout(false);
      PerformLayout();
     }


    I have searched several sites, including this forum, for any information that would help me understand the differences between the two versions of this dll.

    The newest version of KERNELBASE.dll that is causing the crashes is: 10.0.17134.XXX. It is crashing on several machines.

    The machines that continue to run the program have versions 10.0.14393.XXXX and older.

    I am using Visual Studio 2017, programming in C#. I have tried changing the Target framework, with no results.

    I have tried to find documentation that explains the differences between the two versions, so I can do some in-depth troubleshooting, but no luck.

    The program produces error logs, but they all disappear within 2 seconds, so I an not able to review them for any troubleshooting information.

    Help!

    (My last submit was lost after entering tons of info. I added this ticket in increments.)





    • Edited by KennyRay549.2 Monday, July 8, 2019 8:14 PM eliminate unnecessary code
    Tuesday, June 4, 2019 2:15 PM

Answers

  • While troubleshooting, I did find a reference to ReportViewer 2010 being required for the program. I downloaded the Redistributable package from Microsoft, installed it, and the program started working properly.

    So, the problem appears to have been the program using an older version of ReportViewer that was used to call KernelBase.dll


    Kenn Simons Senior Programmer

    • Marked as answer by KennyRay549.2 Wednesday, July 17, 2019 2:03 PM
    Wednesday, July 17, 2019 2:03 PM

All replies

  • You do not show any code. It might help to show code.

    Programmers are often reluctant to spend time on error checking in code. Then when they get an error like this they are frustrated and confused. If your code is not catching errors and showing all relevant information then you need to add that before proceeding. Note that the actual error might occur in a statement prior to where the crash appears.

    What happens when you execute a debug version in the debugger?



    Sam Hobbs
    SimpleSamples.Info

    Tuesday, June 4, 2019 8:50 PM
  • That exception number means there is unhandledexception caught in the code, so the runtime can do nothing but saves the dump and exit.

    See more about it here.

    There's not much you can do, but to tell whoever writes the program to do better error handling (so the actual error message got safe somewhere and enable them to see what happened.

    However, I heard that recent Win10 update will crash certain anti-cheat engine for games, so if your "application" uses it, you might want to update to latest version and check.

    EDIT: Seem this affects more than 1 anticheat engines, but only BattlEye listed in the KB released a fix. So if your application uses something like that but for a different vendor, you may want to check with the vendor.





    Wednesday, June 5, 2019 1:54 AM
    Answerer
  • @cheong00, this is a design application that has been working for several years, written with VS 2010, and upgraded several times. I inherited this project, as well as several others, and have been able to debug and troubleshoot all problems, until this particular one.

    I have been researching for three weeks now, and so far I have not found any way to troubleshoot this program on the system that it is failing on. It is not failing on my development system, and compiles perfectly in Debug & Release versions.

    The program does create WER dump files, such as these:

    C:\ProgramData\Microsoft\Windows\WER\Temp\WER3786.tmp.mdmp
    C:\ProgramData\Microsoft\Windows\WER\Temp\WER3B9D.tmp.WERInternalMetadata.xml
    C:\ProgramData\Microsoft\Windows\WER\Temp\WER3C2B.tmp.xml
    C:\ProgramData\Microsoft\Windows\WER\Temp\WER3C68.tmp.csv
    C:\ProgramData\Microsoft\Windows\WER\Temp\WER3D72.tmp.txt</Data>
    C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_WW.ex_9b4fb9a2599c13fe6ee4dcd0a587eac8187fb_b15dde52_603b42a1
    
    but they disappear within 2 seconds of being created.
    Thursday, June 6, 2019 9:45 PM
  • Hi KennyRay549.2,

    What does the KERNELBASE.dll update for? Could you try to uninstall this?

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, June 7, 2019 6:20 AM
    Moderator
  • KERNELBASE.dll is located in "%windir%\System32", and is part of Windows kernel (as you can see, the version number is 10.0.17134.X, indicating is this a Windows system DLL.
    Saturday, June 8, 2019 3:50 PM
    Answerer
  • @cheong00 that is correct, it is part of the Windows kernel. I also do not have the correct privileges to replace the current version of KernelBase.dll with an older version, just to check if it corrects the problem.

    KennyRay549

    Monday, June 10, 2019 4:08 PM
  • you already have the call stack, so why are you posting the code of InitializeComponent?
    The exception is coming from the constructor of your MSReportViewerControl:

    Exception Info: System.IO.FileNotFoundException
        at WWVS9_PresentationLayer.ReportsControl.MSReportViewerControl..ctor()
        at WWVS9_PresentationLayer.MainForm_v2.InitializeComponent()
        at WWVS9_PresentationLayer.MainForm_v2..ctor()
        at WWVS9_PresentationLayer.Program.Main()


    Monday, June 10, 2019 4:47 PM
  • @EckiS, sorry for not getting back to you sooner. For some reason I am not getting notifications of updates.

    Thanks for the info. I will check to see if I can determine why the constructor works on Version 10.0.14393 of Windows, but not Version 10.0.17134.


    Kenn Simons Senior Programmer

    Wednesday, July 3, 2019 4:02 PM
  • While troubleshooting, I did find a reference to ReportViewer 2010 being required for the program. I downloaded the Redistributable package from Microsoft, installed it, and the program started working properly.

    So, the problem appears to have been the program using an older version of ReportViewer that was used to call KernelBase.dll


    Kenn Simons Senior Programmer

    • Marked as answer by KennyRay549.2 Wednesday, July 17, 2019 2:03 PM
    Wednesday, July 17, 2019 2:03 PM