NppMarkdownPanel icon indicating copy to clipboard operation
NppMarkdownPanel copied to clipboard

Undocking the main (preview) window eventually freezes NPP++

Open ThomasPGH opened this issue 10 months ago • 11 comments

Am I the only one having this issue? It's impossible to work with this plugin for more than a few minutes because it freezes Notepad++ after just a few text changes.

ThomasPGH avatar Feb 02 '25 04:02 ThomasPGH

I dont have this issue.Which version of npp do you have? Am 02.02.2025 um 05:15 schrieb ThomasPGH @.***>: Am I the only one having this issue? It's impossible to work with this plugin for more than a few minutes because it freezes Notepad++ after just a few text changes.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

mohzy83 avatar Feb 02 '25 09:02 mohzy83

8.7.5

Image

ThomasPGH avatar Feb 02 '25 12:02 ThomasPGH

It's intermittent for me. When the panel is docked, it's stable, but when I click-and-drag the panel bar to undock it, npp crashes some of the time, especially if I'm switching between different tabs.

I also have this strange behavior when dragging the panel around. It's functional, but quite messy. @mohzy83 should I create a dedicated issue for this?

https://github.com/user-attachments/assets/bc276721-5bfa-4260-ba5e-270590b34856

(please excuse GitHub's erroneous narrowing of the video's width)

stamminator avatar May 21 '25 22:05 stamminator

@stamminator and @ThomasPGH plz check if the new version 0.9.0 resolves your issue https://github.com/mohzy83/NppMarkdownPanel/releases/tag/0.9.0

mohzy83 avatar Jun 22 '25 17:06 mohzy83

I get an error message. The DLL is not compatible with the current version. Notepad++ version is 8.8.1 64 bit.

ThomasPGH avatar Jun 22 '25 18:06 ThomasPGH

Some ppl have problems with a manual installation. Please check this solution https://github.com/mohzy83/NppMarkdownPanel/issues/120

mohzy83 avatar Jun 22 '25 18:06 mohzy83

Thanks. Looks good so far. It hasn't frozen since I got it to work about 20 minutes ago.

ThomasPGH avatar Jun 22 '25 19:06 ThomasPGH

@mohzy83 I just installed the 0.9 Version on the newest released npp Version(8.8.7 64bit) and i experience the same freezing behavior, when the panel is undocked. when the panel is docked it runs smooth

rockhock avatar Nov 25 '25 16:11 rockhock

@rockhock As of today, 25 November 2025, the latest version of NPP is 8.8.8.

mattcheau avatar Nov 25 '25 16:11 mattcheau

@mohzy83 ... [I] experience the same freezing behavior, when the panel is undocked. when the panel is docked it runs smooth

This issue probably has the same cause as this one:

  • https://github.com/BdR76/CSVLint/issues/83#issuecomment-1974195354

The preview panel needs to override the default window procedure and remove the WS_EX_CONTROLPARENT flag from the windows's GWL_EXSTYLE attribute when it becomes unstuck.

The cleanest way to do it is to make the docking form a subclass, e.g.,

  • https://github.com/BdR76/CSVLint/pull/88

rdipardo avatar Nov 26 '25 19:11 rdipardo

That seems to be a neverending story. I have implemented this patch and had the impression it helped. @rdipardo I will check the implementation of the CSVLint plugin. Hope that will do the trick.

mohzy83 avatar Nov 26 '25 20:11 mohzy83