# Linux: Processing exits when creating a video.Movie if using P2D or P3D

**URL:** <https://discourse.processing.org/t/linux-processing-exits-when-creating-a-video-movie-if-using-p2d-or-p3d/42627>\
**Category:** Libraries\
**Created:** [August 20, 2023, 9:39am UTC](https://discourse.processing.org/t/linux-processing-exits-when-creating-a-video-movie-if-using-p2d-or-p3d/42627 "2023-08-20T09:39:42Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![marton](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@marton](https://discourse.processing.org/u/marton)\
**Post date:** [August 21, 2023, 11:13am UTC](https://discourse.processing.org/t/linux-processing-exits-when-creating-a-video-movie-if-using-p2d-or-p3d/42627/6 "2023-08-21T11:13:43Z")

</div>

But in this case the library doesn’t seem to be handling the exception or dying, but rather somehow changing how the main processing process handles it. With both the default renderer and P2D the `catch (RuntimeException ex) { }` block is executed. But the behavior is different: for the default renderer, the window gets stuck with the exception message printed to the terminal, but with P2D, the window is closed “normally”, like calling `exit()`. I wrote some more details [on github](https://github.com/processing/processing-video/issues/220).

This is really a minor thing, but it still caused me a couple of hours of head-scratching.

---

_[View the full topic](https://discourse.processing.org/t/linux-processing-exits-when-creating-a-video-movie-if-using-p2d-or-p3d/42627)._
