fzenke / auryn

Auryn: A fast simulator for spiking neural networks with synaptic plasticity
https://fzenke.net/auryn/
GNU General Public License v3.0
98 stars 42 forks source link

Segfault when using WeightMonitor with load_network_state #18

Closed fzenke closed 9 years ago

fzenke commented 9 years ago

In some cases when synaptic weights are re-allocated after a load_network_state() operation, the pointers to synaptic weights stored in the list of synapses to monitor in WeightMonitor might be out of date. The network simulation will most likely segfault right after the onset of the simulation before completing the first time-step. A simple fix would be to store the relative offset of weights inside the data array instead of a pointer.