I found the culprit. dispdp() was applied to a variable which was already defined as the result of dispdp(). This seems to crash the function. Please find attached a minimum working example which demonstrates the problem.
I propose to somehow make the dispdp function issue some sort of warning instead of silently crashing. Perhaps a warning is issued yet I don't know where to find it.
I propose to somehow make the dispdp function issue some sort of warning instead of silently crashing. Perhaps a warning is issued yet I don't know where to find it.