Skip to content

Unable to use C++ API when Python support activated #109

Description

@dzhoshkun

This has come up during PR #105 When running the n-frame saver application:

C:\Users\ds18\ws\_b\gift-grab\Release>..\tests\epiphan\dvi2pcieduo\Release\save_n_frames.exe
Fatal Python error: PyEval_SaveThread: NULL tstate

The same application seems to work when Python support is not activated.

This is despite the fact that the application is pure C++. Possibly this is due to the Python-related routines being called within the publisher-subscriber mechanism regardless of the nature of the application (see the BUILD_PYTHON and/or USE_NUMPY macros within the C++ code).

GIFT-Grab was built with:

cmake -A x64 -D CMAKE_BUILD_TYPE=Release -D ZLIB_ROOT="%zlib_root%" -D USE_EPIPHAN_DVI2PCIE_DUO=ON -D ENABLE_NONFREE=ON -D USE_EPIPHANSDK=ON -D PYTHON_INCLUDE_DIRS="%python_include_dirs%" -D PYTHON_LIBRARY="%python_library%" -D BOOST_INCLUDEDIR="%boost_includedir%" -D BOOST_LIBRARYDIR="%boost_librarydir%" -D BUILD_PYTHON=ON -D USE_NUMPY=ON -D BUILD_TESTS=ON ../../GIFT-Grab/src
cmake --build . --config Release

Version used is fb6caf7 of branch 105-move-test-to-test-config

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions