Skip to content

refactor(itk-wasm): update version to 1.0.0-b.130#385

Merged
floryst merged 2 commits intoKitware:mainfrom
PaulHax:up-wasm
Aug 25, 2023
Merged

refactor(itk-wasm): update version to 1.0.0-b.130#385
floryst merged 2 commits intoKitware:mainfrom
PaulHax:up-wasm

Conversation

@PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented Aug 7, 2023

Brings DICOM loading .wasms that can grow memeory to 4GB. So can load larger DICOM series.

TODO

  • Fix readImageDicomFileSeries
  • Fix emscripten stack memory leak which was worked around via patch-package Not seeing a heap snapshot change with 1000 iterations of readDicomTags

@netlify
Copy link

netlify bot commented Aug 7, 2023

Deploy Preview for volview-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit dfb4cfc
🔍 Latest deploy log https://app.netlify.com/sites/volview-dev/deploys/64e8bcd3c37f8a000846a52c
😎 Deploy Preview https://deploy-preview-385--volview-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines +261 to +265
const inputImages = seriesFiles.map((file) => sanitizeFile(file));
const result = await readImageDicomFileSeries(null, {
inputImages,
singleSortedSeries: false,
});
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jadh4v Using the @itk-wasm/dicom package here. This call results in an error. When I copy in a debug build of the .wasm, message is:
CLI::ArgumentMismatch: --input-images: 1 required INPUT_BINARY_FILE:FILE missing

Any suggestions?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me investigate it a little.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressing in a PR here: InsightSoftwareConsortium/ITK-Wasm#886

@PaulHax
Copy link
Collaborator Author

PaulHax commented Aug 7, 2023

@floryst The patch introduced in #281 to fix a memory leak depended on stackSave and stackRestore. These functions are no longer built-in with the prebuild .wasm files. What do you think I should do?

@floryst
Copy link
Contributor

floryst commented Aug 8, 2023

Check to see if repeated calls to readDICOMTags increases memory usage. If not, then we are good to go.

@@ -0,0 +1,13 @@
declare module '@itk-wasm/dicom' {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use the packages's typescript declarations?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@itk-wasm/dicom package.json's types property points to a missing file.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PaulHax PaulHax changed the title refactor(itk-wasm): update version to 1.0.1-b.121 refactor(itk-wasm): update version to 1.0.0-b.121 Aug 9, 2023
@PaulHax PaulHax marked this pull request as ready for review August 15, 2023 19:29
@PaulHax PaulHax changed the title refactor(itk-wasm): update version to 1.0.0-b.121 refactor(itk-wasm): update version to 1.0.0-b.125 Aug 15, 2023
@floryst
Copy link
Contributor

floryst commented Aug 22, 2023

LGTM once the package.json conflicts are resolved.

@PaulHax PaulHax changed the title refactor(itk-wasm): update version to 1.0.0-b.125 refactor(itk-wasm): update version to 1.0.0-b.127 Aug 22, 2023
@PaulHax
Copy link
Collaborator Author

PaulHax commented Aug 22, 2023

Conflicts resolved.

Also need to publish and pull in new @itk-wasm/dicom package to get the 4GB memory support. Could do that in another PR.

@PaulHax PaulHax changed the title refactor(itk-wasm): update version to 1.0.0-b.127 refactor(itk-wasm): update version to 1.0.0-b.130 Aug 25, 2023
@PaulHax
Copy link
Collaborator Author

PaulHax commented Aug 25, 2023

@floryst This is good to go! New 4GB itk-wasm/dicom package incoperated.

@floryst floryst merged commit c0dfc00 into Kitware:main Aug 25, 2023
@PaulHax PaulHax deleted the up-wasm branch August 25, 2023 15:01
PaulHax pushed a commit to PaulHax/VolView that referenced this pull request Apr 24, 2025
refactor(itk-wasm): update version to 1.0.0-b.130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants