# kernel crash or died

**URL:** https://discourse.itk.org/t/kernel-crash-or-died/6589
**Category:** Uncategorized
**Created:** [April 20, 2024, 8:18am UTC](https://discourse.itk.org/t/kernel-crash-or-died/6589 "2024-04-20T08:18:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Noorollah\_Khajvand](https://discourse.itk.org/user_avatar/discourse.itk.org/noorollah_khajvand/32/4008_2.png) [@Noorollah\_Khajvand](https://discourse.itk.org/u/Noorollah_Khajvand)
#### Post date: [April 20, 2024, 8:18am UTC](https://discourse.itk.org/t/kernel-crash-or-died/6589/1 "2024-04-20T08:18:21Z")

</div>

I installed itk-elastix and after I imported it and read Dicom images, it worked correctly. But, when I’m using itk.ParameterObject.New() or any other function the kernel crashed or died without any errors. Also, it happens in Colab.  
pip install itk-elastix  
import itk  
import numpy as np  
import matplotlib.pyplot as plt  
fixed\_image = itk.imread(fixed\_image\_path, itk.F)  
moving\_image = itk.imread(moving\_image\_path, itk.F)  
parameter\_object = itk.ParameterObject.New()

 ![itk_run](https://discourse.itk.org/uploads/default/original/2X/b/b63cfb76c7e8a7a22031c77ab400189430b878e4.png)  
 ![itk_crashed](https://discourse.itk.org/uploads/default/original/2X/0/0770dac55ee69c560d5f7e34b4d51919b4c076cb.png)

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [April 22, 2024, 1:51pm UTC](https://discourse.itk.org/t/kernel-crash-or-died/6589/2 "2024-04-22T13:51:01Z")

</div>

itk-elastix 0.19.2 should fix the crash. Take a look here:

> <https://github.com/InsightSoftwareConsortium/ITKElastix/issues/265>
>
> Similar to #258, it crashes silently on my computer. This is enough to trigger i…t:
> \`\`\`py
> print("Pre-loading ITK DLLs")
> \_ = itk.ElastixRegistrationMethod
> \`\`\`
> I tried these versions:
> \- itk-elastix-0.17.1 (itk-5.3.0)
> \- itk-elastix-0.18.0 (itk-5.4rc1)
> \- itk-elastix-0.19.0 (itk-5.4rc1)
> \- itk-elastix-0.19.1 (itk-5.4rc2) \*\*crashes\*\*
> 
> Only the latest version crashes for me. This is Python 3.9.13 on Windows 11.
