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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: Matlab crash with labCA 3.5.1 |
From: | "Sebek, Jim" <[email protected]> |
To: | <[email protected]> |
Date: | Mon, 12 Feb 2018 12:37:48 -0800 |
Kiman,The problem is that mathworks changed some of their mex functions in 2017b, making them incompatible with all but the most recent version of labCA. In order to fix a previous incompatibility somewhere between epics, matlab, windows, etc., a line was inserted for matlab,
mexLock();around line 280 in ini.cc, located in the glue subdirectory. r2017b changed the way that mexLock is called. This caused matlab to crash in both linux and windows. This is the probable cause for the error you have encountered. Till found that if we commented out the call to mexLock he was able to get labCA to work in linux. I repeated the experiment in windows7 and was able to get labCA to work there as well. We made this change in our production systems, both linux and windows, about a month ago and have seen no errors since.
I think that Till has very recently updated his labCA archive to reflect this change, so the most recent version probably does not have this problem.
/afs/slac/g/cd/swe/git/repos/package/epics/extensions/labca.gitBut I would first try to just comment out mexLock();, rebuild labCA, and see if your problem is solved.
Jim