mattjj / pyhsmm

MIT License
546 stars 173 forks source link

Segmentation fault in hsmm-possiblechangepoints-meanfield.py #47

Open gxhrid opened 9 years ago

gxhrid commented 9 years ago

I run the HSMM meanfiled demo example, but a fault produces.

root@bd63:/home/exppy2/pyhsmm/examples# python hsmm-possiblechangepoints-meanfield.py Segmentation fault

This fault occurs in line 38 of script pyhsmm/examples/hsmm-possiblechangepoints-meanfield.py

truemodel.plot()

and in line 254 of pyhsmm/models.py

if draw: plt.draw()

mattjj commented 9 years ago

I'm not planning to use that code in the near future so I can't say when or if I might fix this. If you want to debug it, you may want to recompile the C++ code with debug symbols and run the code with gdb to find where the segfault is happening. However, since it appears to happen in normal Python code, it's probably the case that the mean field message passing code for the 'possible changepoints' models is writing out of bounds.