You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
У большого количества работниц почему-то перестает работать поиск во всех файлах обрабатываемых плагинами с выводом описания проблемы:
"Value cannot be null. (Parameter 'oldValue')"
При этом помогает только заново распаковать архив с портативным DnGrep...
Сам повторить такой результат не могу, но почти каждый день у пары-тройки юзеров появляется эта проблема. С чем может быть проблема?
Сейчас проверял что не так у себя на ПК с их портативками... У меня они работают.
Что-то винда или антивирус делают с ними похоже...
Также на одном ПК "само" прошло без выгрузки из архива заново...
Что происходит?
@VladTester255 The dnGrep error log should have more context of where the problem is occurring. Can you look at the error log and post the full error message or copy the log file here?
Maybe it's the translation, but I don't understand what these lines mean:
"At the same time, it only helps to recompress the archive with a portable DnGrep..."
"Also, on one PC, "itself" went without unloading from the archive again..."
I don't understand what is being recompressed or unloaded from the archive.
This page contains the following errors:
error on line 15 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.
Error searching file: 'd:\files.pdf' System.ArgumentNullException: Value cannot be null. (Parameter 'oldValue') at System.ArgumentNullException.Throw(String paramName) at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName) at System.ArgumentException.ThrowNullOrEmptyException(String argument, String paramName) at System.String.Replace(String oldValue, String newValue) at System.String.Replace(String oldValue, String newValue, StringComparison comparisonType) at dnGREP.Common.StringMap.ReplaceAllKeys(String text) in C:\projects\dngrep\dnGREP.Common\StringMap.cs:line 59 at dnGREP.Engines.Pdf.GrepEnginePdf.ReadCacheFile(String cacheFilePath, Encoding encoding, Boolean applyStringMap) in C:\projects\dngrep\dnGREP.PdfEngine\GrepEnginePdf.cs:line 366 at dnGREP.Engines.Pdf.GrepEnginePdf.ExtractText(String pdfFilePath, String cacheFilePath, Encoding encoding, String password, PauseCancelToken pauseCancelToken) in C:\projects\dngrep\dnGREP.PdfEngine\GrepEnginePdf.cs:line 321 at dnGREP.Engines.Pdf.GrepEnginePdf.Search(String pdfFile, String searchPattern, SearchType searchType, GrepSearchOption searchOptions, Encoding encoding, PauseCancelToken pauseCancelToken) in C:\projects\dngrep\dnGREP.PdfEngine\GrepEnginePdf.cs:line 75 at dnGREP.Common.GrepCore.Search(String file, SearchType searchType, String searchPattern, GrepSearchOption searchOptions, Int32 codePage, Int32& counter, Int32& highWater, PauseCancelToken pauseCancelToken) in C:\projects\dngrep\dnGREP.Engines\GrepCore.cs:line 407
It helps re-unpack the software files over the existing ones, replacing them, and the software works again.
However, in one case, I was able to restore functionality by simply restarting the software...
I managed to reproduce the issue once, but I'm not sure what exactly caused it...
Thank you for the log message, that is very helpful.
For the error "Value cannot be null. (Parameter 'oldValue')" this is the code being run
foreach (var item in map)
{
text = text.Replace(item.Key, item.Value, StringComparison.Ordinal);
}
This is doing replacements from the string substitution mapping. The 'oldValue' is the map key - the character being replaced, and the 'newValue' is the map value - the replacement character.
So, something is wrong your string mapping configuration. The key should never be null - it has to be a valid character.
I will add a check to verify both the oldValue and newValues are not null and skip the replacement if they are. This will avoid the error, but the string replacement may not be doing what you think it is going to do.
As for having to overwrite the installation files - I cannot imagine any scenario where this should be necessary. For the zip file installation, move the configuration and log files to another directory by setting the paths in the Options dialog. Everything else in the application directory is read-only and I don't see how any of these files could change without someone intentionally changing them.
Activity
doug24 commentedon Apr 16, 2026
@VladTester255 The dnGrep error log should have more context of where the problem is occurring. Can you look at the error log and post the full error message or copy the log file here?
Maybe it's the translation, but I don't understand what these lines mean:
"At the same time, it only helps to recompress the archive with a portable DnGrep..."
"Also, on one PC, "itself" went without unloading from the archive again..."
I don't understand what is being recompressed or unloaded from the archive.
VladTester255 commentedon Apr 17, 2026
This page contains the following errors:
error on line 15 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.
Error searching file: 'd:\files.pdf' System.ArgumentNullException: Value cannot be null. (Parameter 'oldValue') at System.ArgumentNullException.Throw(String paramName) at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName) at System.ArgumentException.ThrowNullOrEmptyException(String argument, String paramName) at System.String.Replace(String oldValue, String newValue) at System.String.Replace(String oldValue, String newValue, StringComparison comparisonType) at dnGREP.Common.StringMap.ReplaceAllKeys(String text) in C:\projects\dngrep\dnGREP.Common\StringMap.cs:line 59 at dnGREP.Engines.Pdf.GrepEnginePdf.ReadCacheFile(String cacheFilePath, Encoding encoding, Boolean applyStringMap) in C:\projects\dngrep\dnGREP.PdfEngine\GrepEnginePdf.cs:line 366 at dnGREP.Engines.Pdf.GrepEnginePdf.ExtractText(String pdfFilePath, String cacheFilePath, Encoding encoding, String password, PauseCancelToken pauseCancelToken) in C:\projects\dngrep\dnGREP.PdfEngine\GrepEnginePdf.cs:line 321 at dnGREP.Engines.Pdf.GrepEnginePdf.Search(String pdfFile, String searchPattern, SearchType searchType, GrepSearchOption searchOptions, Encoding encoding, PauseCancelToken pauseCancelToken) in C:\projects\dngrep\dnGREP.PdfEngine\GrepEnginePdf.cs:line 75 at dnGREP.Common.GrepCore.Search(String file, SearchType searchType, String searchPattern, GrepSearchOption searchOptions, Int32 codePage, Int32& counter, Int32& highWater, PauseCancelToken pauseCancelToken) in C:\projects\dngrep\dnGREP.Engines\GrepCore.cs:line 407
VladTester255 commentedon Apr 17, 2026
It helps re-unpack the software files over the existing ones, replacing them, and the software works again.
However, in one case, I was able to restore functionality by simply restarting the software...
I managed to reproduce the issue once, but I'm not sure what exactly caused it...
doug24 commentedon Apr 17, 2026
Thank you for the log message, that is very helpful.
For the error "Value cannot be null. (Parameter 'oldValue')" this is the code being run
This is doing replacements from the string substitution mapping. The 'oldValue' is the map key - the character being replaced, and the 'newValue' is the map value - the replacement character.
So, something is wrong your string mapping configuration. The key should never be null - it has to be a valid character.
I will add a check to verify both the oldValue and newValues are not null and skip the replacement if they are. This will avoid the error, but the string replacement may not be doing what you think it is going to do.
As for having to overwrite the installation files - I cannot imagine any scenario where this should be necessary. For the zip file installation, move the configuration and log files to another directory by setting the paths in the Options dialog. Everything else in the application directory is read-only and I don't see how any of these files could change without someone intentionally changing them.
doug24 commentedon May 12, 2026
Fixed in v4.7.54