# UR+ panel is not handling exceptions gracefully

**URL:** <https://forum.universal-robots.com/t/ur-panel-is-not-handling-exceptions-gracefully/34169>\
**Category:** Report a Bug\
**Created:** [May 13, 2024, 9:08am UTC](https://forum.universal-robots.com/t/ur-panel-is-not-handling-exceptions-gracefully/34169 "2024-05-13T09:08:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lwh](https://avatars.discourse-cdn.com/v4/letter/l/779978/32.png) [@lwh](https://forum.universal-robots.com/u/lwh)\
**Post date:** [May 13, 2024, 9:08am UTC](https://forum.universal-robots.com/t/ur-panel-is-not-handling-exceptions-gracefully/34169/1 "2024-05-13T09:08:56Z")

</div>

Steps to reproduce:

- Throw a RuntimeException from code within a UR+ panel tab. E.g. in SwingToolbarContribution.openView() or SwingToolbarService.createToolbar()
- Pass a ‘null’ reference instead of a valid icon PNG file - SwingToolbarService.getIcon()

Expected Behavior:

- After an exception in openView() is shown to the user, the UR+ panel should resume normal operation
- For exceptions thrown in createToolbar() and getIcon(), show an error message during the splash load or right after

Actual Behavior:

- OpenView: after the exception is shown to the user, that particular tab of the UR+ panel is dead. Other tabs may work, but the one with the exception remains frozen forever
- createToolbar() and getIcon(): the splash screen continues but freeze at 100%

Workaround Suggestion:

- Do not crash the UR+ panel that has thrown an exception
- Ensure exceptions during splash screen is reported after the splash screen has finished loading

Robot Serial Number:

- Dockerized simulator (se version below)

Affected Version(s):

- universalrobots/ursim\_e-series:5.15.2

---

<div class="post-metadata">

**Author:** ![lwh](https://avatars.discourse-cdn.com/v4/letter/l/779978/32.png) [@lwh](https://forum.universal-robots.com/u/lwh)\
**Post date:** [May 23, 2024, 1:44pm UTC](https://forum.universal-robots.com/t/ur-panel-is-not-handling-exceptions-gracefully/34169/2 "2024-05-23T13:44:56Z")

</div>

Comments anyone?

(must be at least 20 characters…)
