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

[Perf] ResliceCursorWidget setImage(imgdataset); Setting data crashes above 120MB on iOS mobile devices #3161

Open
linhuanfeng opened this issue Oct 30, 2024 · 3 comments
Labels
module: widget Gaps and errors in interactive widgets type: performance ⚡️

Comments

@linhuanfeng
Copy link

High-level description

Setting data crashes above 120MB on iOS mobile devices

Steps to reproduce

Setting data crashes above 120MB on iOS mobile devices

Detailed Current Behavior

Setting data crashes above 120MB on iOS mobile devices

Environment

  • vtk.js version:"@kitware/vtk.js": "28.12.4",
  • Browsers: all
  • OS:ios
@finetjul finetjul added the module: widget Gaps and errors in interactive widgets label Oct 30, 2024
@finetjul
Copy link
Member

Is this the widget that crashes or the display ?
Have you tried to only allocate vtkImageReslice (as many times as there are views) and without reslice cursor widget ?
The reslice cursor widget does not consume memory proportionaly to the image size (rendering is performed outside the reslice cursor widget).

@linhuanfeng
Copy link
Author

        const reader = vtkITKImageReader.newInstance();
        reader.setFileName(fileName);
        await reader.parseAsArrayBuffer()

oom

@finetjul
Copy link
Member

You might want to try with a VTI image that can be read by VTK.js (vtkXMLImageDataReader) without ITK.wasm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: widget Gaps and errors in interactive widgets type: performance ⚡️
Projects
None yet
Development

No branches or pull requests

2 participants