Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] #1835

Open
wuzanfeng opened this issue Feb 19, 2025 · 2 comments
Open

[Bug] #1835

wuzanfeng opened this issue Feb 19, 2025 · 2 comments

Comments

@wuzanfeng
Copy link

Describe the Bug

I activated it when I used the ScaleOverlayTool tool, but found that after activating it, I quit and opened the second screen, the ruler tool did not appear, and all the other tools were invalid

Steps to Reproduce

    toolGroup.setToolConfiguration(
        ScaleOverlayTool.toolName, {
            scaleLocation: 'bottom',
        },
        true //overwrite
    );
    toolGroup.setToolEnabled(ScaleOverlayTool.toolName);

The current behavior

chunk-BOA6ZL6C.js?v=04a808e9:68392 Uncaught (in promise) TypeError: Cannot destructure property 'imageData' of 'e6.getImageData(...)' as it is undefined.
at Module.Es (chunk-BOA6ZL6C.js?v=04a808e9:68392:30)
at eE._init (@cornerstonejs_tools.js?v=6a0b9efd:36084:93)
at eE.onSetToolEnabled (@cornerstonejs_tools.js?v=6a0b9efd:36095:20)
at tf.setToolEnabled (@cornerstonejs_tools.js?v=6a0b9efd:31424:101)
at Proxy.onClick (viewImage.vue?import&t=1739944935526:1245:19)
at onClick (viewImage.vue?import&t=1739944935526:1792:42)
at callWithErrorHandling (chunk-GQPZWKTO.js?v=04a808e9:2285:19)
at callWithAsyncErrorHandling (chunk-GQPZWKTO.js?v=04a808e9:2292:17)
at HTMLDivElement.invoker (chunk-GQPZWKTO.js?v=04a808e9:10973:5)

@cornerstonejs_tools.js?v=6a0b9efd:36145 Uncaught TypeError: Cannot read properties of undefined (reading 'data')
at eE.renderAnnotation (@cornerstonejs_tools.js?v=6a0b9efd:36145:232)
at @cornerstonejs_tools.js?v=6a0b9efd:24263:33
at Array.forEach ()
at @cornerstonejs_tools.js?v=6a0b9efd:24261:18
at Ra (@cornerstonejs_tools.js?v=6a0b9efd:24196:11)
at Object._triggerRender (@cornerstonejs_tools.js?v=6a0b9efd:24259:13)
at @cornerstonejs_tools.js?v=6a0b9efd:24219:56

The expected behavior

chunk-BOA6ZL6C.js?v=04a808e9:68392 Uncaught (in promise) TypeError: Cannot destructure property 'imageData' of 'e6.getImageData(...)' as it is undefined.
at Module.Es (chunk-BOA6ZL6C.js?v=04a808e9:68392:30)
at eE._init (@cornerstonejs_tools.js?v=6a0b9efd:36084:93)
at eE.onSetToolEnabled (@cornerstonejs_tools.js?v=6a0b9efd:36095:20)
at tf.setToolEnabled (@cornerstonejs_tools.js?v=6a0b9efd:31424:101)
at Proxy.onClick (viewImage.vue?import&t=1739944935526:1245:19)
at onClick (viewImage.vue?import&t=1739944935526:1792:42)
at callWithErrorHandling (chunk-GQPZWKTO.js?v=04a808e9:2285:19)
at callWithAsyncErrorHandling (chunk-GQPZWKTO.js?v=04a808e9:2292:17)
at HTMLDivElement.invoker (chunk-GQPZWKTO.js?v=04a808e9:10973:5)

@cornerstonejs_tools.js?v=6a0b9efd:36145 Uncaught TypeError: Cannot read properties of undefined (reading 'data')
at eE.renderAnnotation (@cornerstonejs_tools.js?v=6a0b9efd:36145:232)
at @cornerstonejs_tools.js?v=6a0b9efd:24263:33
at Array.forEach ()
at @cornerstonejs_tools.js?v=6a0b9efd:24261:18
at Ra (@cornerstonejs_tools.js?v=6a0b9efd:24196:11)
at Object._triggerRender (@cornerstonejs_tools.js?v=6a0b9efd:24259:13)
at @cornerstonejs_tools.js?v=6a0b9efd:24219:56

OS

win11

Node version

22.12.0

Browser

CHROME

@thecassini
Copy link

thecassini commented Feb 19, 2025

can you provide a video showing the issue and a reproducible repo?

@sedghi
Copy link
Member

sedghi commented Feb 19, 2025

What do you mean second screen? you mean viewport?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants