From 9a0f77d2b870b167fbed3436444800f95aac4c3b Mon Sep 17 00:00:00 2001 From: Caleb Schilly Date: Mon, 11 Mar 2024 11:04:16 -0400 Subject: [PATCH] #16: fix segfault in python bindings; comment out failing asserts --- bindings/python/CMakeLists.txt | 7 ++++++- src/vt-tv/utility/json_reader.cc | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt index fcb366e1d6..8a3f1d4631 100644 --- a/bindings/python/CMakeLists.txt +++ b/bindings/python/CMakeLists.txt @@ -27,4 +27,9 @@ nanobind_build_library(nanobind SHARED) nanobind_add_module(vttv ${PYTHON_BINDING_SRCS} tv.cc) # .. Link it to necessary libraries -target_link_libraries(vttv PUBLIC ${VT_TV_LIBRARY_NS} ${JSON_LIBRARY} ${FMT_LIBRARY}) \ No newline at end of file +target_link_libraries(vttv PUBLIC ${VT_TV_LIBRARY_NS} ${JSON_LIBRARY} ${FMT_LIBRARY}) + +vtk_module_autoinit( + TARGETS vttv + MODULES ${VTK_LIBRARIES} +) diff --git a/src/vt-tv/utility/json_reader.cc b/src/vt-tv/utility/json_reader.cc index 1971a84a27..5c1eaab9a2 100644 --- a/src/vt-tv/utility/json_reader.cc +++ b/src/vt-tv/utility/json_reader.cc @@ -223,8 +223,8 @@ std::unique_ptr JSONReader::parseFile() { ElementIDType to_id = to["id"]; assert(bytes.is_number()); - assert(from.is_number()); - assert(to.is_number()); + // assert(from.is_number()); + // assert(to.is_number()); // fmt::print(" From: {}, to: {}\n", from_id, to_id);