Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] When loading the imageId, I encountered the error: RangeError: Array buffer allocation failed #1777

Open
moneyfirst-yh opened this issue Jan 24, 2025 · 4 comments

Comments

@moneyfirst-yh
Copy link

Describe the Bug

When it reaches this step, an error occurs: Uncaught (in promise) RangeError: Array buffer allocation failed

Image

Steps to Reproduce

I'm reading local files and passing the obtained imageIds to createAndCacheVolume, which results in an error:RangeError: Array buffer allocation failed

The current behavior

I'm reading local files and passing the obtained imageIds to createAndCacheVolume, which results in an error:RangeError: Array buffer allocation failed

The expected behavior

I hope to successfully load the CT images. Here's a suggested approach with optimizations:

OS

window10

Node version

16.20.2

Browser

chrome

Copy link
Member

sedghi commented Jan 24, 2025

This is not enough information, can you provide reproducible steps. Sample anonymized data etc

@moneyfirst-yh
Copy link
Author

This is not enough information, can you provide reproducible steps. Sample anonymized data etc这是不够的信息,您可以提供可重复的步骤。采样匿名数据等

Image
When the code execution reaches this step:

const volume = await volumeLoader.createAndCacheVolume(this.volumeId, {
imageIds: this.urls,
});
the error is reported.

@moneyfirst-yh
Copy link
Author

Is it because the files being loaded at once are too large? Are there any methods to resolve or optimize this issue? Thank you.

@sedghi
Copy link
Member

sedghi commented Feb 5, 2025

if you can generate a mini repo with code and anonymized data we can certainly look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants