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
40.06k stars 1.76k forks source link

[Bug] ImHex fails to render on LLVMpipe #1653

Closed FireNX70 closed 1 month ago

FireNX70 commented 2 months ago

Operating System

Linux

What's the issue you encountered?

Attempting to run ImHex in a VM running Debian (using LLVMpipe for software rendering) will only render the window decorations. The program is still interactable, clicking on different parts of ImHex's window will execute different actions. The program can also be closed.

ef99e9d worked fine. From 1df0eea onward, I'd get a fatal error on start. 5785755 worked fine again. 0f5e125 and newer print multisampling errors and render window decorations only.

How can the issue be reproduced?

Run ImHex (0f5e125 or newer) on Linux using LLVMpipe.

ImHex Version

1.33.0 (0f5e125 or newer)

ImHex Build Type

Installation type

Built with the build instructions for Linux

Additional context?

Tested on Debian 12 with LLVMpipe 22.3.6.

WerWolv commented 1 month ago

Hey, could you please try with the latest commit? I explicitly check that the right OpenGL version is available now before activating it and don't immediately exit anymore if the splash screen couldn't be loaded. Hopefully that fixes it.

FireNX70 commented 1 month ago

It's 89f360d, right? The error message has changed (still a multisampling error) but it still doesn't render anything besides window decorations.

Edit: Do note that LLVMpipe reports support for OpenGL 4.5.

WerWolv commented 1 month ago

Could you post your logs?

FireNX70 commented 1 month ago

It doesn't seem to be writing any logs, the most recent ones are over a month old. They're supposed to be in my home (~/.local/share/imhex/logs/), right? I've been testing without installing (calling ninja without the install arg), I don't know if that could be affecting it.

Edit: Tried with ninja install and it's not writing logs either. Keep in mind it's not crashing, I don't know if it usually writes logs when it doesn't crash.

WerWolv commented 1 month ago

It doesn't create any logs if ImHex is started from a console, it just logs to the console then. Could you post that?

FireNX70 commented 1 month ago

I've installed it and run it from KDE's menu so now I do have a log file. 20240508_230100.log

WerWolv commented 1 month ago

Thank you. Could you try the latest commit again? I think that should fix it

FireNX70 commented 1 month ago

Yeah, it's fixed.

WerWolv commented 1 month ago

Awesome, thanks a lot for testing! There might still be an issue with LLVMpipe though. From the logs, it reports that it does support texture multisampling but the actual calls fail then. Might be worth reporting to them

FireNX70 commented 1 month ago

Yeah, I guess I should submit a bug report to the Mesa devs.

FireNX70 commented 1 month ago

For the record: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11135