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.

stackPrefetch stops when selecting different element

See original GitHub issue

Hi, I have two divs. I assign a stack to each and do a cornerstoneTools.stackPrefetch.enable(elem1); to start prefetching the 1nst div. Then, I do the same on the 2nd div (I call it elem2). The problem I found is the prefetching of the first element stops when the 2nd element is enabled.

Is this the expected behavior of stackPrefetch?.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
swederikcommented, Sep 13, 2018

Looks like we can close this since #542 was merged. Thanks!

1reaction
Saucistophecommented, Aug 17, 2018

We’ve add the same problem and solved it by tweaking the stack prefetch:

  • Prevent the poolManager clearing for prefetches, so that it does not forget what it’s doing.
  • Insert the images at the beginning, but from last to first. This way, it’s added to the top with the greatest priority, but does load in the intended order.

We’ve tested it with two side-by-side viewer and it worked like a charm: each time we interact with a viewer, the other one stops loading and the current one resumes loading, even if the current image changes. When it’s over, the remaining one loads. Really neat!

I’m working on a PR to handle it with a configuration parameter.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prefetching multiple stacks stops prematurely - Google Groups
When stackPrefetch is enabled on an element, it adds all the stack's imageIds to the requestPoolManager. That will request images in parallel, up...
Read more >
Stop selection of element on background double-click
I have a problem that when the background is double-clicked the first element is selected. Check out this fiddle: https://jsfiddle.net/cb6fjr7n/1/.
Read more >
Stack Tools
A stack can include all images in a series or a subset of them. A stack can even include images from different series...
Read more >
cornerstone-tools - UNPKG
stackTools/stackPrefetch.js","webpack://cornerstoneTools/. ... updateImage(element);\n}\n\n/**\n * Stop the CornerstoneToolsTouchStart event from\n ...
Read more >
Design specification - SIMH
At IID, the I Box selects a microcode address to drive to the Microsequencer. ... In the third case, a different case target...
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