I have a system where Python is embedded (C++ System) and that embedded python is further extended with the C++ application itself.
My problems started when I decided to include a new type definition in the Python extension. I get to define a new type using -> https://docs.python.org/2/extending/newtypes.html . But then the application crash (both in C++ and Python [Fatal Python error: UNREF invalid object]).
If I deactivate the lines that connect the python interpreter to the external PyDev debugger everything works just fine but if I activate those the crash appears.
Do you have any idea on this issue?