Community
    • Login

    Session Manager Error every time Notepad++ is autosaving

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    11 Posts 5 Posters 4.2k 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.
    • SteveS
      Steve
      last edited by

      Hi guys, hope someone can help me out with this because it’s driving me crazy.

      So there was a storm earlier, I lost my power and PC went off of course. After restarting my PC I noticed an error after saving something new in my Notepad++ session.

      I’ll type something new in, after a couple seconds Notepad++ will autosave it then I immediately get a Session Manager Error.

      This is the error: NppPlugin::prp::updateGlobalFromSession: Error 4 saving the global properties file. Error 1224:

      Hope you guys can help me figure this out. On the bright side it looks like Notepad++ is saving new text but this error is popping up every single time right after so I’d like to fix this.

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @Steve
        last edited by

        @Steve

        I never used session manager plugin but my first thought would be that a file, written by this
        plugin has been corrupted. If you post your debug info, which is available via the last menu item, the ? menu, we could find out where to look for such a file.

        1 Reply Last reply Reply Quote 0
        • SteveS
          Steve
          last edited by

          @Ekopalypse

          Hi, nice to see someone offering to help on this issue.

          Here is the debug info below.

          Notepad++ v7.5.3 (32-bit)
          Build time : Dec 5 2017 - 10:45:46
          Path : C:\Program Files (x86)\Notepad++\notepad++.exe
          Admin mode : OFF
          Local Conf mode : OFF
          OS : Windows 10 (64-bit)
          Plugins : AutoSave.dll autosave2.dll DSpellCheck.dll HexEditor.dll mimeTools.dll NppConverter.dll NppExport.dll PluginManager.dll SessionMgr.dll

          Thank you very much for your time trying to help me with this.

          EkopalypseE 1 Reply Last reply Reply Quote 0
          • EkopalypseE
            Ekopalypse @Steve
            last edited by

            @Steve

            as your local conf mode is off, configuration files should be available in
            your APPDATA directory. Meaning, you should see a directory
            %APPDATA%\notepad++\plugins\config
            which contains a file used by session manager plugin.
            What the name of such a file is, I don’t know but I would assume that once you see the content
            of the config directory you can guess which file it is.
            My first try would be

            1. renaming that file
            2. start npp
            3. check if the file has been recreated and if error is gone.
              if this doesn’t help post the content of the config and the plugins directory from the appdata directory.
            1 Reply Last reply Reply Quote 3
            • SteveS
              Steve
              last edited by Steve

              I really don’t want to mess with the wrong file and break my notepad++ so I’ll just show you what it looks like in those directories.

              Screenshot: https://imgur.com/T8hDA4V

              EkopalypseE 1 Reply Last reply Reply Quote 0
              • EkopalypseE
                Ekopalypse @Steve
                last edited by

                @Steve

                Except for autosave.ini and SessionMgr directory I know that the others are NOT part of the session manager plugin and used by other plugins.
                So. because of autosave functionality I would give it a first try to rename AutoSave.ini to AutoSave.txt and restart npp.
                If this doesn’t help, I would rename the SessionMgr directory to SessionMgr2 and give it another try.

                1 Reply Last reply Reply Quote 1
                • SteveS
                  Steve
                  last edited by

                  What!

                  YOU DID IT!

                  Renaming the SessionMgr folder to SessionMgr2 actually fixed it! No more errors!

                  How is that such a simple change solved this problem? I don’t understand. Because the error was saying something about GlobalProperties and I’m thinking there is some kind of file that is broken and there’s no way to replace it because it’s unique to my notepad++ session but a simple folder rename fixed it?! That’s amazing, you’re a genius, can’t thank you enough.

                  But I just can’t help but to think I’m missing something, I’m worried there might be some broken/corrupted file somewhere and worried at the thought of that broken file breaking other things in the future. Because I have a lot of important saved information in my Notepad++ files like usernames/passwords, todo lists, etc

                  Thank you very much Ekopalypse. The only one coming to help me immediately solved my problem. If you have a paypal I’d like to send you a small donation just as thanks for that.

                  Alan KilbornA EkopalypseE 2 Replies Last reply Reply Quote 2
                  • Alan KilbornA
                    Alan Kilborn @Steve
                    last edited by

                    @Steve said:

                    How is that such a simple change solved this problem?

                    Not so hard to understand. There was something “corrupt” in the existing file(s); removing them forced the plugin to see that they were gone and recreating default config files (which, of course work just fine).

                    1 Reply Last reply Reply Quote 2
                    • EkopalypseE
                      Ekopalypse @Steve
                      last edited by

                      @Steve - my pleasure and I can only second what @Alan-Kilborn said

                      1 Reply Last reply Reply Quote 3
                      • Steven GlickS
                        Steven Glick
                        last edited by

                        @Ekopalypse said in Session Manager Error every time Notepad++ is autosaving:

                        rename the SessionMgr directory to SessionMgr2

                        This problem has been bugging me for months.

                        As suggested here, I renamed the SessionMgr directory to SessionMgr2 and then restarted NPP. The problem was gone!

                        Thanks.

                        1 Reply Last reply Reply Quote 1
                        • Arnaldo CavalcantiA
                          Arnaldo Cavalcanti
                          last edited by

                          Remove the file “C:\Users<User>\AppData\Roaming\Notepad++\plugins\Config\SessionMgr\global.xml” and restart the Notepad++

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