View in #cornerstone3d on Slack
@Darfito_Danurdoro: Hello, I tried deploying OHIF and testing the 4D PET/CT using the default OHIF dataset. On my localhost, the 4D PET/CT works properly, and the data is displayed as expected. However, after deploying OHIF, the data doesn’t load, and the viewport for the 4D PET/CT appears blank.
Has anyone experienced this issue or knows how to resolve it? Any help would be appreciated.
@Jason_Hostetter: Do you get any errors in the console on the deployed site?
@Darfito_Danurdoro: i get this on the console log and on the server side
@Jason_Hostetter: The version of cornerstone 3d you are using (v1) uses SharedArrayBuffer for handling pixel data, and that feature requires the webpage to be cross origin isolated for security reasons (see https://developer.mozilla.org/en-US/docs/Web/API/Window/crossOriginIsolated)
MDN Web Docs: Window: crossOriginIsolated property - Web APIs | MDN
You can either add the necessary headers to your origin server to satisfy the requirements listed in that article, or you can try upgrading to cornerstone3d v2, which was just released and does not depend on SharedArrayBuffer
@Darfito_Danurdoro: ok I am using OHIF 3.9.0 beta 35 which is quite old. I guess to solve this problem I have to update to which version? I want to stay around in version 3.9.x first. Furthermore, I have messed with the OHIF UI according to my own wishes if I want to update to the latest version what do I need to pay attention to? thank you I really appreciate your response
@Jason_Hostetter: Hmm, that is strange bc I think 3.9 is the version that got rid of SharedArrayBuffer. Maybe try moving to the latest 3.9.x (ie, not the beta?)
Or, if you have control of the server serving OHIF it may be easy to just add the necessary COOP and COEP headers to enable cross origin isolation
@Darfito_Danurdoro: thank you for answering! but I am still confused because the base ohif that I modified is ohif 3.90-beta-35 and if I update to 3.9.2 the ui changes a lot but I need an update so that the 4d pt ct and Rectangle ROI Threshold in my TMTV can work properly. can you help me so that I don’t get an error when migrating to 3.9.2?
@Jason_Hostetter: I see, if there are a lot of UI changes then it might be easier for your purposes to just fix the headers on the server so that cross-origin isolation works with your current OHIF setup
I’m not super familiar with the OHIF react UI so I can’t help you there
@Darfito_Danurdoro: ok i will try that solution thx for the answer!