Skip to content

[Bug] OHIF crashes on second view/hydration of SR series #5634

@jbocce

Description

@jbocce

Describe the Bug

For a particular study, namely 1.3.6.1.4.1.14519.5.2.1.7310.5101.860473186348887719777907797922, a second view (i.e. either double click or drag-and-drop) of an SR series causes OHIF to crash with the following exception...

Uncaught TypeError: e.getAllVolumeIds is not a function
    at initCineService.ts:5:30
    at Ve (initCineService.ts:31:35)
    at Object.getSyncedViewports [as _getSyncedViewports] (initCineService.ts:52:12)
    at j.getSyncedViewports (CineService.ts:75:39)
    at CineProvider.tsx:23:39
    at Object.Mo [as useReducer] (react-dom.production.min.js:163:451)
    at t.useReducer (react.production.min.js:26:114)
    at PR (CineProvider.tsx:56:29)
    at go (react-dom.production.min.js:160:137)
    at _s (react-dom.production.min.js:196:258)

Note that this behaviour was only seen on this particular study and furthermore the crash can be reproduced in 3.11.1.

Steps to Reproduce

  1. View the study 1.3.6.1.4.1.14519.5.2.1.7310.5101.860473186348887719777907797922. (https://viewer-dev.ohif.org/viewer?StudyInstanceUIDs=1.3.6.1.4.1.14519.5.2.1.7310.5101.860473186348887719777907797922)
  2. Hydrate the (only) SR series.
  3. Use the measurements side panel to navigate to the various measurements.
  4. Attempt to view the SR series again.

The current behavior

OHIF crashes. Browser window goes completely black. Exception in the console.

The expected behavior

No crash at the very least.

System Information

System:
OS: Windows 11 10.0.26200
CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
Memory: 5.00 GB / 31.68 GB
Binaries:
Node: 23.9.0 - ~\AppData\Local\fnm_multishells\52784_1765830696412\node.EXE
Yarn: 1.22.22 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 10.9.2 - ~\AppData\Local\fnm_multishells\52784_1765830696412\npm.CMD
bun: 1.2.23 - ~.bun\bin\bun.EXE
Browsers:
Edge: Chromium (140.0.3485.54)
Internet Explorer: 11.0.26100.7309
Chrome: 143.0.7499.41 (Official Build) (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugsBug reported, reproducible, and verified.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions