getCameraCPU throws error: Cannot destructure property 'direction' of 'metadata' as it is undefined only on Chrome

I’m encountering an issue where the getCameraCPU() function in Cornerstone3D throws the following error on Chrome for a Windows user:
Cannot destructure property 'direction' of 'metadata' as it is undefined.

metadata or metadata.direction appears to be undefined, causing the destructuring operation to fail.

This issue occurs only on Chrome for one user, while it works perfectly fine on their Firefox browser, while everyone else (using the same study) does not encounter the problem on any browser.
The error is not related to the study metadata, as the same study works perfectly fine for other users.

Environment:

  • OS: Windows 10
  • Browser: Chrome (Version: 132.0.6834.111)
  • Cornerstone3D Version: cornerstone-core: “^2.6.0”

I’m not sure what the issue is. I’ve already tried clearing the cache and following the steps mentioned here: cornerstone3D issue #453, hoping it would resolve the problem, but it didn’t. Could you please help me figure out how to fix this?

I’ve just I noticed a logged warning in the browser console:
CornerstoneRender: GPU not detected, using CPU rendering

It seems that the issue may be related to Cornerstone3D falling back to CPU rendering. Could you please advise if there is any way to resolve this and ensure GPU rendering is used instead?