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: | 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: | Thu, 11 Apr 2019 18:52:26 -0400 |
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
Attachment:
Selection_163.png
Description: PNG image