stefankueng / grepWin

A powerful and fast search tool using regular expressions
https://tools.stefankueng.com/grepWin.html
GNU General Public License v3.0
1.72k stars 179 forks source link

Memory leak related crash? #468

Open cpalermo-sharper opened 5 months ago

cpalermo-sharper commented 5 months ago

I'm experiencing a strange crash during a search where GrepWin seemed to run out of memory. After that the entire machine froze and became unresponsive.

This was the first time this kind of crash happens with this specific dataset. Event Viewer recorded these reports:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
  <Provider Name="Windows Error Reporting" Guid="{0ead09bd-2157-539a-8d6d-c87f95b64d70}" /> 
  <EventID>1001</EventID> 
  <Version>0</Version> 
  <Level>4</Level> 
  <Task>0</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x8000000000000000</Keywords> 
  <TimeCreated SystemTime="2024-03-31T10:40:44.3200375Z" /> 
  <EventRecordID>67590</EventRecordID> 
  <Correlation /> 
  <Execution ProcessID="16896" ThreadID="24748" /> 
  <Channel>Application</Channel> 
  <Computer>ZEPHYR</Computer> 
  <Security UserID="S1-5-21-1344681765-3999722615-3292609631-1002" /> 
  </System>
- <EventData>
  <Data Name="Bucket" /> 
  <Data Name="BucketType">0</Data> 
  <Data Name="EventName">APPCRASH</Data> 
  <Data Name="Response">Not available</Data> 
  <Data Name="CabId">0</Data> 
  <Data Name="P1">grepWin.exe</Data> 
  <Data Name="P2">2.0.15.1232</Data> 
  <Data Name="P3">648470e0</Data> 
  <Data Name="P4">StackHash_ef5a</Data> 
  <Data Name="P5">10.0.22621.3235</Data> 
  <Data Name="P6">a2c4352c</Data> 
  <Data Name="P7">c0000374</Data> 
  <Data Name="P8">PCH_B8_FROM_ntdll+0x000000000009FEC4</Data> 
  <Data Name="P9" /> 
  <Data Name="P10" /> 
  <Data Name="AttachedFiles">\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.2e28f1f2-7d9c-4c73-ad82-c725a1d8b65c.tmp.mdmp \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.256238a5-1dc3-4073-b93d-9f1ae6ed5fb1.tmp.WERInternalMetadata.xml \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.cfca19f5-f359-4d2b-b5f2-27ccb98769c3.tmp.csv \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.a330014a-2bc4-418e-92b5-bc36ab521b69.tmp.txt \\?\C:\Users\XXXXX\AppData\Local\Temp\WER.62a83a37-a41b-4330-93e3-b4a033a74de2.tmp.appcompat.txt \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.b2c570f4-a23f-450d-a13b-eb08e02bf582.tmp.xml</Data> 
  <Data Name="StorePath">\\?\C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_grepWin.exe_9cdb6cbbcf35df656a3db6e26cfa262f46bab39_62e7e231_cab_a59fbe38-3a50-4acb-936c-6c78d7097d3d</Data> 
  <Data Name="AnalysisSymbol" /> 
  <Data Name="Rechecking">0</Data> 
  <Data Name="ReportId">4c28190f-dbdb-425b-a5c7-902f40f715f1</Data> 
  <Data Name="ReportStatus">4</Data> 
  <Data Name="HashedBucket" /> 
  <Data Name="CabGuid">0</Data> 
  </EventData>
  </Event>

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Application Error" Guid="{a0e9b465-b939-57d7-b27d-95d8e925ff57}" /> 
  <EventID>1000</EventID> 
  <Version>0</Version> 
  <Level>2</Level> 
  <Task>100</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x8000000000000000</Keywords> 
  <TimeCreated SystemTime="2024-03-31T10:40:43.5429068Z" /> 
  <EventRecordID>67589</EventRecordID> 
  <Correlation /> 
  <Execution ProcessID="16896" ThreadID="24748" /> 
  <Channel>Application</Channel> 
  <Computer>ZEPHYR</Computer> 
  <Security UserID="S-1-5-21-1344681765-3999722615-3292609631-1002" /> 
  </System>
- <EventData>
  <Data Name="AppName">grepWin.exe</Data> 
  <Data Name="AppVersion">2.0.15.1232</Data> 
  <Data Name="AppTimeStamp">648470e0</Data> 
  <Data Name="ModuleName">ntdll.dll</Data> 
  <Data Name="ModuleVersion">10.0.22621.3235</Data> 
  <Data Name="ModuleTimeStamp">a2c4352c</Data> 
  <Data Name="ExceptionCode">c0000374</Data> 
  <Data Name="FaultingOffset">000000000010c1a9</Data> 
  <Data Name="ProcessId">0x3af0</Data> 
  <Data Name="ProcessCreationTime">0x1da8353f87c89f1</Data> 
  <Data Name="AppPath">C:\Users\XXXX\AppData\Local\Programs\grepWin\grepWin.exe</Data> 
  <Data Name="ModulePath">C:\Windows\SYSTEM32\ntdll.dll</Data> 
  <Data Name="IntegratorReportId">4c28190f-dbdb-425b-a5c7-902f40f715f1</Data> 
  <Data Name="PackageFullName" /> 
  <Data Name="PackageRelativeAppId" /> 
  </EventData>
  </Event>
lifenjoiner commented 4 months ago

Unfortunately, without reproducing the issue, it is hard to do anything. And "the first time" should be a reasonable exemption.