Hi all, during the Panic+Fandango up-gradation with Tango 9.5, I faced a peculiar problem of PyQT5/Taurus5 based GUI gets hang for every 3 seconds whenever PyAlarm device (PANIC) is started. After extensive debugging, I found that cause was having same name for ALARM-Rule (‘alarmstatus’) for PyAlarm Device, and other external Device-attribute (mnc/lmc/e01/alarmStatus) which was accessed through a common GUI to both the devices.
Defining a PANIC Alarm-Rule with the same name, as an external Tango device attribute (e.g., Rule alarmStatus on dev/alarm/1, while monitoring mnc/lmc/e01/alarmStatus) causes a 3000 ms CORBA timeout (API_DeviceTimedOut) and freezes embedded PyQt5/Taurus based Custom GUIs.
Environment Comparison:
-
Failing: PyTango 9.5.1 (cppTango 9.5.0), Fandango 16.1.2, Python 3.12, PyQt5 / Taurus 5
-
Working: PyTango 9.4.1 (cppTango 9.4.2), Fandango 15.11.10, Python 3.9, PyQt5 / Taurus 5
Behavior & Root Cause:
-
When
dev/alarm/1is running and exposes a dynamic alarm attribute namedalarmStatus,TangoEval/PanicAPIcollides on the bare symbolalarmStatusagainst the external attributemnc/lmc/e01/alarmStatus. -
Under cppTango 9.5 + Fandango 16.1.2, simultaneous queries from a custom PyQt5/Taurus GUI (reading both
dev/alarm/1andmnc/lmc/e01) contend on the device monitor / proxy lock, blockingread_attributes()until the 3000 ms timeout expires. -
This did not occur in Fandango 15.11.10 + Tango 9.4, where symbol resolution and client lock handling did not block across the two devices.
Workaround:
Renaming the PANIC alarm rule to a unique identifier (e.g., ALM_STATUS instead of alarmStatus) immediately resolves the deadlock and GUI freeze.