dail8859 / dail8859/NotepadNext
Replace with regex cause stucks
- Dominant language
- C++
- Stars
- 14.6k
- Forks
- 914
- Avg merge
- 6d 18h
- Merged PRs (30d)
- 7
Description
- Notepad Next 0.6.4 (GitHub Rel ver), Win11
txt file
```txt
1
2
3
```
Replace `^` => `// `
- No cycle search (p)
- With Regex (g) open
- Click "Replace ALL"
- Stucks
Notepad Next CPU load 5%~8%
Memory usage: rise slowly
When debug with WinDbg
I see those lines repeat forever:
`const char *__cdecl QRegexSearch::SubstituteByPosition(class Scintilla::Internal::Document *,const char *,__int64 *)`
Full log
```log
[ 0.094] I: =============================
[ 0.094] I: Notepad Next v0.6.4.0
[ 0.094] I: Build Date/Time: Oct 18 2023 16:53:08
[ 0.095] I: Qt: 6.5.3
[ 0.095] I: OS: Windows 11 Version 23H2
[ 0.095] I: Locale: zh_CN
[ 0.095] I: CPU: x86_64
[ 0.095] I: File Path: D:/env/Notepad Next/NotepadNext.exe
[ 0.095] I: Arguments: D:\env\Notepad Next\NotepadNext.exe
[ 0.095] I: =============================
[ 0.095] I: bool __cdecl NotepadNextApplication::init(void)
ModLoad: 00007ffc`d42b0000 00007ffc`d42be000 D:\env\Notepad Next\imageformats\qgif.dll
ModLoad: 00007ffc`d1440000 00007ffc`d144e000 D:\env\Notepad Next\imageformats\qico.dll
ModLoad: 00007ffc`87ee0000 00007ffc`87f7a000 D:\env\Notepad Next\imageformats\qjpeg.dll
ModLoad: 00007ffc`d1230000 00007ffc`d123c000 D:\env\Notepad Next\imageformats\qsvg.dll
ModLoad: 00007ffc`d11d0000 00007ffc`d122a000 D:\env\Notepad Next\Qt6Svg.dll
[ 0.231] I: void __cdecl NotepadNextApplication::loadTranslation(class QLocale)
[ 0.231] I: Loaded zh_CN translation :/i18n/NotepadNext_zh_CN.qm for Notepad Next
[ 0.232] I: zh_CN translation not found for Qt components
[ 0.232] I: __cdecl LuaState::LuaState(void)
[ 0.245] I: __cdecl MacroManager::MacroManager(class QObject *)
[ 0.245] I: void __cdecl MacroManager::loadSettings(void)
[ 0.245] I: __cdecl MainWindow::MainWindow(class NotepadNextApplication *)
[ 0.380] I: setupUi Completed
[ 0.464] I: __cdecl FileListDock::FileListDock(class MainWindow *)
[ 0.465] I: void __cdecl MainWindow::setupLanguageMenu(void)
[ 0.496] I: void __cdecl MainWindow::restoreSettings(void)
[ 0.496] I: AutoUpdates: 1
[ 0.496] I: void __cdecl NotepadNextApplication::openFiles(const class QList &)
[ 0.496] I: void __cdecl MainWindow::newFile(void)
[ 0.497] I: void __cdecl EditorManager::setupEditor(class ScintillaNext *)
[ 0.498] I: void __cdecl MainWindow::addEditor(class ScintillaNext *)
[ 0.498] I: void __cdecl MainWindow::detectLanguage(class ScintillaNext *)
[ 0.498] I: void __cdecl MainWindow::setLanguage(class ScintillaNext *,const class QString &)
[ 0.498] I: Language Name: Text
[ 0.498] I: void __cdecl DockedEditor::addEditor(class ScintillaNext *)
ModLoad: 00007ffc`49010000 00007ffc`490c0000 C:\WINDOWS\SYSTEM32\d3d9on12.dll
ModLoad: 00007ffc`48fe0000 00007ffc`49009000 C:\WINDOWS\SYSTEM32\d3d12.dll
ModLoad: 00007ffc`48dd0000 00007ffc`48fd3000 C:\WINDOWS\SYSTEM32\D3D12Core.dll
ModLoad: 00007ffc`48da0000 00007ffc`48dc7000 C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_1c096b3397af68b6\igd12umd64.dll
ModLoad: 00007ffc`47ea0000 00007ffc`48d9f000 C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_1c096b3397af68b6\igd12um64xel.dll
ModLoad: 00007ffc`dd640000 00007ffc`dd7a6000 C:\WINDOWS\System32\CRYPT32.dll
ModLoad: 00007ffc`97480000 00007ffc`974c5000 C:\WINDOWS\SYSTEM32\ControlLib.dll
ModLoad: 00007ffc`b8580000 00007ffc`b860c000 C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_1c096b3397af68b6\IntelControlLib.dll
ModLoad: 00007ffc`da9b0000 00007ffc`da9c5000 C:\WINDOWS\SYSTEM32\resourcepolicyclient.dll
ModLoad: 00007ffc`cf5a0000 00007ffc`cf5ea000 C:\WINDOWS\SYSTEM32\directxdatabasehelper.dll
ModLoad: 00007ffc`ae810000 00007ffc`ae849000 C:\WINDOWS\System32\DriverStore\FileRepository\nvlt.inf_amd64_76b6a0e822aad26f\nvdlistx.dll
ModLoad: 00007ffc`ae810000 00007ffc`ae849000 C:\WINDOWS\System32\DriverStore\FileRepository\nvlt.inf_amd64_76b6a0e822aad26f\nvdlistx.dll
ModLoad: 00007ffc`b0ec0000 00007ffc`b12fb000 C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_1c096b3397af68b6\igdgmm64.dll
ModLoad: 00007ffc`a2c80000 00007ffc`a6b4b000 C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_1c096b3397af68b6\igc64.dll
ModLoad: 00007ffc`47ab0000 00007ffc`47adf000 C:\WINDOWS\SYSTEM32\D3DSCache.dll
ModLoad: 00007ffc`477b0000 00007ffc`47aa9000 C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_1c096b3397af68b6\igd12dxva64.dll
ModLoad: 00007ffc`465d0000 00007ffc`477aa000 C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_1c096b3397af68b6\igddxvacommon64.dll
ModLoad: 00007ffc`448a0000 00007ffc`465c5000 C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_1c096b3397af68b6\media_bin_64.dll
ModLoad: 00007ffc`44870000 00007ffc`44897000 C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_1c096b3397af68b6\igdinfo64.dll
ModLoad: 00007ffc`dcb30000 00007ffc`dcb4b000 C:\WINDOWS\SYSTEM32\CRYPTSP.dll
ModLoad: 00007ffc`dc2f0000 00007ffc`dc325000 C:\WINDOWS\system32\rsaenh.dll
ModLoad: 00007ffc`cc800000 00007ffc`cca85000 C:\WINDOWS\SYSTEM32\twinapi.appcore.dll
ModLoad: 00007ffc`7bfa0000 00007ffc`7c11e000 C:\WINDOWS\SYSTEM32\dxilconv.dll
ModLoad: 00007ffc`da9b0000 00007ffc`da9c5000 C:\WINDOWS\SYSTEM32\resourcepolicyclient.dll
ModLoad: 00007ffc`95e60000 00007ffc`95f1d000 C:\WINDOWS\System32\DriverStore\FileRepository\nvlt.inf_amd64_76b6a0e822aad26f\nvldumdx.dll
ModLoad: 00007ffc`dcf30000 00007ffc`dcf42000 C:\WINDOWS\SYSTEM32\msasn1.dll
ModLoad: 00007ffc`cd760000 00007ffc`cd792000 C:\WINDOWS\SYSTEM32\cryptnet.dll
ModLoad: 00007ffc`cd580000 00007ffc`cd6d8000 C:\WINDOWS\SYSTEM32\drvstore.dll
ModLoad: 00007ffc`dca70000 00007ffc`dcabb000 C:\WINDOWS\SYSTEM32\wldp.dll
ModLoad: 00007ffc`ddc30000 00007ffc`ddc9b000 C:\WINDOWS\System32\WINTRUST.DLL
ModLoad: 00007ffc`df720000 00007ffc`df73f000 C:\WINDOWS\System32\imagehlp.dll
ModLoad: 00007ffb`e8580000 00007ffb`eb474000 C:\WINDOWS\System32\DriverStore\FileRepository\nvlt.inf_amd64_76b6a0e822aad26f\nvd3dumx.dll
ModLoad: 00007ffc`88b60000 00007ffc`88bbe000 C:\WINDOWS\system32\dataexchange.dll
ModLoad: 00007ffc`cc800000 00007ffc`cca85000 C:\WINDOWS\system32\twinapi.appcore.dll
[ 0.829] I: void __cdecl MainWindow::activateEditor(class ScintillaNext *)
[ 0.829] I: bool __cdecl MainWindow::checkFileForModification(class ScintillaNext *)
[ 0.829] I: void __cdecl MainWindow::updateGui(class ScintillaNext *)
[ 0.829] I: void __cdecl MainWindow::updateFileStatusBasedUi(class ScintillaNext *)
[ 0.829] I: void __cdecl MainWindow::updateSaveStatusBasedUi(class ScintillaNext *)
[ 0.830] I: void __cdecl MainWindow::updateEOLBasedUi(class ScintillaNext *)
[ 0.830] I: void __cdecl MainWindow::updateLanguageBasedUi(class ScintillaNext *)
ModLoad: 00007ffc`c8460000 00007ffc`c85aa000 C:\WINDOWS\SYSTEM32\textinputframework.dll
ModLoad: 00007ffc`aca50000 00007ffc`acaf5000 C:\Windows\System32\Windows.FileExplorer.Common.dll
ModLoad: 00007ffc`d8bc0000 00007ffc`d8cc1000 C:\WINDOWS\system32\propsys.dll
ModLoad: 00007ffc`8d1f0000 00007ffc`8d20a000 C:\WINDOWS\system32\NetworkExplorer.dll
ModLoad: 00007ffc`88170000 00007ffc`88419000 C:\WINDOWS\system32\explorerframe.dll
[ 1.035] I: class Scintilla::Internal::RegexSearchBase *__cdecl Scintilla::Internal::CreateRegexSearch(class Scintilla::Internal::CharClassify *)
ModLoad: 00007ffc`d59d0000 00007ffc`d5b04000 C:\WINDOWS\SYSTEM32\CoreMessaging.dll
ModLoad: 00007ffc`ce430000 00007ffc`ce79c000 C:\WINDOWS\SYSTEM32\CoreUIComponents.dll
ModLoad: 00007ffc`b2920000 00007ffc`b2948000 C:\WINDOWS\SYSTEM32\edputil.dll
[ 4.643] I: void __cdecl MainWindow::updateSaveStatusBasedUi(class ScintillaNext *)
[ 6.007] I: __cdecl FindReplaceDialog::FindReplaceDialog(class ISearchResultsHandler *,class MainWindow *)
[ 6.028] I: void __cdecl FindReplaceDialog::loadSettings(void)
[ 6.041] I: void __cdecl FindReplaceDialog::showEvent(class QShowEvent *)
[ 15.497] I: Last checked for updates at: Wed Jan 24 09:19:29 2024
[ 15.774] I: void __cdecl FindReplaceDialog::replaceAll(void)
[ 15.775] I: void __cdecl FindReplaceDialog::prepareToPerformSearch(bool)
[ 15.775] I: const char *__cdecl QRegexSearch::SubstituteByPosition(class Scintilla::Internal::Document *,const char *,__int64 *)
[ 15.776] I: const char *__cdecl QRegexSearch::SubstituteByPosition(class Scintilla::Internal::Document *,const char *,__int64 *)
[ 15.777] I: const char *__cdecl QRegexSearch::SubstituteByPosition(class Scintilla::Internal::Document *,const char *,__int64 *)
[ 15.778] I: const char *__cdecl QRegexSearch::SubstituteByPosition(class Scintilla::Internal::Document *,const char *,__int64 *)
[ 15.779] I: const char *__cdecl QRegexSearch::SubstituteByPosition(class Scintilla::Internal::Document *,const char *,__int64 *)
[ 15.780] I: const char *__cdecl QRegexSearch::SubstituteByPosition(class Scintilla::Internal::Document *,const char *,__int64 *)
[ 15.780] I: const char *__cdecl QRegexSearch::SubstituteByPosition(class Scintilla::Internal::Document *,const char *,__int64 *)
[ 15.781] I: const char *__cdecl QRegexSearch::SubstituteByPosition(class Scintilla::Internal::Document *,const char *,__int64 *)
[ 15.781] I: const char *__cdecl QRegexSearch::SubstituteByPosition(class Scintilla::Internal::Document *,const char *,__int64 *)
[ 15.782] I: const char *__cdecl QRegexSearch::SubstituteByPosition(class Scintilla::Internal::Document *,const char *,__int64 *)
[ 15.782] I: const char *__cdecl QRegexSearch::SubstituteByPosition(class Scintilla::Internal::Document *,const char *,__int64 *)
[ 15.783] I: const char *__cdecl QRegexSearch::SubstituteByPosition(class Scintilla::Internal::Document *,const char *,__int64 *)
[ 15.784] I: const char *__cdecl QRegexSearch::SubstituteByPosition(class Scintilla::Internal::Document *,const char *,__int64 *)
[ 15.784] I: const char *__cdecl QRegexSearch::SubstituteByPosition(class Scintilla::Internal::Document *,const char *,__int64 *)
.....
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.