Description of problem
I’m using Python v. 3.7.4, Brian2 v. 2.3.
Brian2 crashed part-way through a simulation, and at this point, I’m just looking for advice on how to narrow down the problem before you waste too much time on it. This appears to be a memory allocation problem in SpikeMonitor. I’ve pasted the error trace into this post, but I don’t know how to upload files (e.g. brian_debug_83cawzkw.log and the stdout/stderror outputs) in this new forum (the old one had a fairly obvious mechanism to do that).
Minimal code to reproduce problem
Don’t have that yet.
What you have aready tried
Since the problem was in SpikeMonitor, I’m assuming that eliminating those objects will solve, or at least change, the problem in some illuminating way. But I can’t really do that, since the point of the simulation is to see which neurons generated spikes.
Expected output (if relevant)
N/A
Actual output (if relevant)
brian_stdout_mz6c14d_.log and stdout/stderr files ready to upload - how do I do so?
Full traceback of error (if relevant)
ERROR Brian 2 encountered an unexpected error. If you think this is bug in Brian 2, please report this issue either to the mailing list at http://groups.google.com/group/brian-development/, or to the issue tracker at https://github.com/brian-team/brian2/issues. Please include this file with debug information in your report: C:\Users\Ajit\AppData\Local\Temp\brian_debug_83cawzkw.log You can also include a copy of the redirected std stream outputs, available at C:\Users\Ajit\AppData\Local\Temp\brian_stdout_mz6c14d_.log and C:\Users\Ajit\AppData\Local\Temp\brian_stderr_6qgambxr.log Thanks! [brian2]
Traceback (most recent call last):
File “”, line 1, in
File “D:\phd\research\model\exp1.py”, line 22, in run
lpre=go1(1,10,0,20) # 20 runs, no training
File “D:\phd\research\model\exp1.py”, line 50, in go1
l.run(end_time+100)
File “D:\phd\research\model\Layers.py”, line 323, in run
net.run(timems,report=‘stdout’,report_period=15second)
File “C:\Users\Ajit\Anaconda3\lib\site-packages\brian2\core\base.py”, line 280, in device_override_decorated_function
return func(*args, **kwds)
File “C:\Users\Ajit\Anaconda3\lib\site-packages\brian2\units\fundamentalunits.py”, line 2392, in new_f
result = f(*args, **kwds)
File “C:\Users\Ajit\Anaconda3\lib\site-packages\brian2\core\network.py”, line 1080, in run
obj.run()
File “C:\Users\Ajit\Anaconda3\lib\site-packages\brian2\core\base.py”, line 183, in run
codeobj()
File “C:\Users\Ajit\Anaconda3\lib\site-packages\brian2\codegen\codeobject.py”, line 102, in call
return self.run()
File “C:\Users\Ajit\Anaconda3\lib\site-packages\brian2\codegen\runtime\cython_rt\cython_rt.py”, line 153, in run
return self.compiled_code.main(self.namespace)
File “_cython_magic_6c48d5b404d275541c7ae658bad5aae2.pyx”, line 136, in _cython_magic_6c48d5b404d275541c7ae658bad5aae2.main
File “C:\Users\Ajit\Anaconda3\lib\site-packages\brian2\monitors\spikemonitor.py”, line 173, in resize
self.variables[variable].resize(new_size)
File “C:\Users\Ajit\Anaconda3\lib\site-packages\brian2\core\variables.py”, line 595, in resize
self.device.resize(self, new_size)
File “C:\Users\Ajit\Anaconda3\lib\site-packages\brian2\devices\device.py”, line 482, in resize
self.arrays[var].resize(new_size)
File “C:\Users\Ajit\Anaconda3\lib\site-packages\brian2\memory\dynamicarray.py”, line 210, in resize
newdata = zeros(newdatashape, dtype=self.dtype)
ValueError: Maximum allowed dimension exceeded