taurus-org / taurus

Moved to https://gitlab.com/taurus-org/taurus
http://taurus-scada.org
43 stars 46 forks source link

Taurus GUI crashes when creating a new panel #981

Open amilan opened 5 years ago

amilan commented 5 years ago

To reproduce the error, run:

taurus --log-level=Debug gui example01

And then try to create a New Panel. The gui crashes with the following output:

TimerLoop 1    DEBUG    2019-07-29 14:33:21,770 localhost.localdomain:10000.sys/tg_test/1.no_value: Error polling: Read value for attribute no_value has not been updated
TimerLoop 1    DEBUG    2019-07-29 14:33:21,819 localhost.localdomain:10000.sys/tg_test/1.throw_exception: Error polling: here is the exception you requested
MainThread     DEBUG    2019-07-29 14:33:21,851 b'UnitLessLineEdit.tango://localhost.localdomain:10000/sys/tg_test/1/uchar_scalar#wvalue.magnitude': Validator disabled
MainThread     DEBUG    2019-07-29 14:33:21,860 b'UnitLessLineEdit.tango://localhost.localdomain:10000/sys/tg_test/1/string_scalar#wvalue.magnitude': Validator disabled
TimerLoop 1    DEBUG    2019-07-29 14:33:26,224 localhost.localdomain:10000.sys/tg_test/1.no_value: Error polling: Read value for attribute no_value has not been updated
TimerLoop 1    DEBUG    2019-07-29 14:33:26,228 localhost.localdomain:10000.sys/tg_test/1.throw_exception: Error polling: here is the exception you requested
MainThread     DEBUG    2019-07-29 14:33:26,269 TaurusWidgetFactory: Trying extra taurus widgets in /usr/lib/python2.7/site-packages/maxwidgets/input
MainThread     DEBUG    2019-07-29 14:33:26,269 TaurusWidgetFactory: Trying extra taurus widgets in /usr/lib/python2.7/site-packages/maxwidgets/panel
MainThread     DEBUG    2019-07-29 14:33:26,269 TaurusWidgetFactory: Trying extra taurus widgets in /usr/lib/python2.7/site-packages/maxwidgets/extra_guiqwt
MainThread     DEBUG    2019-07-29 14:33:26,270 TaurusWidgetFactory: Trying extra taurus widgets in /usr/lib/python2.7/site-packages/maxwidgets/display
MainThread     DEBUG    2019-07-29 14:33:26,270 TaurusWidgetFactory: Trying extra taurus widgets in 
MainThread     DEBUG    2019-07-29 14:33:26,270 TaurusWidgetFactory: Trying to find extra module setup
MainThread     DEBUG    2019-07-29 14:33:26,271 TaurusWidgetFactory: Trying to load extra module setup
/projects/lib-cells-taurus/rel-tests/lib/python2.7/site-packages/setuptools/dist.py:472: UserWarning: Normalizing '4.6.0-alpha' to '4.6.0a0'
  normalized_version,
usage: taurus [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: taurus --help [cmd1 cmd2 ...]
   or: taurus --help-commands
   or: taurus cmd --help

error: option --log-level not recognized
Dummy-3        DEBUG    2019-07-29 14:33:26,668 TaurusPollingTimer[3000].Timer on _pollAttributes: Timer::stop()
cpascual commented 5 years ago

Similar to #980, I cannot reproduce it with debian9 py2qt4 , debian9 py3qt5 or debian10 py3qt5

So, just to try to understand:

amilan commented 5 years ago

Is this 100% reproducible in your platform?

Yes.

what steps do you do to create the panel?

Just from the menu: Panels -> New Panel

how did you install your pyqt and tango (and which versions?)

Is the same environment as in #980, which means, PyQt4 and Tango are installed via RPM package. The one for PyQt4 is the one provided by the CentOS base repository, the Tango and PyTango RPMs are the ones provided by the maxiv repository.

Versions:

CentOS 7 Tango: 9.3.2 and 9.3.3 PyTango: 9.3.0 PyQt4: 4.10.1