Skip to content

[Bug] Freehand ROI not renders in Volume Viewport for Oblique data #5889

@arul-trenser

Description

@arul-trenser

Describe the Bug

This issue occurs only with oblique datasets. When attempting to draw an annotation using the Freehand ROI tool in volume viewports (MPR layout), the drawing fails. After this failure occurs, other annotation tools also become unresponsive.

20260311-1336-41.5322819.mp4

Steps to Reproduce

  1. Launch the study https://viewer-dev.ohif.org/viewer?StudyInstanceUIDs=1.3.6.1.4.1.14519.5.2.1.9823.1001.134394060407147891170882809392
  2. Switch to 2D MPR layout
  3. Draw freehand ROI

The current behavior

Rendering fails with below issue.

TypeError: Cannot read properties of undefined (reading 'annotation')
    at D.renderAnnotationInstance (2075.bundle.2f9f4cb00dc13e7af727.js:1:14225)
    at D.renderAnnotation (4287.bundle.29d74b91f8ac8564d753.js:1:33882)
    at https://viewer-dev.ohif.org/9205.bundle.5cff9ac7c81278237d3a.js:1:59858
    at Array.forEach (<anonymous>)
    at https://viewer-dev.ohif.org/9205.bundle.5cff9ac7c81278237d3a.js:1:59813
    at u (2075.bundle.2f9f4cb00dc13e7af727.js:1:1267)
    at Object._triggerRender (9205.bundle.5cff9ac7c81278237d3a.js:1:59795)
    at _renderFlaggedViewports (9205.bundle.5cff9ac7c81278237d3a.js:1:58420)

The expected behavior

Annotation should render properly

System Information

System:
OS: Linux 6.6 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Memory: 4.29 GB / 7.63 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 22.19.0 - ~/.nvm/versions/node/v22.19.0/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v22.19.0/bin/yarn
npm: 11.6.0 - ~/.nvm/versions/node/v22.19.0/bin/npm

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