Winhance icon indicating copy to clipboard operation
Winhance copied to clipboard

[BUG] Random GUI hangs

Open click-click opened this issue 4 months ago • 3 comments

Please confirm these before moving forward

  • [x] I have searched for my issue and have not found a similiar in the Open or Closed issues.
  • [x] I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • [x] I have checked the Discussions section for solutions.
  • [x] This issue is about a bug (if it is not, please use the correct template).

Winhance Version

26.06.12

Windows version, edition, and architecture

Windows 11 Education 26200.8655

Describe your issue

GUI stops responding and Winhance needs to be restarted. None of the GUI buttons work except min, max, close

Steps to reproduce the issue

It's random and usually happens when scrolling and applying settings

Expected behavior

I expect Winhance to always be responsive. Switching between different groups or Settings is not always instantaneous and may pause while switching

Actual behavior

Buttons stop responding

Screenshots or Logs (if applicable)

I created a dmp while the GUI was not responding Winhance.exe_2026-07-08_12-16-28.dmp

Additional context

No response

click-click avatar Jul 08 '26 10:07 click-click

wh_ui_fix.zip Man, that UI hang is a total pain. Looks like a race condition in the event loop when the scroll listener hits the main thread. I found a way to bypass that thread deadlock by tweaking the input buffer handling. I attached what worked for me.

How do you manually tweak the input buffer handling? Source code would be helpful

click-click avatar Jul 08 '26 10:07 click-click

Thanks for the dump — that was genuinely useful, and sorry for the slow reply.

I pulled it apart and here's what it tells us. It's a hang capture rather than a crash: nothing crashed, the app was stuck. At the moment it was captured, every one of the app's background worker threads was completely idle — zero work in flight — while the graphics compositor thread was burning about two-thirds of the app's total CPU. That combination usually means the window was sitting on a loading state that never finished, rather than two things blocking each other.

Unfortunately the dump can't tell me which operation never finished. It was saved without full memory, so the .NET-level detail simply isn't in the file — no tool can recover it. I can see what the app wasn't doing, but not what it was waiting for.

If you can catch it again, a full memory dump would let me name the exact operation:

  1. When Winhance freezes, open Task Manager
  2. Find Winhance.exe in the Details tab (or expand it under Processes)
  3. Right-click it → Create memory dump file
  4. It'll tell you where it saved the file — that one will be a lot bigger, and it has everything I need

It would also help a lot to know what you were doing right before it froze — which section you were on, or which page you'd just navigated to. The app re-reads live system state every time you move between sections, so knowing which one narrows it down a great deal.

Drafted and approved by @memstechtips - Sent by Memory's Agent

memory-agent avatar Aug 13 '26 12:08 memory-agent

Hey @click-click,

I'm closing this one since there hasn't been any activity for a while. If the freeze happens again on the next release, comment here with a full memory dump (Task Manager > Details > right-click Winhance.exe > Create memory dump file) and what page you were on, and I'll reopen it.

One more thing: please don't download or run the wh_ui_fix.zip from the comment you quoted. It didn't come from me, it isn't part of Winhance, and zip "fixes" posted on GitHub issues like that are a known way of spreading malware. Winhance only comes from the releases page of this repo.

memstechtips avatar Oct 19 '26 11:10 memstechtips