OHIF / Viewers

OHIF zero-footprint DICOM viewer and oncology specific Lesion Tracker, plus shared extension packages
https://docs.ohif.org/
MIT License
3.35k stars 3.37k forks source link

[Bug] Cannot destructure property 'direction' of 'metadata' as it is undefined #4405

Open myousefipour opened 1 month ago

myousefipour commented 1 month ago

Describe the Bug

Some mobile devices, such as the Samsung A51, are unable to display images. On these devices, the following error occurs, which is related to the GPU:

"Failed to load OES_texture_float_linear. Texture filtering is not available for 32F internal formats. [.WebGL-0x700a77ce00] RENDER WARNING: texture bound to texture unit 0 is not renderable. It might be non-power-of-2 or have incompatible texture filtering (maybe)?" To resolve the issue on these devices, it is better to use CPU rendering capabilities.

By enabling the parameter useCPURendering: true, the following error occurs for all modalities: "Cannot destructure property 'direction' of 'metadata' as it is undefined."

Steps to Reproduce

۱. In the config file, make these corrections : useCPURendering: true imageRendering: 'wadouri', thumbnailRendering: 'wadouri',

The current behavior

This error occurs: Cannot destructure property 'direction' of 'metadata' as it is undefined.

The expected behavior

It is expected that the image will be displayed as in the Cornerstone 3D template in the link below: https://www.cornerstonejs.org/live-examples/localcpu

OS

windows 11

Node version

20.12.2

Browser

chrome latest

sedghi commented 7 hours ago

Can you check the latest OHIF viewer, which now includes Cornerstone 3D 2.0?

Here are the migration guides:

Try OHIF locally: https://viewer-dev.ohif.org/localbasic
Try Cornerstone3D 2.0 locally: https://www.cornerstonejs.org/live-examples/local.html

https://docs.ohif.org/migration-guide/3p8-to-3p9/