Is there an example on how to work with generalized mixture models?

could be a memory problem - could you paste the crash message from terminal?
Also, try:

with binomial:
    trace = pm.sample(1000, chains=2, cores=1)