Notepad++ 8.4.2 64 bit suddenly closes for no reason
-
I recently downloaded Notepad++ 8.4.2, and I am using jN Npp plugin (https://github.com/sieukrem/jn-npp-plugin)
I installed the plugin from the notepad++ plugin manager
Other than this I am using all default settingsI am using “Open folder as workspace…” feature (I don’t know if the program crashes if I just open normal txt files or not), but I have seen notepad++ crash after a few minutes of usage (varies, sometimes after 10 minutes, sometimes after 30 minutes, doesn’t seem to be anything specific that triggers the crash).
This is making me suspect the culprit is most likely the jN Npp plugin, but I am not sure.
Is there any way to find out why Notepad++ is crashing? I need to use that plugin, so if it indeed is the plugin that is causing the crash, I would like to have a workaround for it. Will an older version of Notepad++ work better with that plugin? Can anybody recommend any particular version of notepad++ that will work with that specific plugin?
jN Npp plugin version: 2.2.185.6 installed from notepad++ plugin manager
Notepad++ debug info:Notepad++ v8.4.2 (64-bit)
Build time : May 29 2022 - 16:47:30
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : $COMMAND_LINE_PLACEHOLDER$
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 21H2
OS Build : 19044.1288
Current ANSI codepage : 1252
Plugins :
jN (2.2.185.6)
mimeTools (2.8)
NppConverter (4.4)
NppExport (0.4) -
@mahaju said in Notepad++ 8.4.2 64 bit suddenly closes for no reason:
This is making me suspect the culprit is most likely the jN Npp plugin, but I am not sure.
Very likely, yes. That plugin has not been updated since 2020, so it has not had the API fixes necessary to make it 100% compatible with Notepad++ v8.4.2.
Is there any way to find out why Notepad++ is crashing?
You can easily find out if jN is the culprit: Temporarily remove jN Npp (exit Notepad++; rename the folder
C:\Program Files\Notepad++\plugins\jN\
toC:\Program Files\Notepad++\plugins\jN.disabled\
; run Notepad++; see if it crashes. To re-enable the plugin, rename the folder back). If it still crashes after disabling the plugin, the plugin isn’t the culprit; if the crashes go away, the plugin is the culprit.I need to use that plugin, so if it indeed is the plugin that is causing the crash, I would like to have a workaround for it. Will an older version of Notepad++ work better with that plugin?
Since the API changed in v8.3 (due to the support for filesize >= 2GB), you should be able to use v8.2.1, which is the last version before the 2GB feature update. I also recommend creating an issue for the jN Npp developer, asking them to make their plugin compatible with the updated API.
-
I just did the test and the culprit was jN.
In my case the abrupt closing of Notepad++ happens when I double click on a word to select it or highlight matches.
Disabling jN solves it although I lose all the plugins that depend on it. -
@james-rosemary said in Notepad++ 8.4.2 64 bit suddenly closes for no reason:
Disabling jN solves it although I lose all the plugins that depend on it.
Then put in the request with the jN developer, as I already linked. In the mean time, your choices are to live without jN and the plugins that depend on it, or to revert back to an older Notepad++ that came before the API change (v8.2.1 should work) so that you can still use jN and those others that depend on it.
-
@peterjones Thank you for commenting.
I’ve already done that, unfortunately.
I have also posted the issue to the jN developers. -
@james-rosemary There is a patch to the jN plugin that solves the problem for me here:
https://github.com/sieukrem/jn-npp-plugin/issues/110