NPP_HexEdit icon indicating copy to clipboard operation
NPP_HexEdit copied to clipboard

Notepad++ hangs at startup with HexEditor plugin enabled

Open daooze opened this issue 7 years ago • 8 comments

When a user starts Notepad++ for the first time, "%APPDATA%\Notepad++\plugins\Config"-folder is usually not be available. The HexEditor plugin somehow relies on it but does not create it automatically.

The following behaviour has been observed:

"%APPDATA%\Notepad++\plugins" not available: Notepad++ hangs with high CPU usage and an increasing amount of used memory.

"%APPDATA%\Notepad++\plugins\config" not available: Notepad++ just crashes.

Creating the folder manually resolves this issue.

daooze avatar Sep 25 '17 08:09 daooze

@daooze Which version are you using? An official one from http://sourceforge.net/projects/npp-plugins/files/Hex%20Editor/ or a "private" testbuild from my github project? Which OS and N++ version?

chcg avatar Feb 06 '18 20:02 chcg

Startup hang seen with Windows 10 (1709), Notepad++ 7.3.2 (64bit), NPP_HexEdit 0.9.5.19 (64bit) Notepad++ UI never appears, Notepad++ process is seen under Background processes in Task Manager and sits at ~15% CPU. Removal of HexEditor.dll fixes the startup hang and Notepad++ starts normally.

mcgoober avatar Jun 21 '18 15:06 mcgoober

Latest build from here... https://ci.appveyor.com/project/chcg/npp-hexedit/build/0.9.5.25 hasn't fixed the issue. Same result as above.

mcgoober avatar Jun 21 '18 15:06 mcgoober

Confirmed issue here as well, created both folders as per bug report issue goes away.

danielsokolowski avatar Jun 26 '18 05:06 danielsokolowski

Can confirm as well. Creating both folders helped.

lordprize avatar Sep 14 '18 08:09 lordprize

Related: 7.5.9 (32 bit) didn't crash with the X86 plugin on startup with it enabled here, but hangs whenever we touch the file dropdown menu with a hex edited file opened. 'Tis still the bug of ye olden times. Same symptoms when the hex edited file is then unselected for hex editing. Didn't hang when the Settings menu was invoked, but did with the View menu dropdown. Haven't tested the others. Sounds like the same underlying cause, but a new issue can be raised if you like. Thanks.

lmstearn avatar Jan 22 '19 05:01 lmstearn

@lmstearn Could you create a new issue for the problem you described. That seems to be a different one from the one here. Could you state which version of HexEditor you use. If it is still the one from https://sourceforge.net/projects/npp-plugins/files/Hex%20Editor/Hex%20Editor%20Plugin%20v0.9.5/? You should first try out the one from https://github.com/chcg/NPP_HexEdit/releases/tag/0.9.5.19 if this is the case. I tried to reproduce your issue and it seems not to happen for me. Could you describe the steps to reproduce in more detail please. I used a text file, changed to hex mode and did open the various available menus without a delay. Could you also please also provide the N++ debug infos to see which other plugins might be involved. If possible a test with the portable version of N++ with just the HexEditor plugins would be also helpful to see if it is caused just by this plugin.

chcg avatar Feb 14 '19 01:02 chcg

@chcg : Done.

lmstearn avatar Feb 14 '19 03:02 lmstearn