Thanks to visit codestin.com
Credit goes to github.com

Skip to content

error handling in the render loop #937

@kushalkolar

Description

@kushalkolar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions