VecStim() errors

Anything that doesn't fit elsewhere.
Post Reply

VecStim() errors

Post by rllin » Tue Jun 26, 2012 8:16 pm

I am trying to use Vecstim(). I have read the other recent thread on this.

I get a not very enlightening error report which I think is complaining about my use of VecStim() as sometimes the error is:

Code: Select all

net_send td-t = -5.20789e+214 SelfEvent target=VecStim[0] -5.20789341415904e+214 flag=1
after this gives:

Code: Select all

../path/i386/special: line 13: 28854 Abort trap: 6           "${NRNIV}" -dll "/path/i386/.libs/" "$@"
Most times the error reports:

Code: Select all

/Applications/NEURON-7.2/nrn/i386/bin/ Bus error See $NEURONHOME/lib/help/
 in ./loadfiles/B100.hoc near line 321

I then try some troubleshooting based on the recent thread about VecStim().

I have vecevent.mod and compiled. I navigate to the folder with vecevent.mod and compiled i386.
I do nrngui and then attempt to load_file("") This results in an error.

Any ideas? Thanks!

Site Admin
Posts: 5742
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

Re: VecStim() errors

Post by ted » Wed Jun 27, 2012 12:13 am

Make a toy network that consists of the following:
Presynaptic cell: a VecStim.
Postsynaptic cell: a single compartment model with surface area 100 um2, with pas mechanism.
Synaptic mechanism: an ExpSyn with default properties
NetCon that connects the VecStim to the ExpSyn: set weight to 0.001, leave other parameters with their default values.
Vector of event times that is used by the VecStim: keep this simple. Give it just two elements, with values 1 and 2.
Set tstop to 5 (no point in running long simulations).

Once you get that working, you'll know how to use VecStim in your own model.


Re: VecStim() errors

Post by rllin » Wed Jun 27, 2012 2:38 am

Well, I have other working models with VecStim(). I was just afraid I was missing something obvious.

Code: Select all

objref presyn, syn, nc, eventvec
tstop = 100

eventvec = new Vector()

create soma
insert pas

presyn = new VecStim()

syn = new Exp2Syn(0.5)
nc = new NetCon(presyn, syn)
nc.weight = 1
is my toy network and it works. I guess I'll just check my code further. Thanks.

Posts: 21
Joined: Sun Apr 22, 2012 9:49 pm

Re: VecStim() errors

Post by regger » Sun Aug 12, 2012 2:58 pm

I don't know if you're still having the problem, but I'm just answering here because I saw another recent post with a segfault/bus error using VecStim (see ... f=8&t=2294).
This has come up before, but in the Python section of the forum, maybe that's why it was missed. It turns out, it's not a Python/hoc problem, but rather that the vecevent.mod file does not implement reference counting. Michael Hines has posted a nice explanation and solution here: ... f=2&t=2147.
I don't know if this applies exactly to your problem, but I hope it helps.

Post Reply