QT program crashes after front QML can't get data from backside C++ file
-
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 }
-
Hi and welcome to devnet,
In order to debug quicker, can you reproduce that issue without actually running the tests ?