# Paraview crashes after closing python gui

**URL:** https://discourse.paraview.org/t/paraview-crashes-after-closing-python-gui/8403
**Category:** ParaView Support
**Tags:** python
**Created:** [November 15, 2021, 12:36am UTC](https://discourse.paraview.org/t/paraview-crashes-after-closing-python-gui/8403 "2021-11-15T00:36:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![anthomas](https://discourse.paraview.org/user_avatar/discourse.paraview.org/anthomas/32/7342_2.png) [@anthomas](https://discourse.paraview.org/u/anthomas)
#### Post date: [November 15, 2021, 12:36am UTC](https://discourse.paraview.org/t/paraview-crashes-after-closing-python-gui/8403/1 "2021-11-15T00:36:06Z")

</div>

I am running a python script with the superbuild python, this script opens a tkinter gui. After closing the window, paraview crashes. I have tried running the vtkPythonInterpreter ‘runSimpleString’ function normally and in a seperate thread using qtConcurrent, both produce the same result. Any suggestions?

---

<div class="post-metadata">

### Author: ![anthomas](https://discourse.paraview.org/user_avatar/discourse.paraview.org/anthomas/32/7342_2.png) [@anthomas](https://discourse.paraview.org/u/anthomas)
#### Post date: [November 15, 2021, 3:30am UTC](https://discourse.paraview.org/t/paraview-crashes-after-closing-python-gui/8403/2 "2021-11-15T03:30:33Z")

</div>

I am using superbuild v5.9.1 on windows, with a custom version of python. I have found that executing any python script will crash paraview after the script is completed.
