DICOMAnonymizer Failure

104 views
Skip to first unread message

Nick Bevins

unread,
Mar 26, 2019, 9:05:57 AM3/26/19
to RSNA MIRC CTP/TFS User Group
Greetings-

I'm running into an issue with a single DICOM study that can't get through the anonymization step. Here is the section of the log that I think is relevant:

08:41:15 INFO  [DICOMAnonymizer] Unknown exception from GBM\roots\DicomImportServiceGBM\active\QF-5125908384406722313.dcm
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(Unknown Source)
	at org.rsna.ctp.stdstages.anonymizer.dicom.FnCall.<init>(FnCall.java:75)
	at org.rsna.ctp.stdstages.anonymizer.dicom.DICOMAnonymizer.makeReplacement(DICOMAnonymizer.java:640)
	at org.rsna.ctp.stdstages.anonymizer.dicom.DICOMAnonymizer.processElements(DICOMAnonymizer.java:465)
	at org.rsna.ctp.stdstages.anonymizer.dicom.DICOMAnonymizer.anonymize(DICOMAnonymizer.java:167)
	at org.rsna.ctp.stdstages.DicomAnonymizer.process(DicomAnonymizer.java:154)
	at org.rsna.ctp.pipeline.Pipeline.processObjects(Pipeline.java:220)
	at org.rsna.ctp.pipeline.Pipeline.run(Pipeline.java:181)

Any ideas?

Thanks
Nick

John Perry

unread,
Mar 26, 2019, 10:24:53 AM3/26/19
to rsnas-ctpmir...@googlegroups.com
 
Nick:
 
This looks like a bug.
 
The failure is occurring when the anonymizer's script parser tries to obtain the name of a function to call in one of the element scripts. Unfortunately, the stack trace doesn't say which element. The parser is expecting a delimiter to terminate the name, and it isn't finding it.

Does this script really run correctly for other images?
 
Can you send me the image and your anonymizer script?
--
You received this message because you are subscribed to the Google Groups "RSNA MIRC CTP/TFS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsnas-ctpmirc-user...@googlegroups.com.
To post to this group, send email to rsnas-ctpmir...@googlegroups.com.
Visit this group at https://groups.google.com/group/rsnas-ctpmirc-user-group.
For more options, visit https://groups.google.com/d/optout.

karine....@sfr.fr

unread,
Jun 3, 2022, 8:26:36 AM6/3/22
to RSNA MIRC CTP/TFS User Group
Dear John,

Were you able to identify the issue documented in this conversation?

We are having the same problem on some PT series:

09:15:12 INFO [DICOMAnonymizer] Unknown exception from /data/CTP/work/IAforHEALTH/roots/DirectoryImportService/active/QF-7532126929558508646.dcm

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1967)

at org.rsna.ctp.stdstages.anonymizer.dicom.FnCall.<init>(FnCall.java:75)
at org.rsna.ctp.stdstages.anonymizer.dicom.DICOMAnonymizer.makeReplacement(DICOMAnonymizer.java:728)
at org.rsna.ctp.stdstages.anonymizer.dicom.DICOMAnonymizer.processElements(DICOMAnonymizer.java:558)
at org.rsna.ctp.stdstages.anonymizer.dicom.DICOMAnonymizer.processfn(DICOMAnonymizer.java:790)
at org.rsna.ctp.stdstages.anonymizer.dicom.DICOMAnonymizer.makeReplacement(DICOMAnonymizer.java:760)
at org.rsna.ctp.stdstages.anonymizer.dicom.DICOMAnonymizer.processElements(DICOMAnonymizer.java:558)
at org.rsna.ctp.stdstages.anonymizer.dicom.DICOMAnonymizer.anonymize(DICOMAnonymizer.java:168)
at org.rsna.ctp.stdstages.DicomAnonymizer.process(DicomAnonymizer.java:154)
at org.rsna.ctp.pipeline.Pipeline.processObjects(Pipeline.java:242)
at org.rsna.ctp.pipeline.Pipeline.run(Pipeline.java:198)

The version we are running is Build 2021-10-14.

Thank you in advance!
Best regards,
Karine

Reply all
Reply to author
Forward
0 new messages