WerWolv / ImHex

🔍 A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM.
https://imhex.werwolv.net
GNU General Public License v2.0
44.8k stars 1.95k forks source link

[Bug] Window becomes completely unresponsive after resizing #1842

Open cyaneko opened 2 months ago

cyaneko commented 2 months ago

Operating System

Windows

What's the issue you encountered?

Resizing the window through any means stretches the client view and makes the editor completely unresponsive, requiring a restart.

https://github.com/user-attachments/assets/12635cf1-f609-41d9-b4b6-cb56e5d34935

How can the issue be reproduced?

  1. Open ImHex on Windows
  2. Drag the resize handle or snap the window into a specific size+position using FancyZones, Sizer etc.
  3. Note that the editor is both stretched and completely unresponsive, requiring a restart.

ImHex Version

1.35.4, 1.36.0 WIP

ImHex Build Type

Installation type

MSI

Additional context?

paxcut commented 2 months ago

i am also on win10 with nvidia card and using ImHex 1.36.0 wip built on jul16 and I am unable to reproduce. I tried resizing many times,making the resize window very small or large, added windows decorations and ImHex remains responsive and in working order. Does any resizing triggers the hanging? Does the ImHex process become very active or consume lots of ram when it hangs? Is there anything in the logs that can identify the cause of freezing?

cyaneko commented 2 months ago

i am also on win10 with nvidia card and using ImHex 1.36.0 wip built on jul16 and I am unable to reproduce. I tried resizing many times,making the resize window very small or large, added windows decorations and ImHex remains responsive and in working order. Does any resizing triggers the hanging? Does the ImHex process become very active or consume lots of ram when it hangs? Is there anything in the logs that can identify the cause of freezing?

Any resizing triggers this bug - both by dragging and by forcing one using FancyZones snap or through Sizer.

There are no changes to resource usage after resizing. The app isn't listed as "hanging" in Task Manager, either.

If by "logs" you mean "Log Console", then I cannot open it - the editor does not react to my clicks after all.

paxcut commented 2 months ago

i meant logs as in logs saved to %LOCALAPPDATA%\imhex\logs

cyaneko commented 2 months ago

Doesn't look like it.

20240809_165740.log

Enabling DEBUG logging (-v flag) doesn't seem to indicate it either.

20240809_165954.log

paxcut commented 2 months ago

in both logs imhex is getting a signal to exit [17:00:35] [INFO] [main | Main] Exit task 'Prepare exit' finished successfully thats very odd. why is imhex trying to exit?

cyaneko commented 2 months ago

in both logs imhex is getting a signal to exit [17:00:35] [INFO] [main | Main] Exit task 'Prepare exit' finished successfully thats very odd. why is imhex trying to exit?

I can still click [X] to close the editor if nothing was edited (and did so).

paxcut commented 2 months ago

that means is not unresponsive but also not accepting input from mouse or keyboard on any of the windows except the decoration

cyaneko commented 2 months ago

that means is not unresponsive but also not accepting input from mouse or keyboard on any of the windows except the decoration

Not sure I understand, how are there multiple windows here? Anywhere I click within the editor does not update the view, or anything really, it remains frozen until restart. How is that different from being unresponsive?

cyaneko commented 2 months ago

obraz For the record, I am clicking this [X] here

paxcut commented 2 months ago

it is responding to the exit imhex command so imhex is not hanging which is what unresponsive means in most cases. Clicking on the x is sending the exit signal which the logs show as accepting and unloading everything and I am guessing it actually exits gracefully.

cyaneko commented 2 months ago

i am also on win10 with nvidia card and using ImHex 1.36.0 wip built on jul16 and I am unable to reproduce. I tried resizing many times,making the resize window very small or large, added windows decorations and ImHex remains responsive and in working order. Does any resizing triggers the hanging? Does the ImHex process become very active or consume lots of ram when it hangs? Is there anything in the logs that can identify the cause of freezing?

Just tested on 1.36.0 WIP and the problem persists.

paxcut commented 2 months ago

it looks like the no gpu version also works if you have a gpu. it could be used test if problem is gpu specific. Also try starting imhex from a command prompt (use imhex_gui) to obtain direct access to log.