diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-01-29 00:28:32 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-01-29 00:28:32 +0300 |
commit | 9b0c2efeed6cfff4502328c41cac0a8424b2bd77 (patch) | |
tree | 888e5a50d66800eca5962807bdb148bee3ca8edb /source | |
parent | 87eaa637c5866edbb8a017eb9f67018b032fb3a8 (diff) |
Handle OpenEXR exception and print it, for writeTile. It's sometimes
crashing there now with FSA, if it crashes again this should give
more info.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/imbuf/intern/openexr/openexr_api.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp index 3cbada812b9..b124cb2f80c 100644 --- a/source/blender/imbuf/intern/openexr/openexr_api.cpp +++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp @@ -547,9 +547,14 @@ void IMB_exrtile_write_channels(void *handle, int partx, int party) } data->tofile->setFrameBuffer (frameBuffer); - // printf("write tile %d %d\n", partx/data->tilex, party/data->tiley); - data->tofile->writeTile (partx/data->tilex, party/data->tiley); - + + try { + // printf("write tile %d %d\n", partx/data->tilex, party/data->tiley); + data->tofile->writeTile (partx/data->tilex, party/data->tiley); + } + catch (const std::exception &exc) { + std::cerr << "OpenEXR-writeTile: ERROR: " << exc.what() << std::endl; + } } void IMB_exr_write_channels(void *handle) |