Cellbuilder hangs the system

The basics of how to develop, test, and use models.
Post Reply
badjoby
Posts: 8
Joined: Thu Mar 19, 2009 11:50 am

Cellbuilder hangs the system

Post 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
ted
Site Admin
Posts: 6384
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Cellbuilder hangs the system

Post by ted »

Did you install with the rpm or did you get the gzipped tar files and compile the source code?
Does neurondemo work?
badjoby
Posts: 8
Joined: Thu Mar 19, 2009 11:50 am

Re: Cellbuilder hangs the system

Post 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
badjoby
Posts: 8
Joined: Thu Mar 19, 2009 11:50 am

Re: Cellbuilder hangs the system

Post by badjoby »

Neurondemo works.
badjoby
Posts: 8
Joined: Thu Mar 19, 2009 11:50 am

Re: Cellbuilder hangs the system

Post 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
badjoby
Posts: 8
Joined: Thu Mar 19, 2009 11:50 am

Re: Cellbuilder hangs the system. Solution?

Post 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
hines
Site Admin
Posts: 1710
Joined: Wed May 18, 2005 3:32 pm

Re: Cellbuilder hangs the system

Post 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

Code: Select all

        if (numarg() == 0) {  
                map()
        }
If that works, let us know and I'll make the change also.
I continue to be uncertain of the reason for the problem.
badjoby
Posts: 8
Joined: Thu Mar 19, 2009 11:50 am

Re: Cellbuilder hangs the system

Post by badjoby »

Hi,
I checked it out and it does not solve the problem :(.
Does CellBuild use the argument 1 anywhere?!
joby
Post Reply