Community
    • Login

    Plug-in "Compare" - bug

    Scheduled Pinned Locked Moved General Discussion
    13 Posts 3 Posters 10.3k 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.
    • Mi MeM
      Mi Me
      last edited by

      Thank you, Claudia.
      Unfortunately this bug easily reproduced on all computers I have access to… - 4.

      Steps are the following.

      1. Open Notepad++ with “new1”
      2. Write “abcd”
      3. Double click on bar to open “new2”
      4. write “bcde”
      5. Alt+D
      6. Double click on one side to open “new3”…
        – write there
      7. Double click on other side to open “new4”
        –write there something

      And please do steps 6 and 7 in cycle with pressing (holding) periodically Alt+D.

      If it will not help to reproduce this bug - I will write Screen video…

      Thank you in advance.

      Best wishes,
      Michael

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

        Hello Michael,

        I did test it like you’d advised but wasn’t able to produce the crash.
        Even you do compare action doesn’t necessarily mean this plugin
        is the cause of the problem it might be that another plugin does
        something in parallel which might result in the crash.

        If you could test with being compare plugin the one and only plugin loaded,
        we can, more or less, be sure that this plugin is the reason of the crash.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Mi MeM
          Mi Me
          last edited by

          Dear Claudia,

          please, have a look on the screen-shots and video. There on dropbox: couple of screen-shots and video-file

          The strange behavior of Notepad++, when you start compare New1 (with some text) with blank New2.

          Thank you for your patience and your help.

          Best wishes,
          Michael.

          1 Reply Last reply Reply Quote 0
          • YaronY
            Yaron
            last edited by Yaron

            Hello Michael and Claudia,

            @Michael,

            The “nul” added to new blank files is a known issue.

            Some questions:

            1. I assume you’re using NPP 6.8.8. Is that correct?
            2. Which Compare version are you using? Can you try other versions?
            3. Have you tried removing any other plugins as Claudia has suggested?
            4. Does the crash occur if the NavBar is closed?
            5. Does it occur if you use Plugins -> Compare -> Compare (i.e. instead of Alt+D)?
            6. It’s not clear if it happens only after typing something in the new file.
            7. What do you mean “pressing (holding) periodically Alt+D”?

            Best regards.

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

              Hello Michael,

              yes, confirmed - the trick to crash npp is that one of the files to compare is empty.
              To reproduce the following needs to be done

              Npp gets started with an empty new 1 document.
              Write something into new 1
              open a second empty document (new 2)
              go back to new 1
              press ALT+D

              you see that there is garbage in the new 2 doc, move the mouse to this line -> npp crash

              I guess this isn’t really a use case for compare plugin but it obviously shouldn’t crash npp.

              From generated dump it looks like scintilla is causing the crash.

              ExceptionAddress: 0f79e951 (SciLexer+0x0001e951)
              ExceptionCode: c0000005 (Access violation)
              ExceptionFlags: 00000000
              NumberParameters: 2
              Parameter[0]: 00000001
              Parameter[1]: fffffffc
              Attempt to write to address fffffffc

              But why is it trying to write to this address ??

              By the way, test was made with npp 6.8.8 minimalistic and compare plugin being the only plugin.

              Cheers
              Claudia

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

                Hello Yaron,

                regardless whether navbar is active or not, and
                it doesn’t make a difference if using ALT+D or compare via menu,
                crash happens.

                Cheers
                Claudia

                1 Reply Last reply Reply Quote 0
                • YaronY
                  Yaron
                  last edited by

                  Hello Claudia,

                  Precise and clear as always. :)
                  Thank you.

                  I can reproduce it with 1.5.6.6 (and earlier versions) but not with 1.5.6.7.
                  It’s interesting which of UFO’s modifications makes the difference.
                  Could you please try it?

                  BTW, NPP crashes in some rare cases when using “Compare to last save”.
                  I hardly use that command and haven’t properly tested it.

                  Best regards.

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

                    Hello Yaron,

                    you are right, 1.5.6.7 doesn’t crash npp when having an empty doc but
                    still fills it with a NUL ( but I saw you already opened an issue for this ).

                    To be honest, I use only basic compare functionality ALT+D and ALT+CTRL+D ;-)

                    Thank you
                    Claudia

                    1 Reply Last reply Reply Quote 0
                    • YaronY
                      Yaron
                      last edited by

                      Hello Claudia,

                      Thank you for testing it.
                      And many thanks again for your great contribution on the forum. :)

                      Best regards.

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

                        Hello Yaron,

                        no problem, btw I would bet that the changes made on the 14th of january
                        in compare.cpp line 988 - 1000 fixed it.

                        Cheers
                        Claudia

                        1 Reply Last reply Reply Quote 0
                        • YaronY
                          Yaron
                          last edited by

                          Hello Claudia,

                          As I’ve written before: “Sherlock Holmes!”. Amazing.
                          Well, I’m running out of superlatives. :)

                          Thank you so much.

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