Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Help interpreting debugger error from QtCreator



  • My program consistently crashes after there are no more instructions (there is no code left to run). By running the debugger I get this output when the program is done/crashes

    https://i.stack.imgur.com/C7BJI.png

    However I have no idea what this means or what it is pointing me to. Can anyone help me interpret this error?



  • Hi, just guessing but it seems your program's animation gets stuck in an endless loop, causing the stack to overflow/malfunction.


  • Lifetime Qt Champion

    Hi @aarelovich,

    @hskoglund said in Help interpreting debugger error from QtCreator:

    Hi, just guessing but it seems your program's animation gets stuck in an endless loop, causing the stack to overflow/malfunction.

    I'd even say in a recursion - QDirIterator::QDirIterator appears two times in the stack trace.



  • I've actually made some progress in this. First of all this program is running on windows as it has third-party windows only libraries. However the problems do not have anything to do with this as they are not in play and only the program logic is, when reproducing the error. Third, I found out that there is a much clearer error message printed out in the console output (I can't reproduce the error, right now, which is why this is so FRUSTRATING) but it was a Heap Message that said that a freed location was being read.

    My program does not use QDirIterator at all, and I've already tried getting rid of the animation, but the problem remains (the only animation that I have is a QML SwipeView ).

    I tried to compile the program in linux by commenting out everything that has to do with the windows exclusive library and ran it with valgrind and I get this output which I'm trying ot understand but at least it references functions that are in my program:

    ==15438== Invalid write of size 4
    ==15438==    at 0x13C92C: ImageExperiment::nextState() (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x13CE01: ImageExperiment::keyPressEvent(QKeyEvent*) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x562D6D6: QWidget::event(QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F054B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F91D5: QApplication::notify(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x70F79F7: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
    ==15438==    by 0x564901A: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F054B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F7896: QApplication::notify(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x70F79F7: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
    ==15438==    by 0x5DFE21F: QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Gui.so.5.10.0)
    ==15438==    by 0x5E032F4: QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Gui.so.5.10.0)
    ==15438==  Address 0x19fd9270 is 144 bytes inside a block of size 216 free'd
    ==15438==    at 0x4C2E2BB: operator delete(void*) (vg_replace_malloc.c:576)
    ==15438==    by 0x13336C: FlowControl::on_experimentFinished(Experiment::ExperimentResult const&) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x7122EF5: QMetaObject::activate(QObject*, int, int, void**) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
    ==15438==    by 0x1525A1: Experiment::experimentEndend(Experiment::ExperimentResult const&) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x13C3D2: ImageExperiment::advanceTrial() (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x13C927: ImageExperiment::nextState() (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x13CE01: ImageExperiment::keyPressEvent(QKeyEvent*) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x562D6D6: QWidget::event(QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F054B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F91D5: QApplication::notify(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x70F79F7: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
    ==15438==    by 0x564901A: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==  Block was alloc'd at
    ==15438==    at 0x4C2D1FF: operator new(unsigned long) (vg_replace_malloc.c:334)
    ==15438==    by 0x13664F: FlowControl::startNewExperiment(int) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x152372: FlowControl::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) [clone .part.6] (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x152532: FlowControl::qt_metacall(QMetaObject::Call, int, void**) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x6761258: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x66E254C: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x66E3B6C: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x66E4CCF: QV4::QObjectMethod::callInternal(QV4::CallData*, QV4::Scope&) const (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x66FCDFA: QV4::Runtime::method_callProperty(QV4::ExecutionEngine*, int, QV4::CallData*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x15E0E101: ??? (in /home/ariela/.cache/EyeExperimenter/qmlcache/19d24bf4ff5981c7979c8e48cd6ce15e80c3944f.qmlc)
    ==15438==    by 0x6656E36: QV4::ExecutionContext::simpleCall(QV4::Scope&, QV4::CallData*, QV4::Function*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x678DA9B: QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*, QV4::Scope&) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438== 
    ==15438== Invalid read of size 4
    ==15438==    at 0x13B300: ImageExperiment::drawCurrentImage() (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x13C93D: ImageExperiment::nextState() (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x13CE01: ImageExperiment::keyPressEvent(QKeyEvent*) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x562D6D6: QWidget::event(QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F054B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F91D5: QApplication::notify(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x70F79F7: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
    ==15438==    by 0x564901A: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F054B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F7896: QApplication::notify(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x70F79F7: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
    ==15438==    by 0x5DFE21F: QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Gui.so.5.10.0)
    ==15438==  Address 0x19fd9228 is 72 bytes inside a block of size 216 free'd
    ==15438==    at 0x4C2E2BB: operator delete(void*) (vg_replace_malloc.c:576)
    ==15438==    by 0x13336C: FlowControl::on_experimentFinished(Experiment::ExperimentResult const&) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x7122EF5: QMetaObject::activate(QObject*, int, int, void**) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
    ==15438==    by 0x1525A1: Experiment::experimentEndend(Experiment::ExperimentResult const&) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x13C3D2: ImageExperiment::advanceTrial() (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x13C927: ImageExperiment::nextState() (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x13CE01: ImageExperiment::keyPressEvent(QKeyEvent*) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x562D6D6: QWidget::event(QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F054B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F91D5: QApplication::notify(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x70F79F7: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
    ==15438==    by 0x564901A: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==  Block was alloc'd at
    ==15438==    at 0x4C2D1FF: operator new(unsigned long) (vg_replace_malloc.c:334)
    ==15438==    by 0x13664F: FlowControl::startNewExperiment(int) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x152372: FlowControl::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) [clone .part.6] (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x152532: FlowControl::qt_metacall(QMetaObject::Call, int, void**) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x6761258: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x66E254C: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x66E3B6C: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x66E4CCF: QV4::QObjectMethod::callInternal(QV4::CallData*, QV4::Scope&) const (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x66FCDFA: QV4::Runtime::method_callProperty(QV4::ExecutionEngine*, int, QV4::CallData*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x15E0E101: ??? (in /home/ariela/.cache/EyeExperimenter/qmlcache/19d24bf4ff5981c7979c8e48cd6ce15e80c3944f.qmlc)
    ==15438==    by 0x6656E36: QV4::ExecutionContext::simpleCall(QV4::Scope&, QV4::CallData*, QV4::Function*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x678DA9B: QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*, QV4::Scope&) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438== 
    ==15438== Invalid read of size 4
    ==15438==    at 0x13C93E: ImageExperiment::nextState() (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x13CE01: ImageExperiment::keyPressEvent(QKeyEvent*) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x562D6D6: QWidget::event(QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F054B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F91D5: QApplication::notify(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x70F79F7: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
    ==15438==    by 0x564901A: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F054B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F7896: QApplication::notify(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x70F79F7: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
    ==15438==    by 0x5DFE21F: QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Gui.so.5.10.0)
    ==15438==    by 0x5E032F4: QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Gui.so.5.10.0)
    ==15438==  Address 0x19fd9278 is 152 bytes inside a block of size 216 free'd
    ==15438==    at 0x4C2E2BB: operator delete(void*) (vg_replace_malloc.c:576)
    ==15438==    by 0x13336C: FlowControl::on_experimentFinished(Experiment::ExperimentResult const&) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x7122EF5: QMetaObject::activate(QObject*, int, int, void**) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
    ==15438==    by 0x1525A1: Experiment::experimentEndend(Experiment::ExperimentResult const&) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x13C3D2: ImageExperiment::advanceTrial() (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x13C927: ImageExperiment::nextState() (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x13CE01: ImageExperiment::keyPressEvent(QKeyEvent*) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x562D6D6: QWidget::event(QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F054B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F91D5: QApplication::notify(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x70F79F7: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
    ==15438==    by 0x564901A: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==  Block was alloc'd at
    ==15438==    at 0x4C2D1FF: operator new(unsigned long) (vg_replace_malloc.c:334)
    ==15438==    by 0x13664F: FlowControl::startNewExperiment(int) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x152372: FlowControl::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) [clone .part.6] (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x152532: FlowControl::qt_metacall(QMetaObject::Call, int, void**) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x6761258: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x66E254C: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x66E3B6C: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x66E4CCF: QV4::QObjectMethod::callInternal(QV4::CallData*, QV4::Scope&) const (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x66FCDFA: QV4::Runtime::method_callProperty(QV4::ExecutionEngine*, int, QV4::CallData*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x15E0E101: ??? (in /home/ariela/.cache/EyeExperimenter/qmlcache/19d24bf4ff5981c7979c8e48cd6ce15e80c3944f.qmlc)
    ==15438==    by 0x6656E36: QV4::ExecutionContext::simpleCall(QV4::Scope&, QV4::CallData*, QV4::Function*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x678DA9B: QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*, QV4::Scope&) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438== 
    ==15438== Invalid write of size 4
    ==15438==    at 0x13C944: ImageExperiment::nextState() (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x13CE01: ImageExperiment::keyPressEvent(QKeyEvent*) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x562D6D6: QWidget::event(QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F054B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F91D5: QApplication::notify(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x70F79F7: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
    ==15438==    by 0x564901A: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F054B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F7896: QApplication::notify(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x70F79F7: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
    ==15438==    by 0x5DFE21F: QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Gui.so.5.10.0)
    ==15438==    by 0x5E032F4: QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Gui.so.5.10.0)
    ==15438==  Address 0x19fd92a8 is 200 bytes inside a block of size 216 free'd
    ==15438==    at 0x4C2E2BB: operator delete(void*) (vg_replace_malloc.c:576)
    ==15438==    by 0x13336C: FlowControl::on_experimentFinished(Experiment::ExperimentResult const&) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x7122EF5: QMetaObject::activate(QObject*, int, int, void**) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
    ==15438==    by 0x1525A1: Experiment::experimentEndend(Experiment::ExperimentResult const&) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x13C3D2: ImageExperiment::advanceTrial() (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x13C927: ImageExperiment::nextState() (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x13CE01: ImageExperiment::keyPressEvent(QKeyEvent*) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x562D6D6: QWidget::event(QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F054B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x55F91D5: QApplication::notify(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==    by 0x70F79F7: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
    ==15438==    by 0x564901A: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so.5.10.0)
    ==15438==  Block was alloc'd at
    ==15438==    at 0x4C2D1FF: operator new(unsigned long) (vg_replace_malloc.c:334)
    ==15438==    by 0x13664F: FlowControl::startNewExperiment(int) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x152372: FlowControl::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) [clone .part.6] (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x152532: FlowControl::qt_metacall(QMetaObject::Call, int, void**) (in /home/ariela/Dropbox/viewmind_projects/EyeExperimenter/exe/EyeExperimenter)
    ==15438==    by 0x6761258: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x66E254C: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x66E3B6C: ??? (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x66E4CCF: QV4::QObjectMethod::callInternal(QV4::CallData*, QV4::Scope&) const (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x66FCDFA: QV4::Runtime::method_callProperty(QV4::ExecutionEngine*, int, QV4::CallData*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x15E0E101: ??? (in /home/ariela/.cache/EyeExperimenter/qmlcache/19d24bf4ff5981c7979c8e48cd6ce15e80c3944f.qmlc)
    ==15438==    by 0x6656E36: QV4::ExecutionContext::simpleCall(QV4::Scope&, QV4::CallData*, QV4::Function*) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==    by 0x678DA9B: QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*, QV4::Scope&) (in /home/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so.5.10.0)
    ==15438==
    

    However I still can't seem to locate where my program is failing....


  • Lifetime Qt Champion

    @aarelovich

    I usually try to solve such problems with a slegdehammer: Place a breakpoint at a known good code line, then step your way forward. If your prog crashes within a function, step in the next time.

    If you can not isolate the problem with this, then comment out code until it is running again. Then stepwise include parts of the commented code until you find the root cause.

    These are very rough recipes, but work very well, allthough not very efficient.

    Do you already have a working older version? Good, then start from there porting new code until you find the crash.

    Good luck!


Log in to reply