Community
    • Login

    Notepad ++ slow at opening new post

    Scheduled Pinned Locked Moved General Discussion
    19 Posts 5 Posters 11.0k 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.
    • Jonas NyrupJ
      Jonas Nyrup
      last edited by

      @Claudia-Frank
      Thanks for looking into this, I’ll try to give more info to show my problem.
      Please let me know, if there is any specific info you’d like.

      Debug info:
      Notepad++ v7.2.2 (32-bit)
      Build time : Nov 27 2016 - 16:31:07
      Path : C:\Program Files (x86)\Notepad++\notepad++.exe
      Admin mode : OFF
      Local Conf mode : OFF
      OS : Windows 10
      Plugins : mimeTools.dll NppConverter.dll NppExport.dll PluginManager.dll

      Steps:

      • Complete uninstall of npp with removal of custom settings
      • Default install
      • Remove all 3rd party plugins
      • Unchecked “Remember current session for next launch”

      With a fresh npp I tried to open “C:\Program Files (x86)\Notepad++\change.log” which took the aforementioned ~5 seconds.
      I noticed that if I open the same file through most recent files from the File menu, it loads instantly.
      I also tried to uninstall v7.2.2 and installed v6.9.2 for which I don’t remember to have experienced any problems previously. I now see that is also has the problem, so the root cause might be somewhere else.

      Please see the dropbox folder below for a screen recording of the delay I’m experiencing and a complete dump from process monitor for both loading through File->Open (npp-open.csv) and through File->Recent Files (npp-latest.csv).
      https://www.dropbox.com/sh/sxvq4o99a1cjbjp/AAA5RAiyF3qL2rUs6W_ZmEhQa?dl=0

      1 Reply Last reply Reply Quote 0
      • gstaviG
        gstavi
        last edited by

        Some observations from the logs.

        The big delay is just before this line

        30:48.8
        IRP_MJ_CREATE
        C:\Program Files (x86)\Notepad++
        Desired Access: Execute/Traverse, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened 7.79E-05 00:13.7

        Note that this access the directory not the file.

        For the “latest” CSV there is no such access. The file is accessed directly.

        33:44.7
        IRP_MJ_CREATE
        C:\Program Files (x86)\Notepad++\change.log
        Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened 1.86E-05 00:06.7

        A wild guess is that this may be related to the call to SetCurrentDirectory.
        Perhaps some other software (anti virus?) monitors processes and get excited because of the directory change.
        The log is filtered for Notepad++. You should observe the unfiltered log if there is any suspicious other activity between the 2 lines with the big delay.

        If you can build Notepad++ and test it on a system that exhibit the problem you may comment out this call to check the speculation.

        1 Reply Last reply Reply Quote 0
        • Jonas NyrupJ
          Jonas Nyrup
          last edited by

          I think I’ve found the cause…
          While disabling various programs I found out that disconnecting from the internet helped.
          I looked at the complete dump from process monitor, and found an internal ip from my home network together with some tcp/udp traffic.
          By removing a smb share pointing to the home ip (why I don’t have access to at my current location) seems to have solved the problem.

          Now I just wonder why npp (or some api npp uses) tries to connect to an smb share when opening a local file.

          1 Reply Last reply Reply Quote 0
          • gstaviG
            gstavi
            last edited by

            Try to lookup the registry to references to the SMB share. Perhaps some icon or whatever is being taken from there.

            1 Reply Last reply Reply Quote 0
            • Guido DCG
              Guido DC
              last edited by

              @ Claudia Frank

              If I apply the things described in your last post, I get a constant loop of queries to save files. Also I now see that I haven’t the latest version of Notepad. I’ll get the latest version and get back here.

              Claudia FrankC 1 Reply Last reply Reply Quote 0
              • Claudia FrankC
                Claudia Frank @Guido DC
                last edited by

                @Guido-DC

                that is correct, because if you disable remember current session…
                session snapshot and backup functionality gets disabled as well.

                The idea behind this was to ensure that a hidden network file
                gets cleared from history and/or tab because this could explain
                the slowness.

                Cheers
                Claudia

                1 Reply Last reply Reply Quote 0
                • Guido DCG
                  Guido DC
                  last edited by Guido DC

                  So what do you suggest Claudia F. because I have some 12,500 txt files spread over different folders. Am I going to resave all those files ? I see that they are now doubled on my desktop for the one’s that I already resaved on my desktop.

                  Claudia FrankC 1 Reply Last reply Reply Quote 0
                  • Claudia FrankC
                    Claudia Frank @Guido DC
                    last edited by

                    @Guido-DC

                    do you say you have 12500 files open in notepad++??
                    How is this even possible to handle.
                    It affects only the files which are currently open in npp, not every .txt file on the disk.

                    Cheers
                    Claudia

                    1 Reply Last reply Reply Quote 0
                    • Guido DCG
                      Guido DC
                      last edited by Guido DC

                      Thank you Claudia Frank but this is getting more confusing every day. No normally I have only 1 or max 2 *.txt files that are open.

                      All my files that have the txt extension I let them open with Notepad ++ (I know they can be opened with other programs). I just checked how many files that have the txt extension and so eventually will open with Notepad ++ if I doubleclick on them. But there is this row on top of the window of that opens when I doubleclick on a txt file, is that what you mean ? I don’t use that list.

                      If I do the modifications you suggested above I always gets this question if I want to save some file. And what Is it that I get these question ? That’s what confuses me and why and can’t finish your suggestions in the menu’s.

                      Grts,

                      Claudia FrankC 1 Reply Last reply Reply Quote 0
                      • Claudia FrankC
                        Claudia Frank @Guido DC
                        last edited by

                        @Guido-DC

                        let’s summarize to see if we have the same understanding.

                        You use the latest npp version without any additional plugins, correct?

                        You do have open the windows explorer and double click on a file with a txt extension.
                        Notepad++ starts instantly but does not show the content of the file instantly,
                        instead it takes 5 seconds before the content is shown.
                        This does not happen if you open files with other extensions like rtf and doc
                        (side note, can you actually read these documents clearly, because normally they are formatted?)
                        but using the the same method to open ( by using double click in windows explorer), correct?

                        In addition, (the point I don’t understand at all)
                        if you create a new txt file it takes 10 seconds before you even see the empty document and, again, this does not happen if it is a rtf or doc document.
                        How does this work? You cannot open a new txt file you only can open a new
                        file and only after saving it for the first time it becomes a txt, or whatever you choose, file. What do you exactly mean by this?

                        I’ve posted the image about the debug-info, can you post the info, please.

                        As said, when you disable the mentioned settings you need to choose a name
                        for the file to save to when you close npp otherwise the file is gone. This is the
                        normal way when saving files. So what did you do in the meantime - did you reset
                        the settings or do you still use npps automatic saving feature?

                        Cheers
                        Claudia

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