You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
click on the x in the viewer gui to close the window
The following error is printed inside the notebook:
An exception has occurred, use %tb to see the full traceback.
SystemExit
/Users/darin/miniconda3/envs/cerebro/lib/python3.9/site-packages/IPython/core/interactiveshell.py:3441: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.
warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)
The text was updated successfully, but these errors were encountered:
Hey there, I looked into this and I found that Panda uses sys.exit() so the error is inevitable. Here is the link to extended traceback https://pastebin.com/CyzifM4V
I guess we can handle the exception using a try block in the renderer.py like this,
Catching the SystemExit seems like it would work as a short-term work-around, but I'd be worried about potential side effects. What should happen if the application was called via a script rather than from a notebook? What should happen if there was an error and sys.exit was called with a non-zero error from another part of the ShowBase?
Hey @dsleiter , after looking further into this issue, I understood that this behavior of the viewer is only specific to notebooks and there is a further breakdown of the viewer when we try to run the script right after we close it, Exception: Attempt to spawn multiple ShowBase instances!
And the Kernel dies. This has nothing to do with Cerebro, but everything to do with the 'Sys.exit()'
This weird breakdown of the Panda is only due to the Sys.exit() and happens only in notebooks and not in Terminal. After the initial SystemExit exception, the Panda breaks down when tried to run again. Read the StackOverflow thread for detailed explanation.
Steps to reproduce:
The following error is printed inside the notebook:
The text was updated successfully, but these errors were encountered: