question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Examples break when using streaming-wadors

See original GitHub issue

I ran into an issue while doing the examples and trying to use steaming-wadors

in all the Volume examples, imageIds are created and cached with the createImageIdsAndCacheMetaData helper function and ‘VOLUME’ (upper case string) for type. https://github.com/cornerstonejs/cornerstone3D-beta/blob/659888db44ab70d562f7f52872c822feb5c1db03/packages/core/examples/multiVolumeAPI/index.ts#L214

After closer inspection of the helper function you, which prefix is determined here

https://github.com/cornerstonejs/cornerstone3D-beta/blob/main/utils/demo/helpers/createImageIdsAndCacheMetaData.js#L51

but VOLUME constant is
const VOLUME = 'volume';

When I fix the constant to ‘VOLUME’ the streaming loader fails to initialize with the following exception… “Error: cornerstoneWADOImageLoader requires a copy of Cornerstone to work properly.” image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
heyflynncommented, Aug 10, 2022

fantastic!

I missed the part about dynamic-imports from cornerstoneWadoImageLoader for upgrading to 4.0. Adding the alias for dynamic imports and adding CopyWebpackPlugin to copy to the build folder solved my last issue.

My examples are working using streaming-wadors now.

Thanks for your help.

0reactions
ShitalPPcommented, Dec 10, 2022

I was also getting same error while loading Volume with ‘streaming-wadors:’ . As suggested I have added below config in my webpack , so now I am not getting error ‘cornerstoneWADOImageLoader requires a copy of Cornerstone to work properly’

resolve: { alias: { ‘cornerstone-wado-image-loader’: ‘cornerstone-wado-image-loader/dist/dynamic-import/cornerstoneWADOImageLoader.min.js’, },

But Volume not getting loaded properly and getting error , please see attached pic

image4

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Streaming Wars Take a Commercial Break - ShareCafe
Netflix ignited the so-called streaming wars by plowing billions of dollars into commercial-free, on-demand content, drawing Disney and ...
Read more >
Disney: The Unprofitable Streaming Wars Continue, With ...
Bob Chapek is officially out from the Land of Mouse, with some expecting Bob Iger to acquire WBD. Unlikely, in our opinion.
Read more >
One Clear Casualty of the Streaming Wars: Profit - Doug Shapiro
Why is streaming less profitable? Starting with economic theory, unbundling digital information goods inherently reduces profits and ...
Read more >
The Streaming Wars Explained | All Stocks Analyzed - YouTube
Skip the waitlist and invest in blue-chip art for the very first time by signing up for Masterworks: ...
Read more >
The major battle of the 2020 streaming wars will be over ads
Last month, AT&T announced that its Xandr ad-tech arm is now selling video ad time during pause breaks. Hulu, which is majority-owned by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found