webknossos icon indicating copy to clipboard operation
webknossos copied to clipboard

Potential Bug in DataApi.getDataForBoundingBox leading to the returned promise to be never resolved

Open MichaelBuessemeyer opened this issue 10 months ago • 0 comments

Context

During debugging the Skeleton SAM PR we noticed that in some cases the DataApi.getDataForBoundingBox API method does not return although all data for the requested bbox should be loaded already. This always included rather large bounding boxes: 1024x1024x??.

This bug needs further investigation into what is causing this.

Expected Behavior

The method should return a promise that will eventually be resolved in a reasonable amount of time. Or else an error indicating the bounding box is too large should be thrown.

Current Behavior

Sometimes the return promise is never resolved and waiting for some bucket to be loaded forever. There seemed to be a race condition here causing the bug to not be reproducible in a reliable way.

Steps to Reproduce the bug

  • [x] Cannot reproduce the bug anymore / needs deeper investigation.

Your Environment for bug

  • Browser name and version: Chrome (newest debian based (v123))
  • Operating System and version: e.g. Ubuntu 22.04
  • Version of WEBKNOSSOS (Release or Commit): noticed at the sam-skeleton-prediction branch

MichaelBuessemeyer avatar Apr 09 '24 14:04 MichaelBuessemeyer