Notepad++ crashes, by opening more than x files at the same time
-
Hi!
When I open several textfiles at the same time (select the files in windows explorer and press enter) it crashes. Not only the program crashes but windows freezes and i can’t do anything but restart the computer. Please help :)
Notepad++ v8.3.2 (64-bit)
Build time : Feb 27 2022 - 03:35:46
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : “C:\01 Projects\00_SCS-PFA\00_SVN\Trunk\Packages\R2.x.x\4_Tools\eData_v3.5\Templates\Param\MM_AP001_L_S1.scl”
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 2009
OS Build : 19043.1526
Current ANSI codepage : 1252
Plugins : ComparePlugin.dll mimeTools.dll NppConverter.dll NppExport.dll -
Not an expert, but since you’re using the newer version, you should try starting NPP with
-noPlugin
in the command line to leave off the plugins and see if it stabilizes. If it does, then one or more of your plugins may not have been updated to work with the new version and you’ll need to download the newest version that has been made compatible with 8.3.2 to stop the behavior. Beyond that, maybe someone else has a better idea. -
Further to what @Lycan-Thrope said: three of the four plugins you list are the ones that come from the Notepad++ developer and ship with Notepad++; they are compatible. ComparePlugin is known to have a compatibility change. Since you are on v8.3.2 of Notepad++, close Notepad++, go to https://github.com/pnedev/compare-plugin/releases/tag/v2.0.2 and download the 64bit zipfile, and extract the DLL overtop of your old DLL : it needs to be saved as
c:\program files\notepad++\plugins\ComparePlugin\ComparePlugin.dll
. Then re-run Notepad++, and the plugin will stop crashing Notepad++. -
Thanks for your quick answers!
How can I run the NPP with -noPlugin per default? I can run it with the CMD like that but my issue occurs when opening several files at the same time by selecting them and press enter. So How can I test this with -noPlugin?
Anyway I temporarily deleted all the plugins in the plugin folder and it still crashes, so I don’t think it’s caused by any plugin. It crashes when opening more than 2 files btw, 2 files at the same time works fine. The total file size is 19KB.
-
@luca-cavandoli said in Notepad++ crashes, by opening more than x files at the same time:
NPP with -noPlugin per default
That’s not the right long-term solution. To be able to do that, you would have to edit one or more entries in your registry; since you’ve got definite problems, I would not recommend doing that, unless you know what you’re doing. (And, to be blunt, if you knew enough for it to be safe for you to edit your registry, you wouldn’t be asking how to run a program with a specific command line option by default.)
The right long-term solution is to uninstall the plugin or plugins that are causing the problem, after which point Notepad++ will load properly.
Anyway I temporarily deleted all the plugins in the plugin folder and it still crashes, so I don’t think it’s caused by any plugin.
I am dubious. Are you sure you don’t have multiple copies of Notepad++ lying around, and you deleted the plugins from one but it’s actually a different one that’s trying to run? And are you sure you deleted/renamed the actual plugins (the folder(s) containing the DLLs, that is,
C:\Program Files\Notepad++\plugins\
), not just the%AppData%\Notepad++\Plugins
directory (probablyc:\users\username\AppData\Roaming\Notepad++\Plugins
), which should only contain the configurations for plugins, not the plugin DLLs themselves?Could you show us the updated Debug Info after you are confident that the plugins are really out of the picture?
It crashes when opening more than 2 files btw, 2 files at the same time works fine.
I have never seen that happen. What is the exact sequence of events you are taking that leads to this?
Command Line : “C:\01 Projects\00_SCS-PFA\00_SVN\Trunk\Packages\R2.x.x\4_Tools\eData_v3.5\Templates\Param\MM_AP001_L_S1.scl”
Given the length of the filename on your command line, I wonder if when you are selecting 3 or more files, whether the total length of the command line is too long for Windows to deal with (Windows has some length limitations in the “verb action” interface). If you select each of the files one-at-a-time and open them with Notepad++, does it load those same files properly?