Open daooze opened 7 years ago
@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?
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.
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.
Confirmed issue here as well, created both folders as per bug report issue goes away.
Can confirm as well. Creating both folders helped.
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 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.
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.