Skip to content

SlideViewer throws TrackingIdentifier error due to upstream dcmjs bug #292

@nr59684

Description

@nr59684

🐛 Bug Report

Affected Repository

This issue affects slim-viewer when using the latest dcmjs release.

Reproduction Steps

  1. Draw one or more ROIs in the Slim viewer (each gets a generated roi.uid).
  2. Click on Save ROI in SlideViewer which calls handleReportGeneration()
  3. Observe console error:
Image
Uncaught Error: Option 'trackingIdentifier' must include a human readable tracking identifier and a tracking unique identifier.

This is caused by a bug in the dcmjs module (see dcmjs-org/dcmjs#434), where TrackingIdentifier’s constructor calls super(options) and erroneously pushes the raw options object into the internal content sequence.

Impact

  • All ROI measurement exports from slim-viewer will fail.
  • Automated report‐generation workflows break until the upstream fix is released.

Workarounds

  1. Wait for upstream merge
    The fix has been submitted in dcmjs-org/dcmjs#434 and is pending review & merge. Once released in a patch for dcmjs, updating your dependency will resolve the error automatically.

  2. Use our temporary fix branch
    You can point your project at the following branch to unblock development immediately:

    npm install git+https://github.com/nr59684/dcmjs/tree/fix/trackingidentifier-super-call
    

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions