-
Notifications
You must be signed in to change notification settings - Fork 57
Description
We should more gracefully handle exceptions in the render loop, both the pygfx rendering and imgui rendering. We could write the output to stderr and continue the render loop, trying to render the next frame. The user can handle stderr. If imgui is being used we could also display the exception in a popup window or something. We can do the same for the imgui render loop. This way the imgui UI doesn't blank out when things happen and the Figure remains useable. Also useful for debugging in general.
I think we can use logging.exception: https://stackoverflow.com/questions/1508467/log-exception-with-traceback-in-python
@almarklein do you think this makes sense to do?
@FlynnOConnell I know we've talked about how imgui things can be difficult to debug sometimes.