# Error report：The program crashed

**URL:** <https://discourse.slicer.org/t/error-report-the-program-crashed/23624>\
**Category:** Development\
**Created:** [May 29, 2022, 9:08am UTC](https://discourse.slicer.org/t/error-report-the-program-crashed/23624 "2022-05-29T09:08:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![janus\_zhu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/janus_zhu/32/15243_2.png) [@janus\_zhu](https://discourse.slicer.org/u/janus_zhu)\
**Post date:** [May 29, 2022, 9:08am UTC](https://discourse.slicer.org/t/error-report-the-program-crashed/23624/1 "2022-05-29T09:08:07Z")

</div>

Operation process:

Step 1:

Import CT images,

Step 2:

Use the measuring tool to make 3-4 new measurements.

Step 3:

Open the crosshair(interaction), move, and the program is stuck.

run envirement：  
windows10 , slicer lastest version.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [May 29, 2022, 1:44pm UTC](https://discourse.slicer.org/t/error-report-the-program-crashed/23624/2 "2022-05-29T13:44:52Z")

</div>

Thanks for the report, but we’d need more details in order to help. Does this happen only with a particular dataset? Can you replicate the issue using public sample data?

See this section for suggestions about how to get help:

[https://slicer.readthedocs.io/en/latest/user\_guide/get\_help.html#i-want-to-report-a-problem](https://slicer.readthedocs.io/en/latest/user_guide/get_help.html#i-want-to-report-a-problem)

---

<div class="post-metadata">

**Author:** ![janus\_zhu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/janus_zhu/32/15243_2.png) [@janus\_zhu](https://discourse.slicer.org/u/janus_zhu)\
**Post date:** [May 29, 2022, 1:48pm UTC](https://discourse.slicer.org/t/error-report-the-program-crashed/23624/3 "2022-05-29T13:48:54Z")

</div>

Errors are easy to find:

1. Open any CT

2. Open the measuring ruler, and then measure several more, such as 1-2

3. Open interaction

4. Drag line

5. Stuck

I have commit url:

> <https://github.com/Slicer/Slicer/issues/6400>
>
> Errors are easy to find:
> 
> 1. Open any CT
> 
> 2. Open the measuring ruler, and t…hen measure several more, such as 1-2
> 
> 3. Open interaction
> 
> 4. Drag line (cross line)
> 
> 5. Stuck
> \--------------------------
> System:win10, slicer-2022-05-28
> \-------------------------------------------------------
> Snap images:
>  
> !\[image\](https://user-images.githubusercontent.com/105405296/170873991-ecf94dce-aa5e-4eb3-96f1-c8ee08c75411.png)
> 
> 
> !\[image\](https://user-images.githubusercontent.com/105405296/170873863-c5e58593-b83d-4432-b666-9c36e7968b5b.png)

---

<div class="post-metadata">

**Author:** ![janus\_zhu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/janus_zhu/32/15243_2.png) [@janus\_zhu](https://discourse.slicer.org/u/janus_zhu)\
**Post date:** [May 30, 2022, 2:08am UTC](https://discourse.slicer.org/t/error-report-the-program-crashed/23624/4 "2022-05-30T02:08:13Z")

</div>

thanks!

> <https://github.com/Slicer/Slicer/commit/197a96b2c7dc97a873e904e7f52c17fc572db18c>
>
> When a view contained markups and interactive slice intersections, the applicati…on could crash while moving and dragging markup control points.
> 
> The problem was that when a widget was forced to release the focus the \`widget-\>Leave(eventData)\` method was called with \`nullptr\`, but the \`Leave\`
> method actually required valid \`eventData\`.
> 
> Fixed the issue by passing valid \`eventData\` to \`SetHasFocus\` method, which then can call \`Leave\` with that \`eventData\`.
> 
> fixes #6400
