# tempDICOMDatabase crashes slicer

**URL:** <https://discourse.slicer.org/t/tempdicomdatabase-crashes-slicer/25515>\
**Category:** Development\
**Created:** [October 3, 2022, 12:21am UTC](https://discourse.slicer.org/t/tempdicomdatabase-crashes-slicer/25515 "2022-10-03T00:21:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![talmazov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/talmazov/32/3966_2.png) [@talmazov](https://discourse.slicer.org/u/talmazov)\
**Post date:** [October 4, 2022, 10:50pm UTC](https://discourse.slicer.org/t/tempdicomdatabase-crashes-slicer/25515/2 "2022-10-04T22:50:01Z")

</div>

I’ve been messing around trying to debug and I was able to narrow it down to this.  
Using

```auto
DICOMUtils.importDicom(dicomDataDir, slicer.dicomDatabase)

```

on startup work just fine, but the moment I call

```auto
DICOMUtils.loadPatientByUID(slicer.dicomDatabase.patients()[0])

```

slicer crashes.  
I will try to see if using

```auto
scalarVolumeReader = DICOMScalarVolumePlugin.DICOMScalarVolumePluginClass()

```

method from [Loading DICOM files with python script for Mac - #4 by epearlstone](https://discourse.slicer.org/t/loading-dicom-files-with-python-script-for-mac/12855/4)  
would provide a viable solution

~Georgi

---

_[View the full topic](https://discourse.slicer.org/t/tempdicomdatabase-crashes-slicer/25515)._
