# SPECT castor-GATERootToCastor segmentation violation

**URL:** <https://castor-project.discourse.group/t/spect-castor-gateroottocastor-segmentation-violation/547>\
**Category:** Uncategorized\
**Created:** [June 6, 2023, 7:52am UTC](https://castor-project.discourse.group/t/spect-castor-gateroottocastor-segmentation-violation/547 "2023-06-06T07:52:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Han\_Zhao](https://yyz2.discourse-cdn.com/free1/user_avatar/castor-project.discourse.group/han_zhao/32/476_2.png) [@Han\_Zhao](https://castor-project.discourse.group/u/Han_Zhao)\
**Post date:** [June 6, 2023, 7:52am UTC](https://castor-project.discourse.group/t/spect-castor-gateroottocastor-segmentation-violation/547/1 "2023-06-06T07:52:32Z")

</div>

Dear CASToR users,  
I’m trying to convert the .root file from the GATE simulation to castor’s castor-GATERootToCastor program .Cdf file, for monolithic crystals I can easily achieve data conversion, but for pixelated crystals, there will always be errors, I want to know what method can be solved?  
 ![image](https://global.discourse-cdn.com/free1/uploads/castor_project/original/1X/4573d2e5a384a1e2fddda6452faa136dd1b70b3c.png)

---

<div class="post-metadata">

**Author:** ![savvidis](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@savvidis](https://castor-project.discourse.group/u/savvidis)\
**Post date:** [October 20, 2025, 12:37pm UTC](https://castor-project.discourse.group/t/spect-castor-gateroottocastor-segmentation-violation/547/2 "2025-10-20T12:37:06Z")

</div>

Hello my friend,

Have you manage to handle this issue? Because I face exactly the same issue when I use pixelated crystals and any help would be very important for me! Many thanks in advance!
