ocornut / imgui

Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
MIT License
61.52k stars 10.35k forks source link

SIGSEGV on exit for example_glfw_metal #5363

Closed mmalex closed 2 years ago

mmalex commented 2 years ago

Version/Branch of Dear ImGui:

Version: Dear ImGui 1.88 WIP (18725) Branch: master

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_glfw.cpp + imgui_impl_metal.cpp Compiler: clang-1316.0.21.2.5 Operating System: Mac OS Monterey 12.4

When running the example_glfw_metal example, on quit (whether by clicking to close the window, or pressing Apple-Q), the program 'quits unexpectedly'. The full report including stack trace and imgui about info is attached. imgui_crash_report.txt

steps to reproduce: what is the correct FIRST thing to do with an absolutely brand new apple macbook pro? install imgui, of course. steps:

Note that this does not happen with glfw+opengl2, nor glfw+opengl3. I havent been able to get the SDL based example compiling yet, it fails to find SDL.h despite having run brew install sdl; Im guessing thats a separate issue though...

mmalex commented 2 years ago

doh, im such a noob, the SDL issue was that you need to install sdl2; TIL. anyway, can now confirm that it doesnt crash on exit with example_sdl_metal.

warrenm commented 2 years ago

This may be addressed by #5365.

mmalex commented 2 years ago

I can confirm that #5365 fixes the issue!

mmalex commented 2 years ago

(I actually think that means you fixed it faster than I could even write the issue. that's... negative response time. faster than light!)

ocornut commented 2 years ago

Merged fix as 7354009, thanks Warren ! And thanks Alex for filling such a careful bug report (Apologies if this felt/was overkill! we get a lot of noise and generally have to ask)