taurus-org / taurus

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

TaurusForm crashes on windows if self-droping a model #96

Open sf-migrator-bot opened 10 years ago

sf-migrator-bot commented 10 years ago

To reproduce:

Launch taurusform sys/tg_test/1/double_scalar Drag from the label and drop it on the same form ===> It crashes.

It does not occur (at least so often) under Linux.

Maybe it has to do with this http://sf.net/p/tango-cs/bugs/659 ?

Reported by: cpascual ( http://sf.net/u/cpascual )

sf-migrator-bot commented 10 years ago

Original comment by: cpascual (http://sourceforge.net/u/cpascual)

sf-migrator-bot commented 9 years ago

Original comment by: cpascual (http://sourceforge.net/u/cpascual)

sf-migrator-bot commented 9 years ago

Ticket moved from /p/sardana/tickets/213/

Can't be converted:

Original comment by: tiagocoutinho (http://sourceforge.net/u/tiagocoutinho)

sf-migrator-bot commented 9 years ago

I could reproduce the problem on openSuse11.11 32bits, Qt 4.4.3, with PyTango 7.2.3 and 8.1.4. If you see the attached gdb backtrace, the core seems to come from Qt (there are not trails of PyTango). So, I will discart any relation with the bug659

I could not reproduce the bug on Opensuse13.2 with Qt 4.8.6.

(gdb) bt
#0  0xb399c729 in ?? () from /usr/lib/libQtGui.so.4
#1  0xb4a3a8be in QObject::~QObject() () from /usr/lib/libQtCore.so.4
#2  0xb39906dd in QTextControl::~QTextControl() () from /usr/lib/libQtGui.so.4
#3  0xb3b316d9 in ?? () from /usr/lib/libQtGui.so.4
#4  0xb3b324ab in QLabel::~QLabel() () from /usr/lib/libQtGui.so.4
#5  0xb42f3d0c in ?? () from /usr/lib/python2.6/site-packages/PyQt4/QtGui.so
#6  0xb4a31c1f in QObjectPrivate::deleteChildren() () from /usr/lib/libQtCore.so.4
#7  0xb37f51b0 in QWidget::~QWidget() () from /usr/lib/libQtGui.so.4
#8  0xb44ef42c in ?? () from /usr/lib/python2.6/site-packages/PyQt4/QtGui.so
#9  0xb3bc6e5b in QScrollArea::setWidget(QWidget*) () from /usr/lib/libQtGui.so.4
#10 0xb41fe94e in ?? () from /usr/lib/python2.6/site-packages/PyQt4/QtGui.so
#11 0xb75d4885 in PyCFunction_Call () from /usr/lib/libpython2.6.so.1.0
#12 0xb76274b5 in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#13 0xb762726d in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#14 0xb762cdaf in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0
#15 0xb76265a4 in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#16 0xb762cbcb in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0
#17 0xb75c1a29 in ?? () from /usr/lib/libpython2.6.so.1.0
#18 0xb759cc1c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#19 0xb75aa9fe in ?? () from /usr/lib/libpython2.6.so.1.0
#20 0xb759cc1c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#21 0xb7627d50 in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#22 0xb762726d in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#23 0xb762726d in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#24 0xb762726d in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#25 0xb762cbcb in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0
#26 0xb75c1a29 in ?? () from /usr/lib/libpython2.6.so.1.0
#27 0xb759cc1c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#28 0xb75aa9fe in ?? () from /usr/lib/libpython2.6.so.1.0
#29 0xb759cc1c in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#30 0xb762577f in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.6.so.1.0
#31 0xb4f04283 in ?? () from /usr/lib/python2.6/site-packages/sip.so

Original comment by: cmft (http://sourceforge.net/u/cmft)

sf-migrator-bot commented 8 years ago

I could reproduce something similar with debian testing and taurus 4.0.0:

Itdoes not happen 100% of the time, but quite often

For some reason it seems to happen more often when the drag& drop is done from a different attr

The backtrace from the core file is:

cpascual@pc218:~$ gdb  python core
GNU gdb (Debian 7.10-1+b1) 7.10
(...)

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/python /tmp/kkt4/usr/local/bin/taurusgui example01'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f5a47c239e9 in QMutex::lock() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
[Current thread is 1 (Thread 0x7f5a51cca700 (LWP 29532))]
(gdb) bt
#0  0x00007f5a47c239e9 in QMutex::lock() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#1  0x00007f5a47d3c849 in QCoreApplication::postEvent(QObject*, QEvent*, int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f5a45f06b98 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#3  0x00007f5a45ee9d1b in QApplication::x11ClientMessage(QWidget*, _XEvent*, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#4  0x00007f5a45ef7d31 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#5  0x00007f5a45f218e2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#6  0x00007f5a478e71a7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f5a478e7400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f5a478e74ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f5a47d69244 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007f5a45f219b6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#11 0x00007f5a47d3718f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#12 0x00007f5a47d374f5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#13 0x00007f5a47d3d4b9 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#14 0x00007f5a46f0faeb in ?? () from /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so
#15 0x00000000004cbc65 in PyEval_EvalFrameEx ()
#16 0x00000000004c2c15 in PyEval_EvalCodeEx ()
#17 0x00000000004cad4d in PyEval_EvalFrameEx ()
#18 0x00000000004ca2ef in PyEval_EvalFrameEx ()
#19 0x00000000004c2c15 in PyEval_EvalCodeEx ()
#20 0x00000000004c29b9 in PyEval_EvalCode ()
#21 0x00000000004f2aaf in ?? ()
#22 0x00000000004ed302 in PyRun_FileExFlags ()
#23 0x00000000004eba81 in PyRun_SimpleFileExFlags ()
#24 0x000000000049e438 in Py_Main ()
#25 0x00007f5a50c1b610 in __libc_start_main (main=0x49dd60 <main>, argc=3, argv=0x7ffd78043488, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd78043478) at libc-start.c:291
#26 0x000000000049dc89 in _start ()

Original comment by: cpascual (http://sourceforge.net/u/cpascual)