# Image stitching error

**URL:** <https://forum.opencv.org/t/image-stitching-error/1040>\
**Category:** Uncategorized\
**Tags:** stitching\
**Created:** [January 21, 2021, 9:48pm UTC](https://forum.opencv.org/t/image-stitching-error/1040 "2021-01-21T21:48:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klaas](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Klaas](https://forum.opencv.org/u/Klaas)\
**Post date:** [January 21, 2021, 9:48pm UTC](https://forum.opencv.org/t/image-stitching-error/1040/1 "2021-01-21T21:48:12Z")

</div>

When using the image stitcher I get an exception always after 8 stitches:

u-\>refcount == 0 && "UMat deallocation error: some derived Mat is still alive

Anyone any ideas how to fix this?
