EPICS Controls 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  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  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Callback error from pyepics and python with GUI development
From: Tong Zhang via Tech-talk <[email protected]>
To: <[email protected]>
Cc: "Chabot, Daron" <[email protected]>, "'[email protected]'" <[email protected]>
Date: Fri, 12 Apr 2019 13:23:19 -0400
Hi Matt,

Just tried this PR (https://github.com/pyepics/pyepics/pull/150), it solved my issue (probably threading race condition), thank Daron for the help!

Hope you'll merge this PR soon.

Tong


On 4/11/19 6:52 PM, Tong Zhang via Tech-talk wrote:
Hi Matt,

I think the following issue I encountered may have something to do with pyepics, which after discussing with Daron, still cannot be resolved yet.

I'm trying to create pv callbacks onto my high-level GUI application with pyepics, but the app crashed because of the error regarding the CA context, please see the attached screenshot. And the strange thing is this only happened to Python 3.5, not Python 3.6 and Python 3.7.

To my understanding, the GUI case is slightly different than python thread, the main thread is for UI rendering, all my created callback are spawned from this main thread, I can do other CA action (put/get) without any problem, so where is the default CA context in the GUI case?

I've checked this link https://github.com/pyepics/pyepics/issues/68#issuecomment-290892241 and the guideline for python thread with pyepics, but still not sure how can I make use of the context.

Appreciate for any reply,
Tong

Replies:
Re: Callback error from pyepics and python with GUI development Matt Newville via Tech-talk

Navigate by Date:
Prev: areaDetector ADSupport R1-7 released Mark Rivers via Tech-talk
Next: areaDetector R3-5 released Mark Rivers 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  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Callback error from pyepics and python with GUI development Matt Newville via Tech-talk
Next: Re: Callback error from pyepics and python with GUI development Matt Newville 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  2021  2022  2023  2024 
ANJ, 12 Apr 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·