diff --git a/morpheus/_lib/src/objects/python_data_table.cpp b/morpheus/_lib/src/objects/python_data_table.cpp index 63310e8fc8..fb39ba2ab5 100644 --- a/morpheus/_lib/src/objects/python_data_table.cpp +++ b/morpheus/_lib/src/objects/python_data_table.cpp @@ -36,6 +36,8 @@ PyDataTable::~PyDataTable() { if (m_py_table) { + // Check to see if we need to grab the GIL. If we are being destroyed by the Python GC we actually don't need + // to and don't want to aquire the GIL using pybind11 because it will trigger a pybind11 internal error. if (PyGILState_Check() == 0) { pybind11::gil_scoped_acquire gil;