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 2019 2020 <2021> 2022 2023 2024 2025 | 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 2019 2020 <2021> 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Trying to use elauncher: _main_ thread failed |
From: | "Johnson, Andrew N. via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "Crisp, Daniel" <CrispD at nscl.msu.edu> |
Cc: | "Barofsky, Daniel" <barofsky at nscl.msu.edu>, EPICS tech-talk <tech-talk at aps.anl.gov> |
Date: | Mon, 6 Dec 2021 22:36:39 +0000 |
Hi Daniel,
On Dec 6, 2021, at 3:03 PM, Crisp, Daniel via Tech-talk <tech-talk at aps.anl.gov> wrote:
Seems likely, or shared from some other site; I don’t recognize if myself.
You must also be loading a .db file with a bo record for each elauncher instance in the IOC.
This is the code which is asserting, from your launcher.c file, plus a few lines afterwards…
The assertion says that the record’s OUT field must be populated with an INST_IO address (a string that starts with an
@ symbol) which can be used to set the command to be run. However the code also allows an info tag called “cmd” to be used to set that command instead.
My guess is that at least one of your elauncher bo records doesn’t have its OUT field set at all. Presumably someone saw that they could use an
info(cmd, "command") tag instead, but they didn’t realize that the assert was there and still has to pass for the IOC to initialize, so you need to add this line to any record that uses the info tag:
field(OUT, "@") Alternatively could move the assert() statement into the
else {} block above, so the OUT field type would only get checked if no info tag is present.
HTH,
- Andrew
--
Complexity comes for free, simplicity you have to work for.
|