Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT program crashes after front QML can't get data from backside C++ file
Forum Updated to NodeBB v4.3 + New Features

QT program crashes after front QML can't get data from backside C++ file

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 132 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amitabh
    wrote on last edited by
    #1

    Hi ,
    we have complex QT program for our product regression tests. We divide all tests into various testgroups. When I select testgroups 18(e.g), all previous 17 testgroups and tests associated with them are skipping. Program provide test index number(here it is called Group) to front maintest.qml. After test index > 3400 somehow backend C++ test index number is not reaching to front end maintest.qml and in message output , it appear as <unknown Files>.. and than after some 60-70 tests mores skipped , program crashes with exit code 139. What could be the reason??

    backend C++ program code

    else if((m_selectedTestGroup >= TEST_SRC_ACC_S1_FULL_VOLT_ALGORITHIM_STEP_5_FIRST_TEST) &&
    (m_selectedTestGroup <= TEST_SRC_ACC_S2_FULL_VOLT_ALGORITHIM_STEP_8_LAST_TEST))
    {
    srcAccUnbalNxtTst = m_selectedTestGroup - TEST_SRC_ACC_S1_FULL_VOLT_ALGORITHIM_STEP_5_FIRST_TEST;

                pTestResult = &sourceAccVoltAlgorithmFullTest->result_SRC_ACC_FULL_VOLT_TESTS[srcAccUnbalNxtTst];
    
                if (testMode[m_selectedTestGroup]==0)
                    proceedNextTest();
                else
                {
                    sourceAccVoltAlgorithmFullTest->test(srcAccUnbalNxtTst);
                }
            }
    

    void IiTestManager::proceedNextTest()
    {

    m_selectedTestGroup = Test ( m_selectedTestGroup + 1 );
    emit newTestNumber(m_selectedTestGroup); //JLB 7/23/2019
    
    setState(STATE_START_TEST);
    emit stateMachine();
    

    }

    Frontend maintest.qml

    ContentArea {
    id: mainTest
    property string tColor
    property string previousTestGrp
    Connections {
    target: presenter
    onTestResultClear: listModel.clear()
    onTestInfo: {
    if (mode==1)
    tColor="white"
    else if (mode==2)
    tColor="yellow"
    else
    tColor="gray"
    listModel.set( index, { "color" :tColor ,"title": title, "value": value, "result": result, "error": error } )
    }
    onNewTestNumber : {
    listView.currentIndex=tnumber
    console.log("Index in Qml: ",listView.currentIndex)}
    onClearLogInfo:{ logModel.clear() }
    onLogInfo: { logModel.append( { "no": logNo, "date": logDate, "time": logTime, "event": logEvent, "cause": logCause} )}
    }

    Component.onCompleted: { presenter.getTestInfo() }
    
    ListModel { id: listModel }
    ListModel { id: logModel }
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      In order to debug quicker, can you reproduce that issue without actually running the tests ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved