ok, this does make a popup without crashing - but my code works fine with the other version of bbmod, including closing the popup if the user clicks outside it, which is what i want.
i tried putting OpenPopup before BeginPopup, and it didn't make a difference.
i checked what version of imgui...