• Login
Community
  • Login

Notepad++ closing automatically just after opening

Scheduled Pinned Locked Moved General Discussion
17 Posts 7 Posters 4.9k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    Atharv Singh
    last edited by Nov 21, 2020, 5:32 AM

    For some reason I cannot open *.txt files( I haven’t tried on other file types). It just closes as soon as it opens them.

    P 1 Reply Last reply Nov 21, 2020, 6:51 PM Reply Quote 0
    • A
      Allan346
      last edited by Nov 21, 2020, 8:18 AM

      Might be crashing, but reinstalling the latest version may can fix the issue.

      A 1 Reply Last reply Dec 30, 2020, 6:30 AM Reply Quote 0
      • P
        PeterJones @Atharv Singh
        last edited by Nov 21, 2020, 6:51 PM

        @Atharv-Singh ,

        If you open notepad++ without a specific file, does it stay open? If so, could you share ? menu, debug info.

        But, as @Allan346 says, installing the most recent version might fix the issue.

        A 1 Reply Last reply Dec 30, 2020, 6:34 AM Reply Quote 0
        • J
          jabcreations
          last edited by Dec 10, 2020, 2:26 PM

          Open the Task Manager (click “More details” at the bottom left if you haven’t done this years ago) and see if the process is already running though somehow missing a task on the taskbar. If it’s not then that isn’t the issue. At that point I’d try renaming the AppData profile information and see if it’s a profile bug. That folder is located at C:\Users[YOUR_USER_NAME]\AppData\Roaming\Notepad++; be sure to use the proper Windows user name.

          1 Reply Last reply Reply Quote 0
          • A
            Atharv Singh @Allan346
            last edited by Dec 30, 2020, 6:30 AM

            @Allan346 I have done it and I have even downgraded to other versions

            1 Reply Last reply Reply Quote 0
            • A
              Atharv Singh
              last edited by Dec 30, 2020, 6:33 AM

              Sorry for the late response I did not know the community would offer help so fast.

              1 Reply Last reply Reply Quote 0
              • A
                Atharv Singh @PeterJones
                last edited by Dec 30, 2020, 6:34 AM

                @PeterJones It doesn’t

                1 Reply Last reply Reply Quote 0
                • A
                  Atharv Singh
                  last edited by Dec 30, 2020, 6:40 AM

                  Alright so, after many days (today) I decided to reinstall Notepad++ and for some reason it works again.

                  1 Reply Last reply Reply Quote 1
                  • N
                    Nika Tsiklauri
                    last edited by Apr 30, 2022, 5:40 PM

                    Hello everyone! Out of sudden, I have that same problem. Tried above steps, tried to reinstall notepad++ several times, even different versions. It all started when I updated notepad++. When I needed to open file in editor, it just suddenly closed. Now, I tried these suggestions, but the issue persist. What else can I do? I’ve observed that sometimes it stays open, but when it happens and when I press arrow keys (because I am a screen reader user), it closes. I have tried to disable the screen reader to check if the issue was there and then reopened again, but issue is still there. Then I have tried to open notepad++ from the command line to see if it displayed some output so I could know what’s going on, no outputs. What else should I do? Thanks in advance.

                    P 1 Reply Last reply Apr 30, 2022, 5:44 PM Reply Quote 0
                    • P
                      PeterJones @Nika Tsiklauri
                      last edited by Apr 30, 2022, 5:44 PM

                      @nika-tsiklauri ,

                      Unlike the discussion from two years ago, I am guessing that yours is likely because you are using Notepad++ v8.3 or newer, but have an old plugin installed which is now incompatible (there was a plugin API change at v8.3). Try running with the -noPlugin argument. If that works, then you will need to look at which plugins you are using, and get new versions of any that have updated.

                      And, as I said two years ago, sharing ?-menu’s Debug Info is helpful for diagnosing problems (if you can get to that point – if not, right click on notepad++.exe and look at the Details tab to let us know version info, etc)

                      N M 2 Replies Last reply May 4, 2022, 7:19 PM Reply Quote 2
                      • N
                        Nika Tsiklauri @PeterJones
                        last edited by May 4, 2022, 7:19 PM

                        @peterjones Thanks for so quick reply. I was able to get to that point. Here’s the info requested.

                        Notepad++ v8.4 (64-bit)
                        Build time : Apr 20 2022 - 03:31:06
                        Path : C:\Program Files\Notepad++\notepad++.exe
                        Command Line :
                        Admin mode : OFF
                        Local Conf mode : OFF
                        Cloud Config : OFF
                        OS Name : Windows 10 Pro (64-bit)
                        OS Version : 2009
                        OS Build : 19043.1645
                        Current ANSI codepage : 1252
                        Plugins : mimeTools.dll NppBplistPlugin.dll nppConverter.dll nppplugin_svn.dll

                        Besides that, I have noticed that when I press the left arrow key on keyboard it exits. Here is the details section of the file itself from the source folder:

                        file version: 8.4.0.0
                        product version: 8.4
                        size: 5.92 mb
                        Is there any other information I can provide to debug this?
                        Thanks

                        P 1 Reply Last reply May 4, 2022, 8:13 PM Reply Quote 0
                        • P
                          PeterJones @Nika Tsiklauri
                          last edited by May 4, 2022, 8:13 PM

                          @nika-tsiklauri said in Notepad++ closing automatically just after opening:

                          Plugins : mimeTools.dll NppBplistPlugin.dll nppConverter.dll nppplugin_svn.dll

                          The svn plugin hasn’t been updated since 2019; the bplist since 2020. That means both of them are potential causes, because neither have been updated since Notepad++ v8.3 came out recently. (The other two are distributed with Notepad++ and are known-working plugins, so aren’t the problem).

                          Again, I say, “Try running with the -noPlugin argument.” If that works, then the problem is with one or both of those two plugins. I was able to install both those plugins and create a new document and arrow around, but I didn’t actually use them, so it might be that under your setup, they are actually calling one of the changed API calls, and thus causing the crash. To narrow it down, rename either C:\Program Files\Notepad++\Plugins\NppBplistPlugin or C:\Program Files\Notepad++\Plugins\nppplugin_svn to disable one of the two plugins and run Notepad++ again – if Notepad++ works when you disable one of those, then that is the culprit plugin. Once you have determined which plugin is the culprit, report the issues on their individual issues page: bplist plugin issues, svn plugin issues

                          N 1 Reply Last reply May 8, 2022, 12:23 PM Reply Quote 4
                          • N
                            Nika Tsiklauri @PeterJones
                            last edited by May 8, 2022, 12:23 PM

                            @peterjones I’ve uninstalled all above mentioned plugins, same issue occurs after arrowing to the left. Please see log below.

                            Notepad++ v8.4 (64-bit)
                            Build time : Apr 20 2022 - 03:31:06
                            Path : C:\Program Files\Notepad++\notepad++.exe
                            Command Line :
                            Admin mode : OFF
                            Local Conf mode : OFF
                            Cloud Config : OFF
                            OS Name : Windows 10 Pro (64-bit)
                            OS Version : 2009
                            OS Build : 19043.1645
                            Current ANSI codepage : 1252
                            Plugins : mimeTools.dll nppConverter.dll

                            I am thinking to uninstall notepad++ and reinstall it again since all of those plugins are out of system now.

                            N 1 Reply Last reply May 8, 2022, 1:11 PM Reply Quote 0
                            • N
                              Nika Tsiklauri @Nika Tsiklauri
                              last edited by May 8, 2022, 1:11 PM

                              I have installed the older version, 8.2.1 and it works fine for now. Probably will wait untill next version comes up, maybe the issue will be fixed then.

                              R 1 Reply Last reply May 8, 2022, 7:27 PM Reply Quote 0
                              • R
                                rdipardo @Nika Tsiklauri
                                last edited by May 8, 2022, 7:27 PM

                                @nika-tsiklauri,

                                I am a screen reader user

                                As reported on GitHub, you cannot safely use any current 64-bit Notepad++ version with the NVDA or JAWS screen reader:

                                • https://github.com/notepad-plus-plus/notepad-plus-plus/issues/11629

                                • https://github.com/notepad-plus-plus/notepad-plus-plus/issues/11424

                                Unfortunately, it’s the screen readers that have to adapt, so I would stick with 8.2.1 or else use 32-bit Notepad++ for the time being.

                                The maintainer of the underlying software component is aware of the problem and recently addressed it on the Scintilla mailing list:

                                When Scintilla implemented support for documents larger than 2GB, most of its APIs were able to support 64-bit positions. However, some were defined with structs containing fixed width position fields which were not changed. The key Sci_CharacterRange struct uses ‘long’ for positions which is 64-bit on 64-bit Unix systems but 32-bit on 64-bit Win32 systems.

                                The SCI_GETTEXTRANGE API was thus unable to retrieve text past the 2GB point in huge documents on Windows. This API is sometimes used between running applications for automation and accessibility purposes. This makes it more difficult to change since some applications would be compiled with the new definition and some with the old definition which would cause crashes.

                                N 1 Reply Last reply May 21, 2022, 1:47 PM Reply Quote 2
                                • N
                                  Nika Tsiklauri @rdipardo
                                  last edited by May 21, 2022, 1:47 PM

                                  @rdipardo Got it, Thanks. have read the github page and saw that my screen reader would fix it in the 2022 update. Thanks.

                                  1 Reply Last reply Reply Quote 1
                                  • M
                                    Maris Novozilovs @PeterJones
                                    last edited by Feb 25, 2025, 11:52 AM

                                    @PeterJones The issue is still happening from time to time even now (in 2025), but Your solution still works. Big Thanks!

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post
                                    The Community of users of the Notepad++ text editor.
                                    Powered by NodeBB | Contributors