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.99k stars 1.95k forks source link

[Bug] Black screen on 1.22.0 #729

Closed manilz closed 1 year ago

manilz commented 2 years ago

So, when I install ImHex, and open it, or try to open a file with it this is all what I see

image

WerWolv commented 2 years ago

Hey What version of ImHex did you download? Portable? Portable-NoGPU? Also v1.22.2 does not exist, the latest one is v1.22.0.

From the picture it looks like a GPU issue but I need some more information to really help you

manilz commented 2 years ago

Yes, sorry, i donwloaded stable release (.MSI installer), ran on Windows 10 Home 21H1 x64, i'm using Intel(R) UHD graphics 620, using standard Intel Corporation driver version 27.20.100

Tried to download Portable non-GPU version, this is the result: image

Also tried to download portable GPU version, and result is almost the same image

iTrooz commented 2 years ago

Could you send us the logs you get if you launch ImHex from the terminal ?

SmallJoker commented 2 years ago

@cuerv0s I suppose your GPU driver sucks. You could try to use software rendering as a workaround by dropping Mesa3D's the opengl32.dll file next to the ImHex executable: https://fdossena.com/?p=mesa/index.frag

mi-hol commented 1 year ago

stable release (.MSI installer), ran on Windows 10 Home 21H1 x64, i'm using Intel(R) UHD graphics 620, using standard Intel Corporation driver version 27.20.100

Laptop users don't have modern GPUs and it seems I have similar issue with below hardware in https://github.com/WerWolv/ImHex/issues/886#issuecomment-1383977531. Could MSI installer not check if GPU is available and install NoGPU exe in case GPU is no good?

Intel HD Graphics 3000
    Manufacturer    Intel
    Model   HD Graphics 3000
    Device ID   8086-0126
    Revision    A
    Subvendor   HP (103C)
    Current Performance Level   Level 0
    Current GPU Clock   640 MHz
    Technology  32 nm
    Driver version  9.17.10.4459
mi-hol commented 1 year ago

MSI installed via winget is the wrong exe!

 cat AppData\Local\ImHex\logs\20230115_132755.log
[13:27:55] [INFO]  [main] Welcome to ImHex 1.26.2!
[13:27:55] [ERROR] [main] GLFW Error [65542] : WGL: The driver does not appear to support OpenGL
[13:27:55] [FATAL] [main] Failed to create GLFW window!
manilz commented 1 year ago

Could you send us the logs you get if you launch ImHex from the terminal ? image

I dropped the mesa3d's opengl32.dll file next to the executable, still black screen, nothing new in the terminal stdout.

manilz commented 1 year ago

Tried the 1.26.2 version portable version (GPU), it's fixed now. Thanks.

cyberdaddy93 commented 1 year ago

I am having the same issue. Is there a fix?

iTrooz commented 1 year ago

Hey, please provide your imhex version, plateform, installation type, and logs. Do you have a GPU ?

cyberdaddy93 commented 1 year ago

@iTrooz imhex version - 1.28.0 Platform - Windows 11 Installation Type - .msi , GPU - Yes. NVIDIA RTX A2000 8GB Laptop GPU && Intel(R) UHD Graphics

Logs: Log file is empty

iTrooz commented 1 year ago

Could you run imhex from the command line ? Sometimes it shows more logs

cyberdaddy93 commented 1 year ago

Could you run imhex from the command line ? Sometimes it shows more logs

PS C:\Program Files\ImHex> [14:47:57] [INFO] [main] Native scaling set to: 2.5 [14:47:57] [INFO] [main] Task 'Setting up environment' finished in 0 ms [14:47:57] [INFO] [main] Task 'Creating directories' finished in 1 ms [14:47:57] [INFO] [main] Task 'Loading settings' finished in 0 ms [14:47:57] [WARN] [builtin] Intel GPU detected! Intel's OpenGL driver has bugs that can cause issues when using ImHex. If you experience any rendering bugs, please try the Mesa3D Software Renderer [14:47:57] [INFO] [main] Task 'Loading plugins' finished in 15 ms [14:47:57] [INFO] [main] Task 'Checking for updates' finished in 0 ms [14:47:59] [INFO] [main] Task 'Loading fonts' finished in 1435 ms

Just left hanging and the ImHex application display with a blacked out screen.

WerWolv commented 1 year ago

Intel GPU detected! Intel's OpenGL driver has bugs that can cause issues when using ImHex. If you experience any rendering bugs, please try the Mesa3D Software Renderer

Looks like even though you have a NVIDIA graphics card built into your Laptop, Windows decided to use the integrated Intel HD GPU instead. These Intel GPUs and especially their drivers have TONS of bugs and don't work well. Also it probably doesn't have enough VRAM available to load the fonts. Try forcing your OS to use the NVIDIA GPU instead

cyberdaddy93 commented 1 year ago

Intel GPU detected! Intel's OpenGL driver has bugs that can cause issues when using ImHex. If you experience any rendering bugs, please try the Mesa3D Software Renderer

Looks like even though you have a NVIDIA graphics card built into your Laptop, Windows decided to use the integrated Intel HD GPU instead. These Intel GPUs and especially their drivers have TONS of bugs and don't work well. Also it probably doesn't have enough VRAM available to load the fonts. Try forcing your OS to use the NVIDIA GPU instead

YES! That worked for me. Thank you for the support, this save it for me. Product looks nice

artiekra commented 6 months ago

Had similar problem, but not due to graphic drivers If ImHex boots up for the first time, but then you accidentally close it and cant open again (black screen appears) - you probably messed up your config. So I just removed .config/imhex directory, and it started working again (posting if you have a similar story) (I'm on 1.33.2-1 actually, but thats the first page that pops up, so I'll leave this here)

paxcut commented 6 months ago

In at least one occasion, the only way I could get ImHex to start in a working condition was to remove the entire %APPDATA%\..\Local\imhex folder. Other times removing the file %APPDATA%\..\Local\config\interface.ini is all I needed to remove since this controls the layout. Yet other times restarting Imhex did the trick.