Page 1 of 1
Cellbuilder hangs the system
Posted: Sun Mar 22, 2009 5:56 pm
by badjoby
Hi,
Using NEURON -- Release 7.0 (281:80827e3cd201) 2009-01-16
on Ubuntu 8.10 and 9.04
1) start nrngui
2) Build->Cell builder
3) The check boxes are not checkable including Cont Create.
4) Attempt to click on the check boxes 2-3 times cause the system hang.
but If I do the following
1) start nrngui
2) At oc> prompt enter the following
objectvar ocbox__
{
load_file("celbild.hoc", "CellBuild")
}
{ocbox_ = new CellBuild(1)}
{
ocbox_.map("CellBuild[0]", 117, 494, 788.16, 358.08)
}
(from your program)
then Cell builder comes up and the everything including check boxes are fine.
thanks, joby
Re: Cellbuilder hangs the system
Posted: Mon Mar 23, 2009 10:24 am
by ted
Did you install with the rpm or did you get the gzipped tar files and compile the source code?
Does neurondemo work?
Re: Cellbuilder hangs the system
Posted: Mon Mar 23, 2009 2:25 pm
by badjoby
Hi Ted,
I initially tried the compile and install. Same issue. Then I installed the rpm version. Same issue.
So I guess it is mismatch with my system configuration. What I find puzzling it that why only
invoking Cellbuilder from the GUI have the issue?
thanks, joby
Re: Cellbuilder hangs the system
Posted: Mon Mar 23, 2009 2:27 pm
by badjoby
Neurondemo works.
Re: Cellbuilder hangs the system
Posted: Mon Mar 23, 2009 2:57 pm
by badjoby
Hi
At the oc> prompt if I use
{ocbox_ = new CellBuild()}
instead of
{ocbox_ = new CellBuild(1)}
I have the same issue.
I find that
nrn70/share/lib/hoc/celbild.hoc
uses the first format as given below
objref tobj
proc makecellbuilder() {
tobj = new CellBuild()
objref tobj
}
Any clues. I am totaly unfamiliar with hoc and Neuron.
thanks, joby
Re: Cellbuilder hangs the system. Solution?
Posted: Mon Mar 23, 2009 3:46 pm
by badjoby
Hi,
I modified part of my nrn/share/nrn/lib/hoc/celbild.hoc
to the following and it seems work so far without hanging..
objref tobj
proc makecellbuilder() {
tobj = new CellBuild(1)
tobj.map("CellBuild[0]", 117, 194, 788.16, 358.08)
objref tobj
}
I am sure this is a kludge. What is the real reason?
thanks, joby
Re: Cellbuilder hangs the system
Posted: Mon Mar 23, 2009 7:26 pm
by hines
Please go back to the original version before your change and edit
nrn/share/lib/hoc/celbild/celbild1.hoc and replace the fragment in the
proc init()
that reads:
Code: Select all
if (numarg() == 0) {
sprint(tstr,"%s", this)
vbox.map(tstr)
}
with
If that works, let us know and I'll make the change also.
I continue to be uncertain of the reason for the problem.
Re: Cellbuilder hangs the system
Posted: Mon Mar 23, 2009 8:04 pm
by badjoby
Hi,
I checked it out and it does not solve the problem :(.
Does CellBuild use the argument 1 anywhere?!
joby