# HG changeset patch # User Chris Cannam # Date 1551192135 0 # Node ID c85d26cb9dabf8575fd66a6603b16ee2bb730eee # Parent a9e918adfff0a6db344dd0ea0dc13fff4396ac14 Add debug print of Vampy release version; update CHANGELOG diff -r a9e918adfff0 -r c85d26cb9dab CHANGELOG --- a/CHANGELOG Tue Feb 26 14:31:08 2019 +0000 +++ b/CHANGELOG Tue Feb 26 14:42:15 2019 +0000 @@ -1,3 +1,10 @@ + +UPDATES IN VERSION 2.3: + + * Fix crash when Vampy is loaded and unloaded without querying + any plugins + * Fix a further possible crash with non-loadable plugin modules + UPDATES IN VERSION 2.2: diff -r a9e918adfff0 -r c85d26cb9dab vampy-main.cpp --- a/vampy-main.cpp Tue Feb 26 14:31:08 2019 +0000 +++ b/vampy-main.cpp Tue Feb 26 14:42:15 2019 +0000 @@ -58,6 +58,8 @@ #include #endif +#include "version.h" + using std::cerr; using std::endl; using std::string; @@ -199,9 +201,11 @@ return; /*HAVE_NUMPY*/ -#endif +#else + DSTREAM << "Numpy support deselected at compile time, not attempting to initialise it" << endl; +#endif - numpyInstalled = false; + numpyInstalled = false; arrayApiInitialised = true; return; } @@ -300,8 +304,10 @@ { DSTREAM << "# vampGetPluginDescriptor(" << version << "," << index << ")" << endl; - if (version < 1) return 0; + if (version < 1) return 0; + DSTREAM << "# Vampy version: " << VAMPY_VERSION << endl; + int isPythonInitialized = Py_IsInitialized(); DSTREAM << "# isPythonInitialized: " << isPythonInitialized << endl; DSTREAM << "# haveScannedPlugins: " << haveScannedPlugins << endl; diff -r a9e918adfff0 -r c85d26cb9dab version.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/version.h Tue Feb 26 14:42:15 2019 +0000 @@ -0,0 +1,1 @@ +#define VAMPY_VERSION "2.3"