Using CPU rendering has an error

Describe Your Question

  • I enabled the CPU Rendering option in the config file settings, but I encountered the following error. I set this value in the default.js file:
  • Version : 3.9.0-beta.85

What steps can we follow to reproduce the bug?

  1. In the default.js file set this config useCPURendering: true,
Context: Grid

Error Message: Cannot destructure property 'direction' of 'metadata' as it is undefined.


Stack Trace
Stack: TypeError: Cannot destructure property 'direction' of 'metadata' as it is undefined.
    at StackViewport.getCameraCPU (http://localhost:3000/app.js:88937:17)
    at evaluate (http://localhost:3000/extensions_cornerstone_src_index_tsx.js:3932:31)
    at http://localhost:3000/app.js:36888:55
    at Array.map (<anonymous>)
    at props.evaluate (http://localhost:3000/app.js:36888:38)
    at evaluateButtonProps (http://localhost:3000/app.js:37080:43)
    at http://localhost:3000/app.js:37132:48
    at Array.map (<anonymous>)
    at http://localhost:3000/app.js:37132:36
    at Array.reduce (<anonymous>)