Community
    • Login

    Unnamed strange problem (v7.2.2 and previous)

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    12 Posts 3 Posters 5.6k 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.
    • stabker steepsonS
      stabker steepson
      last edited by stabker steepson

      Hey. First of all sorry for my bad English! There is a strange bug when i coding in two tabs. Sometimes this thing (look at the screenshot) just appears, and i’m not sure, but i think this happen randomly when i print “{” symbol. And then two tabs of the same document doesn’t sync. Ctrl+Z doesn’t helps. Thanks for support.

      Screenshot

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

        Very strange indeed.

        My thoughts:

        • The fact that EOL symbols start appearing in middle of view hints toward Scintilla rendering problem rather than document text corruption. A guess would be some memory overrun bug that among other things turns on the rendering flag.
        • Since same file is opened in second tab I wonder what do you see when you scroll to same location there.
        • What plugins do you have installed?
        • How often does it happen?
        • If you re-ecnode file to UTF8, can you still reproduce this issue?
        • Does it also happen with smaller files?
        • After it happens if you “save as” to different name, relaunch npp and open it, is the file corrupted?
        stabker steepsonS 1 Reply Last reply Reply Quote 0
        • stabker steepsonS
          stabker steepson
          last edited by

          Since same file is opened in second tab I wonder what do you see when you scroll to same location there.

          I will check it next time.

          What plugins do you have installed?

          Compare, Converter, MIME Tools, NppExec, NppExport

          How often does it happen?

          Not really often, maybe every ~10 coding seances. But enough to be annoying.

          If you re-ecnode file to UTF8, can you still reproduce this issue?

          I don’t know how to reproduce this. I have only a guess that this caused by two tabs of the same document + ‘{’ symbol + enter. Maybe this bug caused by auto-tabulation?

          Does it also happen with smaller files?

          It never happened with smaller files. But i work really rarely with smaller files and never in two tabs.

          After it happens if you “save as” to different name, relaunch npp and open it, is the file corrupted?

          I’ll check next time. But i think no, because when this appears with document on screenshot, i just press Ctrl+Z for a few times, reload Notepad (without saving), and then document looks OK, except two tabs doesn’t synced and behave like two different documents! Then i got to choose, which of them i need to save, and which to close “without saving”.


          There is also one thing that maybe could help. When i scroll document at the end, there is a “}” brace, that added automatically. And as i remember, it adds only to one of tabs. I’ll try to check it next time when bug appears.

          1 Reply Last reply Reply Quote 0
          • dailD
            dail
            last edited by

            Turn off periodic backups. It is known to corrupt large files.

            stabker steepsonS 1 Reply Last reply Reply Quote 0
            • stabker steepsonS
              stabker steepson @dail
              last edited by

              @dail said:

              Turn off periodic backups. It is known to corrupt large files.

              Can you tell me or better show a screenshot where exactly i got to do that? Because looks like it disabled now.

              1 Reply Last reply Reply Quote 0
              • dailD
                dail
                last edited by

                Settings > Preferences > Backup > Enable session snapshot and periodic backups

                stabker steepsonS 1 Reply Last reply Reply Quote 0
                • stabker steepsonS
                  stabker steepson @dail
                  last edited by

                  @dail well… periodic backups were always disabled for me, so this is not a reason. Only session snapshot is enabled.

                  1 Reply Last reply Reply Quote 0
                  • stabker steepsonS
                    stabker steepson
                    last edited by

                    At least two other people have confirmed this bug.

                    1 Reply Last reply Reply Quote 0
                    • stabker steepsonS
                      stabker steepson
                      last edited by

                      I taped a bit of coding process and here what i got https://www.youtube.com/watch?v=Y-obRpiFlcQ
                      This thing happened to me for a few times today…

                      1 Reply Last reply Reply Quote 0
                      • stabker steepsonS
                        stabker steepson @gstavi
                        last edited by stabker steepson

                        @gstavi Hey.

                        I deleted all plugins except NppExec. Guess what i got today? Watch this video https://www.youtube.com/watch?v=bZB2cRFAAHY
                        So… will it be fixed?

                        1 Reply Last reply Reply Quote 0
                        • dailD
                          dail
                          last edited by

                          @stabker-steepson

                          Only session snapshot is enabled.

                          As I said before make sure to turn off session snapshot.

                          Here is a reproducible test case for this bug:

                          1. Open a file from disc
                          2. Clone the file to the other view
                          3. Make sure “Remember Current Session” is enabled
                          4. Make sure “Session snapshot and periodic backup” is enabled
                          5. Leave the file in an unsaved state
                          6. Restart N++
                          7. Observe that the files are no longer in “sync” when they are edited

                          Note: If at step 4 “Session snapshot and periodic backup” is disabled, the everything works fine.

                          stabker steepsonS 1 Reply Last reply Reply Quote 1
                          • stabker steepsonS
                            stabker steepson @dail
                            last edited by

                            @dail thx, seems like you’re right. I have been disabled all items and everything is alright.

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