Bus error (core dumped) in qnx



  • @import QtQuick 2.0

    Rectangle {
    width: 360
    height: 360
    property string samplestr: "1-10,1-11,"
    Text {
    id:ll
    text: qsTr("Hello World")
    anchors.centerIn: parent
    }

    MouseArea {
        anchors.fill: parent
        onClicked: {
            var array = samplestr.split(',')
           console.log("ppp",array) // here crashing if i remove array  its working fine.Why?
        }
    }
    

    }@

    if i run the above its crashing and when i remove array in console.log its working fine (it is happening only in qnx).
    please replay to my post



  • What version of QNX and Qt did you use? I tried this on my target and it did not crash:
    qml: ppp [1-10,1-11,]


Log in to reply