Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[open] GUI crashes seemingly random

edited August 2013 in OpenSesame

Hi all,

On my Kubuntu 12.04 installation, OpenSesame has the annoying habit of crashing often and without provocation. Most crashes occur whenever I'm clicking on different widgets in the GUI (for example: after just editing the timeout of a sketchpad and then going on to draw some stuff on it, OpenSesame suddenly shuts down immediately) This seems to be a problem that is specific to my installation (or maybe even the OS), as I do not experience the same problems with Debian or on win7.

The errors seem to be quite consistent: either a PyGame segmentation fault or some PyQt4 memory problem (see below for full errors). Has anybody encountered something similar in the past? Perhaps any ideas on where the problem could be? (see below for versions of relevant software)

versions

OpenSesame 0.27.3

Python 2.7.3 (default, Apr 10 2013, 05:46:21)

[GCC 4.6.3] on linux 2

OpenCV is available (version is unknown)

OpenCV2 2.4.5

Expyriment 0.6.3 (Revision 7f0fe8984130; Python 2.7.3)

NumPy 1.6.1

PyAudio 0.2.4

PyGame 1.9.1release

PyOpenGL 3.0.1b2

PyQt 4.9.1

PySerial 2.5

PsychoPy 1.77.01

Pyglet 1.1.4

SciPy 0.9.0

Comments

  • edited August 2013

    It appears my post was too long, so here are the errors in a doublepost:

    segmentation fault

    Fatal Python error: (pygame parachute) Segmentation Fault
    Aborted (core dumped)
    

    some Qt trouble

    *** glibc detected *** /usr/bin/python: double free or corruption (out): 0x09a36380 ***
    ======= Backtrace: =========
    /lib/i386-linux-gnu/libc.so.6(+0x75ee2)[0xb73a0ee2]
    /usr/lib/i386-linux-gnu/libstdc++.so.6(_ZdlPv+0x1f)[0xb5b2151f]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN14QWidgetPrivate11deleteExtraEv+0x38)[0xb5fc6de8]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN14QWidgetPrivateD1Ev+0x3c)[0xb5fc705c]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(+0x5c7786)[0xb6401786]
    /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN7QObjectD2Ev+0x5eb)[0xb5cf44bb]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN7QWidgetD2Ev+0x2fd)[0xb5fc922d]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN9QLineEditD1Ev+0x2f)[0xb63fa54f]
    /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so(+0x28bed1)[0xb6b98ed1]
    /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so(+0x28bf12)[0xb6b98f12]
    /usr/lib/i386-linux-gnu/libQtCore.so.4(_Z21qDeleteInEventHandlerP7QObject+0x13)[0xb5cedd03]
    /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN7QObject5eventEP6QEvent+0x298)[0xb5cf4ca8]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0xc2)[0xb5fcee62]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN9QLineEdit5eventEP6QEvent+0x7b)[0xb63fd08b]
    /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so(+0x29621a)[0xb6ba321a]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xc4)[0xb5f74ed4]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x222)[0xb5f7a3a2]
    /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so(+0x3de975)[0xb6ceb975]
    /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8e)[0xb5cd997e]
    /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData+0x3d8)[0xb5cddad8]
    /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication16sendPostedEventsEP7QObjecti+0x2c)[0xb5cdde0c]
    /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so(+0xf491c)[0xb544791c]
    /usr/bin/python(PyEval_EvalFrameEx+0x291)[0x819d5d1]
    /usr/bin/python(PyEval_EvalFrameEx+0x6ff)[0x819da3f]
    /usr/bin/python(PyEval_EvalFrameEx+0x6ff)[0x819da3f]
    /usr/bin/python(PyEval_EvalFrameEx+0x6ff)[0x819da3f]
    /usr/bin/python(PyEval_EvalCodeEx+0x150)[0x81a3bb0]
    /usr/bin/python[0x81a490e]
    /usr/bin/python(PyObject_Call+0x3f)[0x813c34f]
    /usr/bin/python[0x80a30d7]
    /usr/bin/python(PyObject_Call+0x3f)[0x813c34f]
    /usr/bin/python(PyEval_CallObjectWithKeywords+0x39)[0x813c8c9]
    /usr/lib/python2.7/dist-packages/sip.so(sip_api_invoke_slot+0x194)[0xb558e584]
    /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so(+0x136bad)[0xb5489bad]
    /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so(+0x1370ef)[0xb548a0ef]
    /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so(+0x1371fb)[0xb548a1fb]
    /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN11QMetaObject8metacallEP7QObjectNS_4CallEiPPv+0x3d)[0xb5ce0c9d]
    /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x54d)[0xb5cf09bd]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN9QLineEdit15editingFinishedEv+0x35)[0xb63ff065]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN9QLineEdit13focusOutEventEP11QFocusEvent+0x98)[0xb63ff188]
    /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so(+0x28bb92)[0xb6b98b92]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x976)[0xb5fcf716]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN9QLineEdit5eventEP6QEvent+0x7b)[0xb63fd08b]
    /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so(+0x29621a)[0xb6ba321a]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xc4)[0xb5f74ed4]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x222)[0xb5f7a3a2]
    /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so(+0x3de975)[0xb6ceb975]
    /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8e)[0xb5cd997e]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN19QApplicationPrivate14setFocusWidgetEP7QWidgetN2Qt11FocusReasonE+0x1ca)[0xb5f7340a]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN7QWidget8setFocusEN2Qt11FocusReasonE+0x1cb)[0xb5fc0e1b]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN19QApplicationPrivate31giveFocusAccordingToFocusPolicyEP7QWidgetN2Qt11FocusPolicyENS2_11FocusReasonE+0x60)[0xb5f72eb0]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x2364)[0xb5f7c4e4]
    /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so(+0x3de975)[0xb6ceb975]
    /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8e)[0xb5cd997e]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb+0x115)[0xb5f75e95]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(+0x1c8074)[0xb6002074]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0xb8d)[0xb6000c0d]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(+0x1f3eac)[0xb602deac]
    /lib/i386-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x146)[0xb5978d86]
    /lib/i386-linux-gnu/libglib-2.0.so.0(+0x47125)[0xb5979125]
    /lib/i386-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x41)[0xb5979201]
    /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x67)[0xb5d0c887]
    /usr/lib/i386-linux-gnu/libQtGui.so.4(+0x1f3aaa)[0xb602daaa]
    ======= Memory map: ========
    08048000-0829e000 r-xp 00000000 08:05 1835850    /usr/bin/python2.7
    0829e000-0829f000 r--p 00255000 08:05 1835850    /usr/bin/python2.7
    0829f000-082f4000 rw-p 00256000 08:05 1835850    /usr/bin/python2.7
    082f4000-08300000 rw-p 00000000 00:00 0 
    08ddd000-09ff1000 rw-p 00000000 00:00 0          [heap]
    aeb78000-aeb79000 rw-p 00000000 00:00 0 
    aeb79000-af3a7000 rw-s 00000000 00:04 11337783   /SYSV00000000 (deleted)
    af3a7000-af400000 r--p 00000000 08:05 2492261    /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf
    af400000-af421000 rw-p 00000000 00:00 0 
    af421000-af500000 ---p 00000000 00:00 0 
    af50c000-af511000 r-xp 00000000 08:05 530844     /lib/i386-linux-gnu/libnss_dns-2.15.so
    af511000-af512000 r--p 00004000 08:05 530844     /lib/i386-linux-gnu/libnss_dns-2.15.so
    af512000-af513000 rw-p 00005000 08:05 530844     /lib/i386-linux-gnu/libnss_dns-2.15.so
    af513000-af515000 r-xp 00000000 08:05 524343     /lib/libnss_mdns4_minimal.so.2
    af515000-af516000 r--p 00001000 08:05 524343     /lib/libnss_mdns4_minimal.so.2
    af516000-af517000 rw-p 00002000 08:05 524343     /lib/libnss_mdns4_minimal.so.2
    af517000-af518000 ---p 00000000 00:00 0 
    af518000-afd18000 rw-p 00000000 00:00 0 
    afd18000-afd6e000 r-xp 00000000 08:05 1836697    /usr/lib/libibus-qt.so.1.3.0
    afd6e000-afd6f000 r--p 00056000 08:05 1836697    /usr/lib/libibus-qt.so.1.3.0
    afd6f000-afd70000 rw-p 00057000 08:05 1836697    /usr/lib/libibus-qt.so.1.3.0
    afd88000-afda9000 r-xp 00000000 08:05 1839133    /usr/lib/i386-linux-gnu/qt4/plugins/inputmethods/libqtim-ibus.so
    afda9000-afdaa000 r--p 00020000 08:05 1839133    /usr/lib/i386-linux-gnu/qt4/plugins/inputmethods/libqtim-ibus.so
    afdaa000-afdab000 rw-p 00021000 08:05 1839133    /usr/lib/i386-linux-gnu/qt4/plugins/inputmethods/libqtim-ibus.soAborted (core dumped)
    
  • edited 1:47PM

    Hi Edwin,

    It seems to be a memory-management bug in Qt4, and not related to PyGame. You will see the 'pygame parachute' message whenever a segmentation fault occurs and PyGame is loaded, regardless of where the error comes from. (I'm not sure what it means, but I imagine that PyGame somehow catches segmentation faults.)

    I haven't seen this problem myself, also not when I was running Kubuntu 12.04. But, as you say, issues like this can be specific to a particular system. Btw, is your system fully updated?

    You could try running opensesame --debug --stack and see if you can find some regularity in when the problem occurs. Even though this is presumably a bug in Qt4, it would be informative to known when it occurs so that we can work around it.

    Cheers!
    Sebastiaan

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

Sign In or Register to comment.