Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Plugin crash after quit NP (EAccessViolation)

HTMLTag
Stefan M.
2010-11-21
2013-05-21
  • Stefan M.
    Stefan M.
    2010-11-21

    Version 3.1 and 3.2 of this plugin crash after quit Notepad++.
    Exception EAccessViolation in module HTMLTag_unicode.dll…
    Using Notepad++ 5.8.4 Unicode on Windows 7 - 64 bit.

    Don't know which informations you may need.

     
  • Stefan M.
    Stefan M.
    2010-11-21

    Maybe this helps you: 3.0.482 is the last working version of the HTMLTag plugin.

     
  • Hi Stefan,

    Yes, I’m aware of this, but I have no clue as to what is causing it…

    Could you try using this special debug build:
    http://martijn.coppoolse.com/software/download/HTMLTag_0.3.543_debug.zip
    and then send me the generated log file?

    I can’t reproduce the problem on either of my own computers (both running Windows 7, one 32-bits and the other 64-bits), though I’ve heard others have the same problem.

     
  • Adnan
    Adnan
    2011-02-09

    Hi. I'm experiencing the same problem. Here is my debug log:

    2011-02-09 11:55:24.431: setInfo
                             NppData: $00140174
    2011-02-09 11:55:24.431: SendMessage
                             hWnd: 3934922; Message: 2070 [NPPM_GETPLUGINSCONFIGDIR]; wParam: 260; lParam: 0x0013FF24
    2011-02-09 11:55:24.431: SendMessage
                             hWnd: 3934922; Result: 1
    2011-02-09 11:55:24.432: getFuncsArray
                             Count=8 ==> $0502ACA8 (&Find matching tag)
    2011-02-09 11:55:24.442: getName
                             ==> &HTML Tag
    2011-02-09 11:55:24.458: messageProc
                             Message=3; wParam=0, lParam=11993096; ==> 0
    2011-02-09 11:55:24.488: messageProc
                             Message=5; wParam=0, lParam=116; ==> 0
    2011-02-09 11:55:24.491: messageProc
                             Message=5; wParam=0, lParam=116; ==> 0
    2011-02-09 11:55:24.491: messageProc
                             Message=5; wParam=0, lParam=116; ==> 0
    2011-02-09 11:55:24.492: messageProc
                             Message=5; wParam=0, lParam=116; ==> 0
    2011-02-09 11:55:24.492: messageProc
                             Message=5; wParam=0, lParam=116; ==> 0
    2011-02-09 11:55:24.493: messageProc
                             Message=5; wParam=0, lParam=116; ==> 0
    2011-02-09 11:55:24.493: messageProc
                             Message=5; wParam=0, lParam=116; ==> 0
    2011-02-09 11:55:24.494: messageProc
                             Message=3; wParam=0, lParam=18811025; ==> 0
    2011-02-09 11:55:24.496: messageProc
                             Message=5; wParam=0, lParam=39388075; ==> 0
    2011-02-09 11:55:24.498: messageProc
                             Message=3; wParam=0, lParam=2754432; ==> 0
    2011-02-09 11:55:24.500: messageProc
                             Message=5; wParam=2, lParam=68028288; ==> 0
    2011-02-09 11:55:37.704: messageProc
                             Message=5; wParam=0, lParam=68028288; ==> 0
    2011-02-09 11:55:44.703: TApplication.GetDocument
    2011-02-09 11:55:44.703: SendMessage
                             hWnd: 3934922; Message: 2028 [NPPM_GETCURRENTSCINTILLA]; wParam: 0; lParam: 0x0013E7EC
    2011-02-09 11:55:44.703: SendMessage
                             hWnd: 3934922; Result: 1
    2011-02-09 11:55:44.703: TApplication.GetDocument
                             Handle: 1967628
    2011-02-09 11:55:44.704: SendMessage
                             hWnd: 1967628; Message: 2145 [SCI_GETSELECTIONEND]; wParam: 0; lParam: 0
    2011-02-09 11:55:44.704: SendMessage
                             hWnd: 1967628; Result: 11
    2011-02-09 11:55:44.704: SendMessage
                             hWnd: 1967628; Message: 2143 [SCI_GETSELECTIONSTART]; wParam: 0; lParam: 0
    2011-02-09 11:55:44.704: SendMessage
                             hWnd: 1967628; Result: 0
    2011-02-09 11:55:44.704: SendMessage
                             hWnd: 1967628; Message: 2161 [SCI_GETSELTEXT]; wParam: 0; lParam: 0x05039BBC
    2011-02-09 11:55:44.704: SendMessage
                             hWnd: 1967628; Result: 12
    2011-02-09 11:55:44.704: SendMessage
                             hWnd: 1967628; Message: 2137 [SCI_GETCODEPAGE]; wParam: 0; lParam: 0
    2011-02-09 11:55:44.704: SendMessage
                             hWnd: 1967628; Result: 0
    2011-02-09 11:55:44.704: TSelection.GetText
                             It`s great! 
    2011-02-09 11:55:44.704: SendMessage
                             hWnd: 3934922; Message: 2029 [NPPM_GETCURRENTLANGTYPE]; wParam: 0; lParam: 0x0013E7E0
    2011-02-09 11:55:44.704: SendMessage
                             hWnd: 3934922; Result: 1
    2011-02-09 11:55:44.704: LoadEntities
                             Set "HTML 4"
    2011-02-09 11:55:44.720: LoadEntities
                             Lines loaded: 293
    2011-02-09 11:55:44.720: LoadEntities
                             251 entities loaded
    2011-02-09 11:55:50.695: TApplication.GetDocument
    2011-02-09 11:55:50.695: SendMessage
                             hWnd: 3934922; Message: 2028 [NPPM_GETCURRENTSCINTILLA]; wParam: 0; lParam: 0x0013E86C
    2011-02-09 11:55:50.696: SendMessage
                             hWnd: 3934922; Result: 1
    2011-02-09 11:55:50.696: TApplication.GetDocument
                             Handle: 1967628
    2011-02-09 11:55:50.696: SendMessage
                             hWnd: 1967628; Message: 2145 [SCI_GETSELECTIONEND]; wParam: 0; lParam: 0
    2011-02-09 11:55:50.696: SendMessage
                             hWnd: 1967628; Result: 11
    2011-02-09 11:55:50.696: SendMessage
                             hWnd: 1967628; Message: 2143 [SCI_GETSELECTIONSTART]; wParam: 0; lParam: 0
    2011-02-09 11:55:50.696: SendMessage
                             hWnd: 1967628; Result: 0
    2011-02-09 11:55:50.696: SendMessage
                             hWnd: 1967628; Message: 2161 [SCI_GETSELTEXT]; wParam: 0; lParam: 0x05039CBC
    2011-02-09 11:55:50.696: SendMessage
                             hWnd: 1967628; Result: 12
    2011-02-09 11:55:50.696: SendMessage
                             hWnd: 1967628; Message: 2137 [SCI_GETCODEPAGE]; wParam: 0; lParam: 0
    2011-02-09 11:55:50.696: SendMessage
                             hWnd: 1967628; Result: 0
    2011-02-09 11:55:50.696: TSelection.GetText
                             It`s great! 
    2011-02-09 11:55:50.696: SendMessage
                             hWnd: 3934922; Message: 2029 [NPPM_GETCURRENTLANGTYPE]; wParam: 0; lParam: 0x0013E860
    2011-02-09 11:55:50.696: SendMessage
                             hWnd: 3934922; Result: 1
    2011-02-09 11:55:50.696: LoadEntities
                             Set "HTML 4"
    2011-02-09 11:56:03.175: TApplication.GetDocument
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 3934922; Message: 2028 [NPPM_GETCURRENTSCINTILLA]; wParam: 0; lParam: 0x0013E7EC
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 3934922; Result: 1
    2011-02-09 11:56:03.175: TApplication.GetDocument
                             Handle: 1967628
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 1967628; Message: 2145 [SCI_GETSELECTIONEND]; wParam: 0; lParam: 0
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 1967628; Result: 3
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 1967628; Message: 2143 [SCI_GETSELECTIONSTART]; wParam: 0; lParam: 0
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 1967628; Result: 0
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 1967628; Message: 2161 [SCI_GETSELTEXT]; wParam: 0; lParam: 0x050410CC
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 1967628; Result: 4
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 1967628; Message: 2137 [SCI_GETCODEPAGE]; wParam: 0; lParam: 0
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 1967628; Result: 0
    2011-02-09 11:56:03.175: TSelection.GetText
                             A&D 
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 3934922; Message: 2029 [NPPM_GETCURRENTLANGTYPE]; wParam: 0; lParam: 0x0013E7E0
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 3934922; Result: 1
    2011-02-09 11:56:03.175: LoadEntities
                             Set "HTML 4"
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 1967628; Message: 2137 [SCI_GETCODEPAGE]; wParam: 0; lParam: 0
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 1967628; Result: 0
    2011-02-09 11:56:03.175: TSelection.SetText
                             A&D
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 1967628; Message: 2009 [SCI_GETANCHOR]; wParam: 0; lParam: 0
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 1967628; Result: 3
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 1967628; Message: 2008 [SCI_GETCURRENTPOS]; wParam: 0; lParam: 0
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 1967628; Result: 0
    2011-02-09 11:56:03.175: SendMessage
                             hWnd: 1967628; Message: 2170 [SCI_REPLACESEL]; wParam: 0; lParam: 0x0505687C
    2011-02-09 11:56:03.176: SendMessage
                             hWnd: 1967628; Result: 0
    2011-02-09 11:56:03.176: SendMessage
                             hWnd: 1967628; Message: 2008 [SCI_GETCURRENTPOS]; wParam: 0; lParam: 0
    2011-02-09 11:56:03.176: SendMessage
                             hWnd: 1967628; Result: 7
    2011-02-09 11:56:03.177: SendMessage
                             hWnd: 1967628; Message: 2160 [SCI_SETSEL]; wParam: 7; lParam: 1
    2011-02-09 11:56:03.177: SendMessage
                             hWnd: 1967628; Result: 0
    2011-02-09 11:56:06.925: messageProc
                             Message=5; wParam=0, lParam=68028288; ==> 0
    2011-02-09 11:56:06.927: messageProc
                             Message=5; wParam=0, lParam=68028288; ==> 0
    2011-02-09 11:56:06.927: messageProc
                             Message=5; wParam=0, lParam=68028288; ==> 0
    2011-02-09 11:56:06.928: messageProc
                             Message=5; wParam=0, lParam=68028288; ==> 0
    2011-02-09 11:56:06.934: messageProc
                             Message=28; wParam=0, lParam=6028; ==> 0
    
     
  • Simon Schick
    Simon Schick
    2011-02-23

    I can confirm this issue.

    Notepad++ v5.8.7
    Plugin HTMLTag v0.3.2.541

    Running at Windows7 64bit

     
  • Simon Schick
    Simon Schick
    2011-02-23

    Here's my debug log. It only works starting notepad++ as administrator. Otherwise I got an unknown exception.

    2011-02-23 11:45:47.867: setInfo
                             NppData: $00140178

    2011-02-23 11:45:47.867: SendMessage
                             hWnd: 1443632; Message: 2070 ; wParam: 260; lParam: 0x0013FF28

    2011-02-23 11:45:47.867: SendMessage
                             hWnd: 1443632; Result: 1

    2011-02-23 11:45:47.871: getFuncsArray
                             Count=8 ==> $04F9ACA8 (&Find matching tag)

    2011-02-23 11:45:47.880: getName
                             ==> &HTML Tag

    2011-02-23 11:45:47.882: messageProc
                             Message=3; wParam=0, lParam=13238280; ==> 0

    2011-02-23 11:45:47.885: messageProc
                             Message=3; wParam=0, lParam=14483464; ==> 0

    2011-02-23 11:45:47.937: messageProc
                             Message=3; wParam=0, lParam=15728648; ==> 0

    2011-02-23 11:45:47.961: messageProc
                             Message=5; wParam=0, lParam=116; ==> 0

    2011-02-23 11:45:47.964: messageProc
                             Message=5; wParam=0, lParam=116; ==> 0

    2011-02-23 11:45:47.965: messageProc
                             Message=5; wParam=0, lParam=116; ==> 0

    2011-02-23 11:45:47.965: messageProc
                             Message=5; wParam=0, lParam=116; ==> 0

    2011-02-23 11:45:47.966: messageProc
                             Message=5; wParam=0, lParam=116; ==> 0

    2011-02-23 11:45:47.966: messageProc
                             Message=5; wParam=0, lParam=116; ==> 0

    2011-02-23 11:45:47.967: messageProc
                             Message=5; wParam=0, lParam=116; ==> 0

    2011-02-23 11:45:47.969: messageProc
                             Message=3; wParam=0, lParam=18612729; ==> 0

    2011-02-23 11:45:47.970: messageProc
                             Message=5; wParam=0, lParam=43058408; ==> 0

    2011-02-23 11:45:47.972: messageProc
                             Message=5; wParam=0, lParam=43058408; ==> 0

    2011-02-23 11:45:47.972: messageProc
                             Message=5; wParam=0, lParam=43058408; ==> 0

    2011-02-23 11:45:47.973: messageProc
                             Message=5; wParam=0, lParam=43058408; ==> 0

    2011-02-23 11:45:47.974: messageProc
                             Message=5; wParam=0, lParam=43058408; ==> 0

    2011-02-23 11:45:47.975: messageProc
                             Message=5; wParam=0, lParam=43058408; ==> 0

    2011-02-23 11:45:47.977: messageProc
                             Message=5; wParam=0, lParam=43058408; ==> 0

    2011-02-23 11:45:47.984: messageProc
                             Message=5; wParam=0, lParam=43058408; ==> 0

    2011-02-23 11:45:47.984: messageProc
                             Message=3; wParam=0, lParam=18612729; ==> 0

    2011-02-23 11:45:50.322: messageProc
                             Message=5; wParam=0, lParam=43058408; ==> 0

    2011-02-23 11:45:50.339: messageProc
                             Message=28; wParam=0, lParam=4840; ==> 0

     
  • Hello,

    I'm experiencing the same problem on Win 7, 32bit, Npp 5.6.8.

    One workaround I have successfully applied is to start Npp in "Windows XP (Service Pack 3)" compatibility mode.

    Regards,
    Oliver

     
  • Ah! Apparently, the plugin's doing something that requires administrator permissions… (I'm guessing file access of some kind.)
    That would explain why I'm not getting any errors - I've got full permissions on all my machines - and also why the problem only occurs on Win7 - it's a lot more strict about these things.

    Also, I'll (finally) have some time to look at it this weekend, so I hope it will be possible to fix this at last.

     
  • Hello vor0nwe,

    I initially thought about the admin permissions, too. Unfortunately to no avail: neither "execute as admin" nor granting Npp full security access did the trick.

    The only way I could get it to work was by setting the compatibility mode ("Windows Vista (Service Pack 2)" also works by the way).

    Greets,
    Oliver

     
  • There’s yet another debug version to be found at http://martijn.coppoolse.com/software/download/HTMLTag_0.3.564_debug.zip

    I’m afraid I still haven’t been able to reproduce the crash, not even when running in a limited account.

    I’ve removed some code, and added some more debug statements.  Since writing to a log file could be a cause of extra problems, I’ve removed that, and replaced it by output to Windows’ debug log.

    Would somebody be willing to test it while running DebugView, save the log and send it to me?  (vor0nwe@at@users.sourceforge.net)  Many thanks.

    If you don’t have a debug viewer, it can be downloaded at http://technet.microsoft.com/en-us/sysinternals/bb896647 — it’s free and doesn’t require installation; you can run it straight from its zip file.

     
  • Sing
    Sing
    2011-08-11

    Its strange that, it works when setting compatibility mode to  "Windows Vista (Service Pack 3)".

     
  • Dragon Chuang
    Dragon Chuang
    2011-11-28

    I can confirm this issue.
    Notepad++ v5.9.6.2
    HTMLTag_plugin_v0.4.0_unicode
    Windows7 32bit

    Debug info:

    HTMLTag_unicode: DllMain DLL_PROCESS_DETACH(1)HTMLTag_unicode: TerminatePlugin HTMLTag_unicode: SetBusy False於 0x034aedc8 的 notepad++.exe 中第一個可能發生的例外狀況: 0xC0000005: 讀取位置 0x67cd4e60 時發生存取違規

    034AED9F  push        eax 
    034AEDA0  mov         eax,dword ptr  
    034AEDA2  call        dword ptr  
    034AEDA5  jmp         034AEDCB 
    034AEDA7  xor         ecx,ecx 
    034AEDA9  mov         edx,34AEE0Ch 
    034AEDAE  mov         eax,34AEDF0h 
    034AEDB3  call        0349CBD8 
    034AEDB8  push        0 
    034AEDBA  mov         eax,dword ptr ds: 
    034AEDBF  push        eax 
    034AEDC0  mov         eax,dword ptr ds: 
    034AEDC5  push        eax 
    034AEDC6  mov         eax,dword ptr  
    034AEDC8  call        dword ptr  <== HTMLTag_unicode.dll!034aedc8()

     

  • Anonymous
    2011-11-28

    I too had this error after updating notepad++. I was able to fix it by opening the plugin manager and reinstalling the HTMLTag plugin. Haven't had any issues at all since.

     
  • hip
    hip
    2012-01-16

    Reinstalling the plugin did the trick for me too.
    Windows7 - 64bits, no compatibility mode altered for this matter.

    Thanx waden34

     
  • Robin Edwards
    Robin Edwards
    2012-01-26

    I had to completely remove notepad++ and re-install, but there were no more errors after that.

     
  • Well… Since I haven’t been able to reproduce the problem, and it seems it’s (relatively) easy to fix, I’ll consider the issue closed.  If someone is still having trouble, they can report the new issue in the tracker.

     
  • I’ve finally managed to reproduce the problem on several computers, just not on my development machine.  So I’ve rewritten the plugin using a completely different framework, and published that as v0.50.

    It hasn't caused any crashes on my machines.

     

  • Anonymous
    2012-06-15

    the v0.50 version has stopped the error and run-away process on exit for me.  Thanks much!

     
  • Swift
    Swift
    2012-06-26

    W7 x64

    Came here just to comment that v0.50 has also solved the issue for me. It was really annoying closing Notepad++ and getting that crash notice. This has been going on for months. Just an hour ago I found out that when Notepad++ does crash, it leaves a process running. So I had 8 Notepad++ processes running just earlier and I get a warning that my CPU is at 70 degrees. I freaked out

    Looked at resource monitor, saw notepads, concluded HTML Tag issue, came here and was really happy.

    Thanks vor0nwe!

     
  • Thanks swift2!  I’m glad this version finally seems to have got rid of the crashes.

    Now I need to update the version listed in the PluginManager, but for some reason I can’t submit any changes I make to the HTMLTag entry.