• Login
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.
  • S
    stabker steepson
    last edited by stabker steepson Jan 4, 2017, 1:02 AM Jan 4, 2017, 1:00 AM

    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
    • G
      gstavi
      last edited by Jan 4, 2017, 7:33 AM

      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?
      S 1 Reply Last reply Jan 8, 2017, 3:23 AM Reply Quote 0
      • S
        stabker steepson
        last edited by Jan 4, 2017, 8:58 PM

        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
        • D
          dail
          last edited by Jan 4, 2017, 9:00 PM

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

          S 1 Reply Last reply Jan 4, 2017, 9:19 PM Reply Quote 0
          • S
            stabker steepson @dail
            last edited by Jan 4, 2017, 9:19 PM

            @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
            • D
              dail
              last edited by Jan 4, 2017, 9:20 PM

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

              S 1 Reply Last reply Jan 4, 2017, 9:55 PM Reply Quote 0
              • S
                stabker steepson @dail
                last edited by Jan 4, 2017, 9:55 PM

                @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
                • S
                  stabker steepson
                  last edited by Jan 5, 2017, 4:07 PM

                  At least two other people have confirmed this bug.

                  1 Reply Last reply Reply Quote 0
                  • S
                    stabker steepson
                    last edited by Jan 6, 2017, 12:34 AM

                    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
                    • S
                      stabker steepson @gstavi
                      last edited by stabker steepson Jan 8, 2017, 3:25 AM Jan 8, 2017, 3:23 AM

                      @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
                      • D
                        dail
                        last edited by Jan 8, 2017, 5:21 AM

                        @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.

                        S 1 Reply Last reply Jan 29, 2017, 9:01 PM Reply Quote 1
                        • S
                          stabker steepson @dail
                          last edited by Jan 29, 2017, 9:01 PM

                          @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