Nominate our 2022 Qt Champions!

QT Crashes with "!"empty Value encountered"" in file jsruntime\qv4value.cpp, line 142

  • Hi, I'm using a 3rd party js library and I ran into an issue.

    I've boiled it down to the following code that can reproduce the issue:

    Component.onCompleted:  {
        var a = [];
        a[0] = 1;
        a[2] = 3;
        test.apply(null, a);
    function test(a1, a2, a3) {
        print(a2);//crashes here
    • Has anyone else experienced this issue?
    • Can you reproduce it?
    • Should I report this issue?