Notepad++ raises an error when closed



  • Hey,

    I noticed that every time I close Notepad++, Windows shows an alert, telling me an error has occured.

    In a forum I read that this might be due to some plugins not behaving correctly. Is there a way to generate a debug log for the “closing procedure” of Notepad++? I would like to find out what the cause of this error is and would love to avoid having to remove all the plugins and reinstalling them one by one to find out.

    Would love to hear your ideas, thanks in advance!



  • welcome to the notepad++ community, @bolandross

    please quick-test the following first, to verify if a clean notepad++ portable wouldn’t do the same:

    • download the notepad++ 7.6.6. 64 bit portable version from >>> here <<<.
      (the portable version does not require any installation and runs completely independent and isolated from your installed version. all custom settings, as well as any stuff you might want to try at the portable version, will not modify your installed version)

    • extract npp.7.6.6.bin.x64.zip to e.g. your desktop.

    • important note: make sure to close all instances of notepad++ that might be still running, before starting the portable version at the next step, to make sure you are using the portable version for this test.

    • open the extracted npp.7.6.6.bin.x64 folder and start this portable version by double-clicking on notepad++.exe inside this folder.
      (note: notepad++.exe will just be seen as notepad++, if you have activated to hide all known file extensions at your windows explorer settings)

    • test if you see that message when closing this portable version of notepad++.

    if the clean portable version also shows that windows message when exiting, it’s related to your system, and we can not do anything at notepad++ to fix that.

    if the portable version doesn’t show that, please open up your installed notepad++ and go to ? > debug info... > copy debug info into clipboard and paste it here.
    additionally you can try to start your installed notepad++ with the command line argument notepad++.exe -noPlugin to skip loading all plugins.



  • @Meta-Chuh
    Thank you very much for the quick response.

    I followed the steps, this is what I observed:

    • Running and closing the portable version didn’t raise the error message.
    • Running and closing my version with -noPluginmade the error message go away, too.

    This is the debug info I got from my version:

    Notepad++ v7.6.4   (32-bit)
    Build time : Mar  6 2019 - 02:52:22
    Path : C:\Users\bolandross\Documents\Programme\NotePad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : ON
    OS : Windows 10 (64-bit)
    Plugins : DSpellCheck.dll EmmetNPP.dll HTMLTag_unicode.dll mimeTools.dll NppConverter.dll NppExport.dll PreviewHTML.dll PyNPP.dll PythonScript.dll Tidy2.dll WebEdit.dll XMLTools.dll
    

    Best regards



  • @bolandross

    So it is very likely a plugin causing the problem, I suppose. If I were you I would try removing the spell check one and repeat the test.



  • @Alan-Kilborn said:

    So it is very likely a plugin causing the problem, I suppose. If I were you I would try removing the spell check one and repeat the test.

    You were right, removing DSpellCheck from the plugin folder, solved the problem.

    How did you know?

    And how can I debug the plugin further?



  • @bolandross said:

    How did you know?

    Vast experience! LOL



  • Hello, @bolandross, and All,

    So, now, the goal is : which version of DSpellCheck are you using ?

    Presently, the latest release is the v1.4.11.0 version

    If necessary, download this latest version from below :

    https://github.com/Predelnik/DSpellCheck/releases

    Best Regards,

    guy038



  • @guy038
    Recently dspellcheck can not download and install spelling dictionaries, only manual installation of dictionaries.

    Imgur



  • @andrecool-68

    yes, you are absolutely correct.
    currently you have to disable show only recognized ones to be able to download dictionaries.

    see here for the complete guide: https://notepad-plus-plus.org/community/topic/17416/spell-check



  • @Meta-Chuh
    That’s how it works!
    But what is the reason for this error?



  • @andrecool-68

    i do not know yet.
    i did not search for this at the dspellcheck project or google yet, due to lack of time.
    but maybe @Predelnik could help ?



  • @guy038
    Hey, thanks for the suggestions!

    I was using v1.4.10.0 and updated to v1.4.11.0, but unfortunately the problem stayed.


Log in to reply