-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Wayland support #30
Comments
Hey! |
I do currently have a build setup, will test that and report back. |
That doesn't seem to help with the errors or the crashes, sadly. I think it ended up adding transparency though. That said, I did manage to reproduce one of the crashes that I'm facing: When using glfw-wayland, dragging one of the sub-windows (such as hex editor) to the side of the screen (and thereby triggering the snap feature) causes a fairly reliable "crash". On some "crashes", it actually gave an error:
and exited with 6, but on some the window just disappeared without an error, and I had to C-c to exit ImHex. And in some cases, it disappeared without an error, but exited with 0. However, all cases, this was also in the logs shortly before the actual "crash": Anyhow, I managed to record a video of these all. It also shows the Open File thing breaking randomly. That one seems to resolve itself when I remove the imgui.ini. Here's one that causes such a crash. I think that one is caused by the negative position of the hex editor that somehow ended up there. Changing that to a positive number fixes the crashes that happen as a result of opening the Open File window. |
Oh this looks like an issue with ImGui's new viewports feature. Maybe @ocornut knows more about this? |
As I understand Wayland currently doesn't permit application to neither set or get position or size of windows (!) which is causing problem to our approach. I don't think that's related at all to the crash but at least that's what the GLFW error is spewing.
I personally haven't used Linux in decades. There is a thread asking for help from Mac/Linux users ocornut/imgui#2117 but it yielded zero patches so far. Apart from the ones I paid for Rokups to do because it was frustrating to see so many glaring Linux/Mac issues. It would be great it someone sat down and tackled those problems, alas multi-viewport it not a simple feature so that person will need patience to go back and forth to find a solution for Wayland. PS: The negative position shouldn't be a problem. |
Thanks for your input! I'm going to disable multi-viewports then temporarily. |
Here is a dirty patch that makes ImHex working under pure wayland env without crash(without multi-viewports), link. I want a pure wayland support in addition to the original request. I did not have x11 on my linux distro. The thing is that: wayland is using GLES+EGL, there is no desktop GL. And, yes, multi-viewports are not supported somehow, but solved by discarding this line |
I can confirm that @xhebox patch works! Thank you 🚀 ! |
You shouldn't have to modify the backend. |
Thx for reminding that. But it is just a dirty patch and I don't know much about ImGUI. I would be happy to leave the real PR/commit to someone else. |
wayland patch updated to 1.13.0. It is possible to patch imhex only, which means a cmake options is possible to make it compilable under pure wayland env. Any one interested could fire an PR. The main changes to make it happen are:
|
@xhebox Does GLES2 make other things worse compared to OpenGL3? If not, I'm up to switching to that instead if it means Wayland works fine. |
I don't think it makes much difference for imhex, since imhex is not really a heavy graphic load. But I like to give some points:
|
If you want to make a PR, I'll make sure to test it out, fix potential issues and merge it if it works fine. |
This issue is marked stale as it has been open for 11 months without activity. Without response, this issue will be closed in one month. |
ping |
ImHex works fine on Wayland nowadays with the exception of multi window support. Besides that, it's entirely usable. |
Its working under XWayland. Then I think we need another issue for native Wayland support. |
Currently, when ImHex is ran with glfw-wayland, it gives a notable amount of errors regarding window position retrieval/setting. I've even faced crashes when doing random things in a not very reliably reproducible way (I've had one after I clicked "Open File" and another when I was resizing the hex editor). I'm willing to test more if needed.
Here's an output containing both the usual errors, and the specific error that led to the crash on the file open:
It would be nice to have ImHex account for a wayland environment and not use unsupported features, if possible.
To any other glfw-wayland users, the only workaround I found is to install glfw-x11 (and remove glfw-wayland) to force ImHex to run in XWayland.
The text was updated successfully, but these errors were encountered: