Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

windowWidth.toFixed is not a function in viewerMain [failed to load image]

Open briyk opened this issue 5 years ago • 16 comments

i have some issues of app in my local host TypeError: windowWidth.toFixed is not a function and am not changed anything of code just upgrade node.js enter image description here

briyk avatar Mar 09 '21 12:03 briyk

I have the same question

alexiusll avatar Mar 10 '21 02:03 alexiusll

I have the same problem. Did y'all get this problem by running yarn run dev? I worked around it by giving APP_CONFIG some value other than default.j, but I would also like some explanation on what is happening here.

msibal6 avatar Mar 11 '21 00:03 msibal6

According to issue #2138 there is a work around.

I did what @gccgomes and @bianyueyan suggested. I am pretty sure it is not a fix but it is a workaround for CT images

donghakang avatar Mar 11 '21 05:03 donghakang

I have the same problem. Did y'all get this problem by running yarn run dev? I worked around it by giving APP_CONFIG some value other than default.j, but I would also like some explanation on what is happening here.

i think the problem come from upgrading some functions on cornerstone library , problem show in CT , CT/PT images

briyk avatar Mar 11 '21 08:03 briyk

I have the same problem. Did y'all get this problem by running yarn run dev? I worked around it by giving APP_CONFIG some value other than default.j, but I would also like some explanation on what is happening here.

i think the problem come from upgrading some functions on cornerstone library , problem show in CT , CT/PT images

How about other image files like DICOM? Did you get them to work?

donghakang avatar Mar 11 '21 08:03 donghakang

I have the same problem. Did y'all get this problem by running yarn run dev? I worked around it by giving APP_CONFIG some value other than default.j, but I would also like some explanation on what is happening here.

i think the problem come from upgrading some functions on cornerstone library , problem show in CT , CT/PT images

How about other image files like DICOM? Did you get them to work?

just SM images work after refactor code in node-modules according to issue

briyk avatar Mar 11 '21 10:03 briyk

@swederik modifying react-cornerstone-viewport to consider both number / strings resolves the issue: https://github.com/cornerstonejs/react-cornerstone-viewport/pull/115

igoroctaviano avatar Mar 11 '21 13:03 igoroctaviano

@swederik modifying react-cornerstone-viewport to consider both number / strings resolves the issue: cornerstonejs/react-cornerstone-viewport#115

i wanna to show , this bug come after last commit team have made in in last version of ohif , i solve it when i reuse older version of ohif and modifying react-cornerstone-viewport to consider both number / strings it solved but in last version this solution not working

briyk avatar Mar 11 '21 15:03 briyk

@swederik modifying react-cornerstone-viewport to consider both number / strings resolves the issue: cornerstonejs/react-cornerstone-viewport#115

i wanna to show , this bug come after last commit team have made in in last version of ohif , i solve it when i reuse older version of ohif and modifying react-cornerstone-viewport to consider both number / strings it solved but in last version this solution not working

@brikjr Can you show which commit introduced the bug?

igoroctaviano avatar Mar 11 '21 15:03 igoroctaviano

@swederik modifying react-cornerstone-viewport to consider both number / strings resolves the issue: cornerstonejs/react-cornerstone-viewport#115

i wanna to show , this bug come after last commit team have made in in last version of ohif , i solve it when i reuse older version of ohif and modifying react-cornerstone-viewport to consider both number / strings it solved but in last version this solution not working

@brikjr Can you show which commit introduced the bug?

i don't know exactly which commit , but it's not working in version of 9 mar

briyk avatar Mar 13 '21 10:03 briyk

I have the same question

zhengxiuming avatar Mar 15 '21 08:03 zhengxiuming

I’ll open a PR today to bump react-cornerstone-viewport version in OHIF, this should solve the problem for now. Later I’ll open another that fix the issue in the OHIF metadata level.

igoroctaviano avatar Mar 15 '21 10:03 igoroctaviano

I downloaded the latest version of OHIF Viewer, and I still have the same problem in 2D MPR If you can reply to me, I will thank you very much. 68

bnbn860904 avatar Mar 16 '21 12:03 bnbn860904

I downloaded the latest version of OHIF Viewer, and I still have the same problem in 2D MPR If you can reply to me, I will thank you very much. 68

Looks like this is not a toFixed issue. It could be related but it's a different error in a different OHIF extension that needs investigation, can you create the issue for it with this screenshot?

igoroctaviano avatar Mar 16 '21 12:03 igoroctaviano

OK , thank you very much.

bnbn860904 avatar Mar 16 '21 12:03 bnbn860904

Fixed in the latest version!

igoroctaviano avatar Apr 15 '21 13:04 igoroctaviano