-
-
Notifications
You must be signed in to change notification settings - Fork 695
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
DearPyGUI creashes and exit without any error message #2405
Comments
Does a minimal example also crash on 2.0 on your system? Like this... import dearpygui.dearpygui as dpg
dpg.create_context()
dpg.create_viewport(title='Test', width=600, height=300)
with dpg.window(label="Example Window"):
dpg.add_text("Hello, world")
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context() |
It's working fine. |
You mentioned VS - does this mean Visual Studio or is it Visual Studio Code? If you have Visual Studio installed, Windows typically offers to debug the app in VS when it crashes. If you can do that, can you post a screenshot of the call stack? It might give some clues. Since the PyPI version was built without debug info, there's little you can pull out of it. If you really want to pursue this, you can try to build DPG yourself - and use either |
My typical approach to debugging such issues is to (1) recreate the issue with a |
Also: if you start your app on 1.11 and don't touch the UI, does it eventually crash as well? |
Yes, but not so quick. |
I have a question, DPG build into so, how to debug with so library? |
Well, a I'm not sure that VS Code can debug DLLs (maybe it can, depends on extensions; I've never used it this way). Visual Studio (not Code), if you have it, might be a better choice. |
When your program crashes on this system, does it show a message box suggesting to debug the program? If not, then probably Visual Studio is not selected as the default postmortem debugger. See this topic to enable such debugging. In theory, after you tick the "Native" checkbox, it should start offering you to debug the app. The StackOverflow topic is pretty old, but seems to still apply to later versions of VS (not sure about 2022, I have an older version). |
Also see the comment in there about WER in Windows 10. |
PLEASE CAREFULLY READ: FAQ
PLEASE CAREFULLY READ: Documentation
FOR FIRST-TIME USERS ISSUES, please use the Discord server.
REMOVE ALL 3RD PARTY LIBRARIES.
PLEASE MAKE SURE that you have: read the FAQ; explored the examples; searched among Issues; and read the link provided in (1) (2).
Be mindful that messages are being sent to the e-mail box of "Watching" users. Try to proof-read your messages before sending them. Edits are not seen by those users.
Delete points 1-7 and PLEASE FILL THE TEMPLATE BELOW before submitting your issue or we will immediately close it.
Thank you!
Version of Dear PyGui
Version: 2.0
Operating System: Windows 10
My Issue/Question
In version 1.11.1, it can still work for a while. After upgrading to version 2.0, dearpygui crashes immediately after UI being displayed without any error prompts.
I was trying to debug on VS, when the UI displayed and when I step over the "dpg.render_dearpygui_frame()" again, then it crashes without any information.
Is there any way to capture and analyze error information?
Since there is a relatively large amount of code, it is not very suitable for uploading.
The text was updated successfully, but these errors were encountered: