You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did you search existing issues? (Were any related?)
Nope
Description
FreehandRoiSculptorTool can cause a crash if "disabled" before an image is loaded on an element. This case is especially likely to come up when globalToolSync is enabled.
This issue has become a problem for me since v4.19.1
Prerequisites
Description
FreehandRoiSculptorTool
can cause a crash if "disabled" before an image is loaded on an element. This case is especially likely to come up whenglobalToolSync
is enabled.This issue has become a problem for me since
v4.19.1
The following change triggers the crash:
fc4495c#diff-8eec6cde9dbfd62a7f0ba3022495f20dR74-R82
This causes
FreehandRoiSculptorTool
to callupdateImage
on the element where we see the error.cornerstoneTools/src/tools/FreehandRoiSculptorTool.js
Lines 834 to 850 in 79660e9
Steps to Reproduce the issue
The simplest test case is to add the
FreehandRoiSculptorTool
and then callsetToolDisabledForElement
for it.CodeSandbox With Reproduction of Issue:
https://codesandbox.io/s/cornerstone-freehandsculptor-crash-u2wsk?file=/src/index.js
The text was updated successfully, but these errors were encountered: