View in #cornerstone3d on Slack
@Leo_Reubelt: @Bill_Wallace - i am looking at the large volume demo. it looks like you did that. https://github.com/cornerstonejs/cornerstone3D/blob/4801e79796b659e5baa2806bf882ed2b7bb127b0/packages/core/examples/volumeLarge/index.ts. and i have a series that i am trying to load that is less than 4 gb. but i am still getting 'Array buffer allocation failed.'
can you tell me what, in that demo, i need to do to access that 4 gb limit? i have tried cache.setMaxCacheSize(LargeCacheSize);
<cornerstone3D/packages/core/examples/volumeLarge/index.ts at 4801e79796b659e5baa2806bf882ed2b7bb127b0 · cornerstonejs/cornerstone3D · GitHub | index.ts>
Actually, the largest series that I can load into a volume is 1gb. Why would that be the limit instead of 2?
@Bill_Wallace: There are several limits which are set in the current CS3D version, as well as hardward/browser limits.
Are you trying to load it as a volume or as individual images?
@Leo_Reubelt: as a volume.
@Bill_Wallace: Also, are you using norm16 data, and how are you computing the maximum sizes? There are currently some hard coded limits in the cache class - try over-riding those to something big, like 64*ONE_GB so that you can then set higher limits than those actually allowed by the underlying system until you get a failure in the allocation as opposed to a not cacheable - although I think the array buffer allocation means it is already an issue with actually allocating the data. Find the line it is failing on, and see what size it tries to allocate.