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

How to debug crash in object->metaObject()->className() of err_method_notfound method



  • Hello,

    I am researching crash of the application that use QT 5.9.7 and I have get the following stacktrace

    • QMetaObject::className
    • QMetaObjectPrivate::indexOfSignalRelative
    • err_method_notfound

    Even I have the sources of application and QT they are rather complex to find out the problem at once. I suppose that something bad happend during application exit.

    Can anyone give me the idea of how I can get more details for this crash?

    Regards,
    Pavel


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Where in your code those this crash start ?



  • Actually QT is used by PIVX project and I am not familiar with all code, so I try to find the start point. This issue I can reproduce by autotest with start/stop process operations. I suppose that there is some race condition that happen rare


  • Lifetime Qt Champion

    In that case comment all the code that makes the test crash and te-add stuff gradually until the test starts to crash again. It should give you clues about what is going on.


Log in to reply