Weird crash
-
I’m struggling with a strange crash that is somehow unique.
Multiple links in a document.
If you hold down the CTRL key and randomly and continuously click on the links with the mouse, this will result in a(47e8.4860): Access violation - code c0000005 (first chance) First chance exceptions are reported before any exception handling. This exception may be expected and handled. notepad__!TiXmlNode::Identify+0x1f3: 00007ff6`e8900da3 6642833c4000 cmp word ptr [rax+r8*2],0 ds:00000000`00000000=????
no plugins loaded
0:000> lm start end module name 00000000`60290000 00000000`603ee000 amdenc64 (export symbols) C:\WINDOWS\System32\DriverStore\FileRepository\u0418637.inf_amd64_4462a7afa694670e\B418564\amdenc64.dll 00007ff6`e86e0000 00007ff6`e8f34000 notepad__ C (private pdb symbols) c:\portableapps\npp\notepad++.pdb 00007ff9`15dc0000 00007ff9`15dcb000 SensApi (deferred) 00007ff9`20720000 00007ff9`20792000 verifier (deferred) 00007ff9`32e00000 00007ff9`32e5a000 dataexchange (deferred) 00007ff9`33b40000 00007ff9`33dd3000 COMCTL32 (deferred) 00007ff9`39e90000 00007ff9`39ed9000 icm32 (deferred) 00007ff9`3b250000 00007ff9`3b39a000 textinputframework (deferred) 00007ff9`3b6c0000 00007ff9`3b773000 TextShaping (deferred) 00007ff9`3e520000 00007ff9`3e549000 srvcli (deferred) 00007ff9`3e550000 00007ff9`3e815000 iertutil (deferred) 00007ff9`41570000 00007ff9`417f9000 WININET (deferred) 00007ff9`44630000 00007ff9`446f1000 mscms (deferred) 00007ff9`46ac0000 00007ff9`46d05000 twinapi_appcore (deferred) 00007ff9`46ed0000 00007ff9`46f0c000 amdihk64 (deferred) 00007ff9`473c0000 00007ff9`473cb000 VERSION (deferred) 00007ff9`473f0000 00007ff9`47413000 atidxx64 (deferred) 00007ff9`476d0000 00007ff9`476db000 IconCodecService (deferred) 00007ff9`47770000 00007ff9`477a5000 WINMM (deferred) 00007ff9`47cb0000 00007ff9`4ac5b000 amdxx64 (deferred) 00007ff9`4b3d0000 00007ff9`4b6b3000 CoreUIComponents (deferred) 00007ff9`4bce0000 00007ff9`4bd43000 directxdatabasehelper (deferred) 00007ff9`4d4c0000 00007ff9`4d6f0000 WindowsCodecs (deferred) 00007ff9`4d700000 00007ff9`4dd3c000 D2D1 (deferred) 00007ff9`4dd40000 00007ff9`4dfa2000 D3D11 (deferred) 00007ff9`4dfb0000 00007ff9`4e217000 DWRITE (deferred) 00007ff9`4e890000 00007ff9`4e9b5000 CoreMessaging (deferred) 00007ff9`4ed10000 00007ff9`4edaf000 apphelp (deferred) 00007ff9`4ef10000 00007ff9`4f04b000 dxgi (deferred) 00007ff9`4f060000 00007ff9`4f10a000 UxTheme (deferred) 00007ff9`4f5e0000 00007ff9`4f60d000 dwmapi (deferred) 00007ff9`4f810000 00007ff9`4f854000 dxcore (deferred) 00007ff9`4fe50000 00007ff9`506ad000 windows_storage (deferred) 00007ff9`50970000 00007ff9`5097d000 netutils (deferred) 00007ff9`50f90000 00007ff9`50fab000 kernel_appcore (deferred) 00007ff9`51930000 00007ff9`5193c000 CRYPTBASE (deferred) 00007ff9`51940000 00007ff9`5197b000 rsaenh (deferred) 00007ff9`51980000 00007ff9`51993000 MSASN1 (deferred) 00007ff9`522f0000 00007ff9`52532000 dbghelp (deferred) 00007ff9`52660000 00007ff9`5267b000 CRYPTSP (deferred) 00007ff9`526b0000 00007ff9`52707000 cfgmgr32 (deferred) 00007ff9`52970000 00007ff9`52984000 UMPDC (deferred) 00007ff9`52990000 00007ff9`529ee000 powrprof (deferred) 00007ff9`52a20000 00007ff9`52a46000 bcrypt (deferred) 00007ff9`52b30000 00007ff9`52c5d000 gdi32full (deferred) 00007ff9`52c60000 00007ff9`52c87000 win32u (export symbols) C:\WINDOWS\System32\win32u.dll 00007ff9`52d50000 00007ff9`52df3000 msvcp_win (deferred) 00007ff9`52e00000 00007ff9`531f2000 KERNELBASE (deferred) 00007ff9`53200000 00007ff9`53377000 CRYPT32 (deferred) 00007ff9`53380000 00007ff9`533ff000 WINTRUST (deferred) 00007ff9`53410000 00007ff9`5357b000 wintypes (deferred) 00007ff9`53580000 00007ff9`53618000 bcryptPrimitives (deferred) 00007ff9`53620000 00007ff9`5376b000 ucrtbase (deferred) 00007ff9`53770000 00007ff9`5379f000 IMM32 (deferred) 00007ff9`53850000 00007ff9`53870000 imagehlp (deferred) 00007ff9`53960000 00007ff9`53a52000 shcore (deferred) 00007ff9`53a60000 00007ff9`53b06000 sechost (deferred) 00007ff9`53b20000 00007ff9`53b4b000 GDI32 (deferred) 00007ff9`53b50000 00007ff9`53c19000 KERNEL32 (export symbols) C:\WINDOWS\System32\KERNEL32.DLL 00007ff9`53c20000 00007ff9`53c82000 SHLWAPI (deferred) 00007ff9`53ce0000 00007ff9`53d91000 clbcatq (deferred) 00007ff9`53da0000 00007ff9`53e54000 ADVAPI32 (deferred) 00007ff9`53e60000 00007ff9`53f37000 OLEAUT32 (deferred) 00007ff9`53f40000 00007ff9`543c8000 SETUPAPI (deferred) 00007ff9`543d0000 00007ff9`54479000 msvcrt (deferred) 00007ff9`54480000 00007ff9`54bcd000 SHELL32 (deferred) 00007ff9`54e40000 00007ff9`55005000 USER32 (export symbols) C:\WINDOWS\System32\USER32.dll 00007ff9`55010000 00007ff9`5516b000 MSCTF (deferred) 00007ff9`55170000 00007ff9`55263000 COMDLG32 (deferred) 00007ff9`552f0000 00007ff9`55408000 RPCRT4 (deferred) 00007ff9`55410000 00007ff9`5578b000 combase (deferred) 00007ff9`557c0000 00007ff9`55958000 ole32 (deferred) 00007ff9`559a0000 00007ff9`55c08000 ntdll (export symbols) C:\WINDOWS\SYSTEM32\ntdll.dll Unloaded modules: 00007ff9`4fb20000 00007ff9`4fb34000 resourcepolicyclient.dll
Having said this, I’m not able to replicate running the debug version in VS Studio Debugger.
In addition, a new portable download does not seem to be affected as well. (was using dark and light mode for testing)
.
The only way I’ve found so far is to create a production version with debug symbols, then I can force the crash relatively easily.So my conclusion is that this is somehow related to my work environment, but as I said, plugins are not involved.
-
Of course, I had an idea immediately after posting.
Since it crashes in an XML-related function, you could try removing these files one by one and see if that fixes the problem.
And indeed, I couldn’t reproduce the problem after creating a new config.xml.
Let’s try to find out what caused this in the old xml. If that was indeed the reason. -
Found something.
Downloaded the new portable version.
and opened the config.xml file in another editor and changed
useFindSettings="no"
from the SmartHighLight node touseFindSettings="yes"
.Now the same crash occurs.
Can someone please confirm this?
Thank you. -
Hello,
I’m also able to crash the Notepad++ 8.8.6 in similar circonstances.
I’m not an expert debugger like you seem to be, but here is the crash report I get from Windows :
Signature du problème : Nom d’événement de problème: BEX Nom de l’application: notepad++.exe Version de l’application: 8.8.6.0 Horodatage de l’application: 00000000 Nom du module par défaut: StackHash_2fd1 Version du module par défaut: 0.0.0.0 Horodateur du module par défaut: 00000000 Décalage de l’exception: 0040df98 Code de l’exception: c0000005 Données d’exception: 00000008
I can see the code c0000005 which is common with you.
I can produce the crash without link, just with ctrl+click fastly in an empty file.
And can also produce a crash with alt+click and moving my cursor.This happens only if I build myself from the code (with no modification) from Notepad++ github source, in 8.8.6.
I can’t reproduce if I download directly a 8.8.6 build from Notepad++. I also can’t reproduce if I build myself from 8.8.5 source.
I discovered that disabling Smart Highlighting (which works perfectly) prevent the crash and I can alt+click or ctrl+click without crash.
-
Thank you very much—I am currently away on family business. I will continue working on it later if no one has found a solution by then.
-
Issue opened.
-
I recompiled with your code modification and I can’t crash Notepad++ anymore ! :)
So I can confirm your modification fixes the issue on my side. Thank you !