Giter Site home page Giter Site logo

Comments (5)

WerWolv avatar WerWolv commented on May 23, 2024 1

Hey, do you have a build setup? If yes, can you try this patch here? That's usually what fixes this kind of assert.
Although, the assert there should really not crash ImHex in a Release build. There it just prints the message and continues

diff --git a/plugins/builtin/source/content/window_decoration.cpp b/plugins/builtin/source/content/window_decoration.cpp
index 040b2ff..6eb8a1f 100644
--- a/plugins/builtin/source/content/window_decoration.cpp
+++ b/plugins/builtin/source/content/window_decoration.cpp
@@ -250,6 +250,8 @@ namespace hex::plugin::builtin {
             #endif
 
             if (ImGui::BeginMainMenuBar()) {
+                ImGui::Dummy({});
+
                 auto window = ImHexApi::System::getMainWindowHandle();
 
                 ImGui::PopStyleVar();

from imhex.

WerWolv avatar WerWolv commented on May 23, 2024 1

Awesome! I'll leave the issue open until @Moelf confirmed it works for them as well, might be a different error though

from imhex.

shenlebantongying avatar shenlebantongying commented on May 23, 2024

Same problem on Wayland as of 5d0b474

I don't know how to fix. Problem appears to be a combination of imhex/glfw/imgui 😅

imhex simply quit, backtrace:

<unknown> 0x00007ffff57bf32c
ImGui::ErrorCheckUsingSetCursorPosToExtendParentBoundaries imgui.cpp:9641
ImGui::EndGroup imgui.cpp:10359
ImGui::EndMenuBar imgui_widgets.cpp:7028
ImGui::EndMainMenuBar imgui_widgets.cpp:7100
hex::Window::frameBegin window.cpp:452
hex::Window::loop window.cpp:199
main main.cpp:86

Log:

/home/slbtty/src/ImHex/cmake-build-debug/imhex
[03:26:04] [INFO]  [main] Welcome to ImHex 1.29.0-Debug!
[03:26:04] [INFO]  [main] Compiled using commit master@30c0a5d
[03:26:05] [INFO]  [main] Native scaling set to: 1.0
[03:26:05] [ERROR] [main] GLFW Error [65548] : Wayland: The platform does not support setting the window position
[03:26:05] [DEBUG] [libimhex] Initializing task manager thread pool with 8 workers.
[03:26:05] [DEBUG] [main] Using romfs: 'imhex'
[03:26:05] [INFO]  [main] Task 'Setting up environment' finished in 0 ms
[03:26:05] [INFO]  [main] Task 'Creating directories' finished in 1 ms
[03:26:05] [INFO]  [main] Task 'Migrate config to .config' finished in 0 ms
[03:26:05] [INFO]  [main] Task 'Loading settings' finished in 13 ms
[03:26:05] [ERROR] [libimhex] dlopen failed: libmbedtls.so.19: cannot open shared object file: No such file or directory!
[03:26:05] [ERROR] [main] Failed to initialize plugin builtin.hexplug
[03:26:05] [ERROR] [main] No plugins loaded successfully!
[03:26:05] [INFO]  [main] Task 'Loading plugins' finished in 11 ms
[03:26:05] [DEBUG] [libimhex] Creating background task Checking for updates
[03:26:05] [DEBUG] [libimhex] Creating background task Loading fonts
[03:26:05] [INFO]  [main] Task 'Checking for updates' finished in 0 ms
[03:26:05] [DEBUG] [libimhex] Finished task Checking for updates
[03:26:07] [INFO]  [main] Task 'Loading fonts' finished in 1975 ms
[03:26:07] [DEBUG] [libimhex] Finished task Loading fonts
[03:26:07] [ERROR] [main] GLFW Error [65548] : Wayland: The platform does not support setting the window position
[03:26:07] [ERROR] [main] GLFW Error [65548] : Wayland: The platform does not provide the window position
[03:26:07] [DEBUG] [main] Event posted: 'hex::RequestInitThemeHandlers'
[03:26:07] [DEBUG] [main] Event posted: 'hex::RequestChangeTheme'
[03:26:07] [DEBUG] [main] Event posted: 'hex::EventSettingsChanged'
[03:26:07] [DEBUG] [main] Event posted: 'hex::EventWindowInitialized'
[03:26:07] [DEBUG] [main] Event posted: 'hex::EventImHexStartupFinished'
[03:26:07] [ERROR] [main] GLFW Error [65548] : Wayland: The platform does not provide the window position
Signal: SIGABRT (Aborted)

from imhex.

shenlebantongying avatar shenlebantongying commented on May 23, 2024

The ASSERT at the crash point explicitly says what's wrong, but after vaious tweaking, I couldn't find out what's wrong.

IM_ASSERT(0 && "Code uses SetCursorPos()/SetCursorScreenPos() to extend window/parent boundaries. Please submit an item e.g. Dummy() to validate extent.");

https://github.com/ocornut/imgui/blob/085781f5ca5372d5fc804d7e44b5bf27a8994af7/imgui.cpp#L10179-L10209

from imhex.

shenlebantongying avatar shenlebantongying commented on May 23, 2024

Yes, I can confirm the patch works.

from imhex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.