Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020 
<== Date ==> <== Thread ==>

Subject: RE: A call to 'assert(dbLockIsInitialized)' by thread '_main_' [SOLVED]
From: Iain Marcuson via Tech-talk <tech-talk@aps.anl.gov>
To: Mark Rivers <rivers@cars.uchicago.edu>
Cc: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Thu, 25 Apr 2019 21:01:35 +0000
>Michael suggested using initHooks.  You can also poll the value of interruptAccept, which is a global variable defined in dbAccess.h which goes to 1 when iocInit is complete.  For example:
>
>
>    while(!interruptAccept) epicsThreadSleep(0.1);

Putting that in the offending thread solved the assertion problem.

> Normally camera drivers do not do database access, they operate below the database layer, and can in principle operate without a database at all.

"Driver" is probably not the right controller.  "Controller" is probably a better one, although that is irrelevant to the problem.

Thank you for the help.




Navigate by Date:
Prev: Re: database or new record for blocking setpoint/readback process control Lang, Keenan C. via Tech-talk
Next: Re: database or new record for blocking setpoint/readback process control Pearson, Matthew R. via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020 
Navigate by Thread:
Prev: Re: A call to 'assert(dbLockIsInitialized)' by thread '_main_' Michael Davidsaver via Tech-talk
Next: gen_iocsh_reg.pl Benjamin Franksen via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020 
ANJ, 26 Apr 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·