BCDA-APS / gemviz

Data visualization for tiled
https://bcda-aps.github.io/gemviz/
Other
4 stars 0 forks source link

BUG: hard crash when viewing dm_workflow stream #188

Closed prjemian closed 8 months ago

prjemian commented 11 months ago

While browsing this catalog, switching to the dm_workflow stream crashes application immediately: image

Here's a screen of the dump: image

prjemian commented 11 months ago

Thanks, @cpchuang, for the bug report! While it's not prepared to view this data at least yet, the app should not crash out.

prjemian commented 11 months ago

Here is the context of that error dump. len(run_dims) is expected to be 1. https://github.com/BCDA-APS/gemviz/blob/d0feb9f31b6db214537668d7332dbdd60a186595/gemviz/tapi.py#L101-L105

prjemian commented 11 months ago

Hard crash happens at this line since it passes the exception into the Qt interface directly: https://github.com/BCDA-APS/gemviz/blob/d0feb9f31b6db214537668d7332dbdd60a186595/gemviz/bluesky_runs_catalog.py#L135 Break it down into steps.

prjemian commented 11 months ago

https://github.com/BCDA-APS/gemviz/blob/d0feb9f31b6db214537668d7332dbdd60a186595/gemviz/bluesky_runs_catalog_run_viz.py#L35-L36

The widget text is set in line 36. bluesky_runs_catalog should decide what text to send to this widget (either the run's data or a note saying that no run data was available).