Viewers: RightSidePanel: Cannot read property 'SeriesInstanceUID' of undefined error returned

Created on 19 Oct 2020  路  12Comments  路  Source: OHIF/Viewers

Bug Report

Describe the Bug

While working with RTSTRUCT and the OHIF viewer you are returned the error message, "RightSidePanel: Cannot read property 'SeriesInstanceUID' of undefined"

What steps can we follow to reproduce the bug?

  1. Open the study 1.3.6.1.4.1.14519.5.2.1.1706.4009.166062280490896869511085725416
  2. Open the RTSTRUCT tab on the right
  3. Select the second series and drag into the canvas
  4. You are returned the error message, "RightSidePanel: Cannot read property 'SeriesInstanceUID' of undefined"

2020-10-19 (9)

============= SESSION INFO =============
== App ==
version 4.5.21
== Extensions Versions ==
generic-viewer-commands 4.5.21
cornerstone 2.9.6
vtk 1.7.13
html    1.2.9
microscopy  0.51.3
pdf 1.0.6
com.ohif.dicom-segmentation 0.4.7
rt  0.4.9
dicom-p10-downloader    0.1.6
dicom-tag-browser   undefined
== Browser Info ==
name     chrome
os   Windows 10
type     browser
version  86.0.4240
== URL ==
URL  1.3.6.1.4.1.14519.5.2.1.1706.4009.166062280490896869511085725416
== Viewport Layout ==
Rows    1
Columns 1
== Viewports ==
[0,0]   1.3.6.1.4.1.14519.5.2.1.1706.4009.235001741732391381168268744865
Awaiting Reproduction Community priority Triage

Most helpful comment

This study contains only CT (which has RTStructs in it)

Can you clarify what you mean by the above, that CT contains RTStructs?

Yes. The thing is, during debugging i realised that this study didn't had any series with RTSTRUCT modality although the RTStructs were being loaded correctly in the viewport. I fixed the RT struct panel now so it will be disabled for other modalities properly.

All 12 comments

This is probably related to #2117

@madelyngreyes @fedorov fixed here: #2168.
This study contains only CT (which has RTStructs in it) and RTDOSE modalities. Currently we check only for RTSTRUCT in the RT extension, thats why things were broking. Now the panel button will only show for non-empty RTStructs.

This study contains only CT (which has RTStructs in it)

Can you clarify what you mean by the above, that CT contains RTStructs?

This study contains only CT (which has RTStructs in it)

Can you clarify what you mean by the above, that CT contains RTStructs?

Yes. The thing is, during debugging i realised that this study didn't had any series with RTSTRUCT modality although the RTStructs were being loaded correctly in the viewport. I fixed the RT struct panel now so it will be disabled for other modalities properly.

Update: The problem was caused by a reactivity bug with the panel and the active viewport, the loading should only appear for rtstructs and be empty otherwise. I have updated the PR so now the panel will behave correctly.

@madelyngreyes can you please confirm if this is fixed in the testing tier?

OHIF viewer error

I seem to be returning a different error with the ToolBarRow this time.

@madelyngreyes so it is the same as in https://github.com/OHIF/Viewers/issues/2117#issuecomment-741823904

Currently PR51 is live in the dev tier, running the steps from the original bug you are no longer returned an error message but, a blank RT Structure sets panel. Study used is, "1.3.6.1.4.1.14519.5.2.1.1706.4009.166062280490896869511085725416"

RT struct appears as a blank panel

Text could be added, "No data available" to make it clear to the end user.

I think when RTSTRUCT does not apply to the specific image series, the button and the panel should not be shown.

I think when RTSTRUCT does not apply to the specific image series, the button and the panel should not be shown.

@fedorov I think we missed this one during the last call, this one should be prioritized as well?

this one should be prioritized as well?

Yes!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TZubiri picture TZubiri  路  3Comments

szwang-wthealth picture szwang-wthealth  路  3Comments

pieper picture pieper  路  3Comments

MathisGuilhin picture MathisGuilhin  路  3Comments

christianvargasforero picture christianvargasforero  路  4Comments