# HG changeset patch # User Chris Cannam # Date 1551191468 0 # Node ID a9e918adfff0a6db344dd0ea0dc13fff4396ac14 # Parent 35ea82e24988aeeb3c605f3b967a3261c880a4f4 Skip directly over anything with null metatype - can happen with plugins whose init methods are not conformant (but that otherwise load OK as code) diff -r 35ea82e24988 -r a9e918adfff0 PyPlugScanner.cpp --- a/PyPlugScanner.cpp Tue Feb 26 14:30:16 2019 +0000 +++ b/PyPlugScanner.cpp Tue Feb 26 14:31:08 2019 +0000 @@ -212,6 +212,15 @@ PyTypeObject *metatype = Py_TYPE(item); + if (!metatype) { + cerr << "ERROR: plugin " << classname + << " reports null metatype for Vampy name \"" + << name << "\" (incomplete due to load error?)" + << endl; + acceptable = false; + break; + } + if (!strcmp(name, "frame2RealTime")) { if (metatype != &PyCFunction_Type) { cerr << "ERROR: plugin " << classname