Skip to content

[Bug] Viewport fails to load (Blank Screen) when DICOM SR Measurements / Arrow Annotations are present #5930

@karankretoss123

Description

@karankretoss123

Describe the Bug

Description
When attempting to load a study in the OHIF Basic Viewer, the viewport remains blank if the study contains DICOM Structured Reports (SR) with specific measurements or annotations (e.g., Arrows/ArrowAnnotate). Studies without measurements load successfully.
Environment
• OHIF Framework Version: 3.x (latest)
Extensions used:
• cornerstone
• cornerstone-dicom-sr
• default
• measurement-tracking
Modes used:
• basic
• longitudinal

Image Image

Steps to Reproduce

  • Open the OHIF viewer with a study that contains DICOM SR measurements, specifically those including Arrow Annotations (ArrowAnnotate).
  • Observe that the viewport area where the image should appear is blank/empty.
  • Open a study without any measurements; observe that the image loads and renders correctly.
    • Technical Context & Findings
      • SOP Class Handler: Using a custom DicomSRSopClassHandler with manual extraction logic
      • Tool Mapping: ArrowAnnotate is mapped in initMeasurementService.
Image Image

The current behavior

The viewport fails to render the image series entirely when measurements are present. The console often shows errors related to MetadataProvider or exceptions during the DicomSRHandler load process, specifically when mapping SOPInstanceUID to imageId.

The expected behavior

The image series should load and render in the viewport, with the measurements (Arrows) overlaid on the correct frames as defined in the SR.

System Information

System:
OS: Windows 10 10.0.19045
CPU: (4) x64 Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz
Memory: 4.55 GB / 15.88 GB

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions