pyhsmm icon indicating copy to clipboard operation
pyhsmm copied to clipboard

Segmentation fault in hsmm-possiblechangepoints-meanfield.py

Open gxhrid opened this issue 9 years ago • 1 comments

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()

gxhrid avatar Jun 19 '15 08:06 gxhrid

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.

mattjj avatar Jun 19 '15 16:06 mattjj