Something went wrongfalse

48 views
Skip to first unread message

Augmented Reporting

unread,
Dec 20, 2022, 3:28:38 PM12/20/22
to cornerstone platform
OHIF v3-stable connected to Orthanc 1.11.2

study list appears normally
but loading a study fails with error  Something went wrongfalse

console log

TypeError: Cannot read properties of undefined (reading '0')
    at ModeRoute (app.bundle.fb24e97581a2b3aed716.js:210240:31)
    at Ch (app.bundle.fb24e97581a2b3aed716.js:181611:137)
    at ck (app.bundle.fb24e97581a2b3aed716.js:181721:460)
    at bk (app.bundle.fb24e97581a2b3aed716.js:181704:347)
    at ak (app.bundle.fb24e97581a2b3aed716.js:181704:278)
    at Tj (app.bundle.fb24e97581a2b3aed716.js:181704:138)
    at Lj (app.bundle.fb24e97581a2b3aed716.js:181697:163)
    at app.bundle.fb24e97581a2b3aed716.js:181577:115
    at __webpack_modules__.39666.exports.unstable_runWithPriority (app.bundle.fb24e97581a2b3aed716.js:188749:343)
    at gg (app.bundle.fb24e97581a2b3aed716.js:181576:325)
overrideMethod @ react_devtools_backend.js:4012
Ni @ app.bundle.fb24e97581a2b3aed716.js:181670
Si.c.payload @ app.bundle.fb24e97581a2b3aed716.js:181671
Cg @ app.bundle.fb24e97581a2b3aed716.js:181584
pi @ app.bundle.fb24e97581a2b3aed716.js:181638
ck @ app.bundle.fb24e97581a2b3aed716.js:181723
bk @ app.bundle.fb24e97581a2b3aed716.js:181704
ak @ app.bundle.fb24e97581a2b3aed716.js:181704
Tj @ app.bundle.fb24e97581a2b3aed716.js:181704
Lj @ app.bundle.fb24e97581a2b3aed716.js:181697
(anonymous) @ app.bundle.fb24e97581a2b3aed716.js:181577
__webpack_modules__.39666.exports.unstable_runWithPriority @ app.bundle.fb24e97581a2b3aed716.js:188749
gg @ app.bundle.fb24e97581a2b3aed716.js:181576
jg @ app.bundle.fb24e97581a2b3aed716.js:181577
ig @ app.bundle.fb24e97581a2b3aed716.js:181576
Hb @ app.bundle.fb24e97581a2b3aed716.js:181746
gd @ app.bundle.fb24e97581a2b3aed716.js:181527
react_devtools_backend.js:4012 Route /viewer Error Boundary TypeError: Cannot read properties of undefined (reading '0')
    at ModeRoute (app.bundle.fb24e97581a2b3aed716.js:210240:31)
    at Ch (app.bundle.fb24e97581a2b3aed716.js:181611:137)
    at ck (app.bundle.fb24e97581a2b3aed716.js:181721:460)
    at bk (app.bundle.fb24e97581a2b3aed716.js:181704:347)
    at ak (app.bundle.fb24e97581a2b3aed716.js:181704:278)
    at Tj (app.bundle.fb24e97581a2b3aed716.js:181704:138)
    at Lj (app.bundle.fb24e97581a2b3aed716.js:181697:163)
    at app.bundle.fb24e97581a2b3aed716.js:181577:115
    at __webpack_modules__.39666.exports.unstable_runWithPriority (app.bundle.fb24e97581a2b3aed716.js:188749:343)
    at gg (app.bundle.fb24e97581a2b3aed716.js:181576:325) {componentStack: '\n    at ModeRoute (https://[removed]/…com/app.bundle.fb24e97581a2b3aed716.js:211294:21)'} Route /viewer

Augmented Reporting

unread,
Dec 30, 2022, 9:16:27 AM12/30/22
to cornerstone platform
just FYI, this config addressed the issue:

window.config = {
  routerBasename: '/',
  extensions: [],
  modes: [],
  showStudyList: true,
  maxNumberOfWebWorkers: 4,
  showLoadingIndicator: true,
  dataSources: [
    {
      friendlyName: 'Orthanc Server',
      namespace: '@ohif/extension-default.dataSourcesModule.dicomweb',
      sourceName: 'dicomweb',
      configuration: {
        name: 'Orthanc',
        wadoUriRoot: '[external Orthanc URL]/wado',
        qidoRoot: ' [external Orthanc URL]/dicom-web',
        wadoRoot: ' [external Orthanc URL]/dicom-web',
        qidoSupportsIncludeField: false,
        supportsReject: false,
        imageRendering: 'wadouri',
        thumbnailRendering: 'wadouri',
        enableStudyLazyLoad: true,
        supportsFuzzyMatching: false,
        supportsWildcard: true,
        staticWado: true,
        singlepart: 'bulkdata,video,pdf',
      },
    },
    {
      friendlyName: 'dicom json',
      namespace: '@ohif/extension-default.dataSourcesModule.dicomjson',
      sourceName: 'dicomjson',
      configuration: {
        name: 'json',
      },
    },
    {
      friendlyName: 'dicom local',
      namespace: '@ohif/extension-default.dataSourcesModule.dicomlocal',
      sourceName: 'dicomlocal',
      configuration: {},
    },
  ],
  httpErrorHandler: error => {
    // This is 429 when rejected from the public idc sandbox too often.
    console.warn(error.status);

    // Could use services manager here to bring up a dialog/modal if needed.
    console.warn('test, navigate to https://ohif.org/');
  },
  defaultDataSourceName: 'dicomweb',
  hotkeys: [
    {
      commandName: 'incrementActiveViewport',
      label: 'Next Viewport',
      keys: ['right'],
    },
    {
      commandName: 'decrementActiveViewport',
      label: 'Previous Viewport',
      keys: ['left'],
    },
    { commandName: 'rotateViewportCW', label: 'Rotate Right', keys: ['r'] },
    { commandName: 'rotateViewportCCW', label: 'Rotate Left', keys: ['l'] },
    { commandName: 'invertViewport', label: 'Invert', keys: ['i'] },
    {
      commandName: 'flipViewportHorizontal',
      label: 'Flip Horizontally',
      keys: ['h'],
    },
    {
      commandName: 'flipViewportVertical',
      label: 'Flip Vertically',
      keys: ['v'],
    },
    { commandName: 'scaleUpViewport', label: 'Zoom In', keys: ['+'] },
    { commandName: 'scaleDownViewport', label: 'Zoom Out', keys: ['-'] },
    { commandName: 'fitViewportToWindow', label: 'Zoom to Fit', keys: ['='] },
    { commandName: 'resetViewport', label: 'Reset', keys: ['space'] },
    { commandName: 'nextImage', label: 'Next Image', keys: ['down'] },
    { commandName: 'previousImage', label: 'Previous Image', keys: ['up'] },
    {
      commandName: 'previousViewportDisplaySet',
      label: 'Previous Series',
      keys: ['pagedown'],
    },
    {
      commandName: 'nextViewportDisplaySet',
      label: 'Next Series',
      keys: ['pageup'],
    },
    {
      commandName: 'setToolActive',
      commandOptions: { toolName: 'Zoom' },
      label: 'Zoom',
      keys: ['z'],
    },
    // ~ Window level presets
    {
      commandName: 'windowLevelPreset1',
      label: 'W/L Preset 1',
      keys: ['1'],
    },
    {
      commandName: 'windowLevelPreset2',
      label: 'W/L Preset 2',
      keys: ['2'],
    },
    {
      commandName: 'windowLevelPreset3',
      label: 'W/L Preset 3',
      keys: ['3'],
    },
    {
      commandName: 'windowLevelPreset4',
      label: 'W/L Preset 4',
      keys: ['4'],
    },
    {
      commandName: 'windowLevelPreset5',
      label: 'W/L Preset 5',
      keys: ['5'],
    },
    {
      commandName: 'windowLevelPreset6',
      label: 'W/L Preset 6',
      keys: ['6'],
    },
    {
      commandName: 'windowLevelPreset7',
      label: 'W/L Preset 7',
      keys: ['7'],
    },
    {
      commandName: 'windowLevelPreset8',
      label: 'W/L Preset 8',
      keys: ['8'],
    },
    {
      commandName: 'windowLevelPreset9',
      label: 'W/L Preset 9',
      keys: ['9'],
    },
  ],
};

Reply all
Reply to author
Forward
0 new messages