-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
imgui-sfml IM_ASSERT failure #9660
Comments
Hi @JackBoosY, I did a complete purge of vcpkg and reinstalled the packages I listed above. I still get the same exception thrown in Visual Studio of |
@BryanTriana I ended up statically building SFML from source and then building ImGUI-SFML from source as well. That has been working with zero issues thus far. |
Also getting the same issue - I will try the static building of SFML like @esduran has done. |
I'm digging deeper into this issue, which may be caused by the fact that the symbols are not reused. |
imgui-sfml |
I am having the same issue, I will try to resort to manual build... |
I also have the same problem. Here's my hypothesis.
I hacked something in the debugger that seemed to work. In the main, I added a call to Problem is: I don't find a way to get the |
Hi Vincent, For the time being the workaround for me is the manual integration described here: |
We are digging the cause of this issue and try to support |
It seems that there are many issues with the |
I did almost the same thing as the OP. To reproduce, with VS2019 and vcpkg integration enabled:
This will assert on the call to ImGui::Begin. |
197 code
code
|
We will set imgui-sfml to only static library. |
Hi guys, I'm fixing this issue in #10840, can anyone help me to test it? Thanks. |
I’m happy to help. What do you need me to do? Not just a git pull against my vcpkg install... I will have to make sure I have got rid of all static builds of SFML on my machine first. |
@luketrevorrow Use my changes and rebuild imgui-sfml would be okay. |
Hi all,
Do you still need testing?
Happy to help,
Nico
…On Thu, 16 Apr 2020, 04:06 Jack·Boos·Yu, ***@***.***> wrote:
@luketrevorrow <https://github.com/luketrevorrow> Use my changes and
rebuild imgui-sfml would be okay.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9660 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEUH4TICQE2SNNUCJEFYPOTRMZY2BANCNFSM4KGCZR5Q>
.
|
Is not working for me but i also made a big mistake, turns out sfml-imgui has no support for the current sfml and it seems is not going to work for any version higher than 2.1 sfml if im wrong about it please tell me, is not working for me and thats the only reason i can think of |
@NikBomb Yes please. @WeskerPower Could you provide me more details? Thanks. |
x86 - debug, win10, visual studio 2019 Well im using it without Cmake, according to umgui-sfml all i need to do is copy paste this code, after i install imgui-sfml with vcpkg
then i have different issues one i notice a few days ago was that is not loading some files
Im not sure if im doing something wrong over here |
@WeskerPower Did you use #10840 changes? |
i just replace or created those files and didnt work for me, should i do anything else ? |
@WeskerPower You should clone my repo |
`
Thanks ok i had a bit of trouble there, but i manage to do what i needed to do, and now its working i can confirm that solves the issue of g been null |
Dear All, I can confirm that the changes fix the issue. |
Fixed by #11800. |
Describe the bug
When running my application in x64-Debug I get:
Assertion failed: g.FrameScopeActive, file C:\vcpkg\buildtrees\imgui\src\v1.73-a85d24b4b8\imgui.cpp, line 5400
only when I add
ImGui::Begin
andImGui::End
calls to my source file.I am attempting to start a new C++ project using vcpkg, CMake, and Visual Studio on windows. I installed the following packages through vcpkg:
In my CMakeLists.txt I include the following:
My main.cpp file consists of the following:
When running my application in Visual Studio using the x64-Debug configuration I immediately get the following assertion failure for
IM_ASSERT(g.FrameScopeActive)
. This only happens when I add the linesWithout them I get a running black window (first image below).
I have been unable to find a solution to this problem. I am unsure if this is an issue with ImGui-SFML or ImGui itself. Any help with this would be greatly appreciated. Thank you!
Screenshots/Video


Environment
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected to see an ImGui window with a button.
Additional context
This issue was initially opened directly in the ImGui-SFML repository, but after some experimentation it was determined that the issue exists in the vcpkg version.
The text was updated successfully, but these errors were encountered: