# (moved to VTK discourse) Fix VTK forcibly aborting application instead of throwing error

**URL:** https://discourse.kitware.com/t/moved-to-vtk-discourse-fix-vtk-forcibly-aborting-application-instead-of-throwing-error/1284
**Category:** Uncategorized
**Created:** [May 6, 2024, 3:34pm UTC](https://discourse.kitware.com/t/moved-to-vtk-discourse-fix-vtk-forcibly-aborting-application-instead-of-throwing-error/1284 "2024-05-06T15:34:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![2xB](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/2/a3d4f5/32.png) [@2xB](https://discourse.kitware.com/u/2xB)
#### Post date: [May 6, 2024, 3:34pm UTC](https://discourse.kitware.com/t/moved-to-vtk-discourse-fix-vtk-forcibly-aborting-application-instead-of-throwing-error/1284/1 "2024-05-06T15:34:02Z")

</div>

VTK currently forcibly aborts an application if no screen is available. Having a library like VTK call `std::abort` is significantly worse than having it throw errors since for `std::abort`, it is not possible to catch the error and show any meaningful information to users - in this case e.g. to users without a screen on HPC systems. Some applications are even commonly run as part of batch scripts and use VTK just for visualization in one step that could be skipped if VTK wouldn’t forcibly abort the software.

The fix for it throwing an error instead was suggested in the merge request [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/10500](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/10500) and discussed in [https://gitlab.kitware.com/vtk/vtk/-/issues/19075](https://gitlab.kitware.com/vtk/vtk/-/issues/19075) with Sankhesh Jhaveri, @cory.quammen and Mathieu Westphal.

As requested in the above merge request, I am hereby opening a Discourse discussion regarding it.

---

<div class="post-metadata">

### Author: ![Mathieu\_Westphal](https://discourse.kitware.com/user_avatar/discourse.kitware.com/mathieu_westphal/32/927_2.png) [@Mathieu\_Westphal](https://discourse.kitware.com/u/Mathieu_Westphal)
#### Post date: [May 6, 2024, 3:45pm UTC](https://discourse.kitware.com/t/moved-to-vtk-discourse-fix-vtk-forcibly-aborting-application-instead-of-throwing-error/1284/2 "2024-05-06T15:45:03Z")

</div>

more adapted to post this on [https://discourse.vtk.org/](https://discourse.vtk.org/) I think.

---

<div class="post-metadata">

### Author: ![2xB](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/2/a3d4f5/32.png) [@2xB](https://discourse.kitware.com/u/2xB)
#### Post date: [May 6, 2024, 3:53pm UTC](https://discourse.kitware.com/t/moved-to-vtk-discourse-fix-vtk-forcibly-aborting-application-instead-of-throwing-error/1284/3 "2024-05-06T15:53:34Z")

</div>

Sure, it is now here: [Fix VTK forcibly aborting application instead of throwing error - Development - VTK](https://discourse.vtk.org/t/fix-vtk-forcibly-aborting-application-instead-of-throwing-error/13849)

Since I can only tag two people as a new person on the VTK Discourse and you already know about the thread from here, I didn’t tag you but the others.
