Skip to content

[MISC] Propagate interactive viewer exceptions when running in thread.#2436

Closed
hughperkins wants to merge 1 commit intoGenesis-Embodied-AI:mainfrom
hughperkins:hp/surface-viewer-exceptions
Closed

[MISC] Propagate interactive viewer exceptions when running in thread.#2436
hughperkins wants to merge 1 commit intoGenesis-Embodied-AI:mainfrom
hughperkins:hp/surface-viewer-exceptions

Conversation

@hughperkins
Copy link
Collaborator

@hughperkins hughperkins commented Feb 19, 2026

No description provided.

except AttributeError:
# The graphical window has been closed manually
pass
except Exception as e:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this. It is not applicable here.

self._viewer.update(auto_refresh=auto, force=force)
else:
gs.raise_exception("Viewer closed.")
pyrender_viewer = self._viewer._pyrender_viewer
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the right place to do this. I would suggest to “refactor” this part to move the responsibility of handling exception in viewer. This means not checking if viewer is alive anymore in this function.

@duburcqa duburcqa changed the title [MISC] Surface viewer thread exceptions [MISC] ¨ropagate interactive viewer exceptions when running in thread. Feb 19, 2026
@duburcqa duburcqa changed the title [MISC] ¨ropagate interactive viewer exceptions when running in thread. [MISC] Propagate interactive viewer exceptions when running in thread. Feb 19, 2026
@github-actions
Copy link

🔴 Benchmark Regression Detected ➡️ Report

@hughperkins hughperkins closed this Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants