imgui_bundle: Memory access problem with 1.2.1 with Python in Linux
Hi everyone,
after roughly checking this issue for duplicates or similarities, I came to the conclusion to try to post this.
Just to be clear, I work with Python in Ubuntu 22.04 LTS in Wayland. But I also tested this issue in Xorg. Unfortunately same result.
After updating imgui-bundle from 1.1.0 to 1.2.1 via pip, I noticed that the line
imgui.create_context()
leads to a crash of my app. Now the curious part.
- I’ve tried this with sdl2 first, since it is my main backend in use currently. It doesn’t work. That’s how I noticed it.
- Then I tried the same with glfw3. It also crashes.
- After that, I then tried the example backend files from the repository. Neither do they work.
- Desperately I thought, “Maybe I did something wrong? Maybe the backends doesn’t work anymore.”, thus, I tried the “demo_hello_world.py” (with immapp) demo code, which can be found in the doc. Also no luck.
The app starts briefly in all cases. It shows no content. However, it either stops without any terminal output or outputs a memory access error line, which is not helpful.
I’m working on a system with Intel core i7-1365U, which comes with Iris Xe and thus in Ubuntu with Mesa Intel Graphics (RPL-P) driver. I think this is quite strange, since imgui-bundle 1.1.0 works fine.
Currently, I’m working with version 1.1.0 until this is resolved.
This is quite a bummer actually, since I really like to use the new functionality of ChildFlags to make the child area re-sizable.
About this issue
- Original URL
- State: closed
- Created 5 months ago
- Comments: 27 (15 by maintainers)
I just made a
pip install imgui-bundle -Uto update to 1.3.0. I can confirm that I can successfully run the sdl2, glfw and helloimgui examples.I released version 1.3.0 to correct the wheels for linux users:
Based on my tests, it works. Can you confirm?
This was my most difficult bug hunt ever. And I only found a workaround. Let’s hope it gets fixed in cibuildwheel, or if I made a mistake that I get to know where it was.
I can confirm, the change of this artifact you’ve done here, is working! For record, in this build, imgui is at 1.90.1, which should be the most recent what ocornut also just released.