Skip to content

Commit

Permalink
T159183991: Error: EXC_SOFTWARE / SIGABRT at IGPyTorchFramework:-[MPS…
Browse files Browse the repository at this point in the history
…ImageWrapperTrampoline endSynchronization:] (MPSImageWrapper.mm<line_num>):cpp_exception_clas (pytorch#122132)

Summary: Prevent crash by not throwing a C++ exception.

Test Plan: spongebobsandcastle

Reviewed By: SS-JIA

Differential Revision: D55036050

Pull Request resolved: pytorch#122132
Approved by: https://github.com/SS-JIA
  • Loading branch information
dinhvh authored and pytorchmergebot committed Mar 19, 2024
1 parent c0b2e56 commit 7718a1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aten/src/ATen/native/metal/mpscnn/MPSImageWrapper.mm
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ - (void)endSynchronization:(NSError*)error {
if (_imageWrapper) {
_imageWrapper->release();
}
// throw an exception with error details
METAL_THROW_IF_ERROR(error, "Command buffer execution failed!");
// T159183991: ignore error. We prefer to not crash the app.
}
}

Expand Down

0 comments on commit 7718a1c

Please sign in to comment.