Plug-in "Compare" - bug
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.
Mi Me last edited by
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.
Yaron last edited by Yaron
Hello Michael and Claudia,
The “nul” added to new blank files is a known issue.
- I assume you’re using NPP 6.8.8. Is that correct?
- Which Compare version are you using? Can you try other versions?
- Have you tried removing any other plugins as Claudia has suggested?
- Does the crash occur if the NavBar is closed?
- Does it occur if you use Plugins -> Compare -> Compare (i.e. instead of Alt+D)?
- It’s not clear if it happens only after typing something in the new file.
- What do you mean “pressing (holding) periodically Alt+D”?
Claudia Frank last edited by Claudia Frank
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
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)
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.
regardless whether navbar is active or not, and
it doesn’t make a difference if using ALT+D or compare via menu,
Precise and clear as always. :)
I can reproduce it with 220.127.116.11 (and earlier versions) but not with 18.104.22.168.
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.
you are right, 22.214.171.124 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 for testing it.
And many thanks again for your great contribution on the forum. :)
no problem, btw I would bet that the changes made on the 14th of january
in compare.cpp line 988 - 1000 fixed it.
As I’ve written before: “Sherlock Holmes!”. Amazing.
Well, I’m running out of superlatives. :)
Thank you so much.