Launcher crashes in console.warn() with Qt.Test import
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Confirmed
|
Medium
|
Cris Dywan | ||
ubuntu-ui-toolkit (Ubuntu RTM) |
New
|
Undecided
|
Unassigned |
Bug Description
Launching this app with launcher:
import QtQuick 2.4
import Ubuntu.Test 1.0
UbuntuTestCase {
function test_something() {
}
}
will dump core, like this:
tim@ubuntu:
ASSERT: "QTest:
Aborted (core dumped)
Note that you don't have to call console.warn() directly, but it may be called by changing a parameter for testing. The original test (tst_header_
function test_warn_
}
which crashes because PageHeadSections currently has this warning printed:
onModelChanged: {
if (model && model.length > 3) {
}
}
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | New → Confirmed |
assignee: | nobody → Christian Dywan (kalikiana) |
importance: | Undecided → Critical |
summary: |
- Launcher crashes when console.warn() is called. + Launcher crashes in console.warn() with Qt.Test import |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
importance: | Critical → Medium |
when I have "when: windowShown" in the UbuntuTestCase, the crash does not seem to happen.