-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Exception thrown when shaders are created #4428
Comments
Closing as lacking sufficient information and generally not our problem, given the scope of the codebase. Use a debugger to isolate the exact source code and function call leading to a crash. |
All the issues literally come from ImGui |
Omar suggested what you can do to find why your project is crashing. |
I was using the gl3w files that were in the ImGui/examples/libs folder and then switched to https://sourceforge.net/projects/glew/files/glew/2.1.0/ |
You can try to compare example_sdl_opengl3/main.cpp with your code and look for the differences. Maybe even debugging side by side to pin out the bug. |
An error which occurs while Dear ImGui code is executing does not necessarily indicate an error caused by Dear ImGui. By your own admission you're still learning C++. C++ is not like Python where inputs are constantly validated and friendly exceptions are thrown when you do something wrong. If you feed garbage into Dear ImGui (or any C++ library), you will get garbage out. (Sometimes you'll get an assert too, but there's only so much validation that can be done, especially in a memory-unsafe language.)
We can't debug your entire app for you, there's a number of reasons this might be happening. @thedmd's suggestion is a good one. Another thing in particular that stands out to me is this issue is for OpenGL but your repo appears to be using Vulkan but you seem to be using a custom SDL_render-based backend for Dear ImGui? You can't (easily) mix graphics APIs like this, you need to pick one and stick to it. (Also as an aside, I really would not recommend trying to learn Vulkan while you're still learning C++.) |
I had just switched it to Vulkan, but realized that Vulkan requires more code than OpenGL to do something such as drawing a triangle |
version: 1.83
branch: master
imgui_impl_opengl3
imgui_impl_sdl
I just finished getting everything working and compiled and ran my program, but as soon as it starts it stops and I get
The exception is in imgui_impl_opengl3.cpp and is at this chunk of code
Here is the repo if you want to clone it and run it
https://github.com/Lester702/Henly/tree/testing_imgui
The text was updated successfully, but these errors were encountered: