New singleton handling causes debug asserts

Bug #1542309 reported by Benjamin Zeller
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Critical
Zoltan Balogh
ubuntu-ui-toolkit (Ubuntu RTM)
Fix Released
Critical
Zsombor Egri

Bug Description

The following tests are failing because a Q_ASSERT() is thrown:

tst_qquick_image_extension: QFATAL : tst_UCQQuickImageExtension::scaledBorderIdentity() ASSERT: "parent" in file <workspace>/staging/src/Ubuntu/Components/plugin/ucunits.h, line 35

tst_arguments: QFATAL : tst_UCArguments::testUsage(--usage) ASSERT: "parent" in file <workspace>/staging/src/Ubuntu/Components/plugin/i18n.h, line 41

tst_alarms: QFATAL : tst_UCAlarms::initTestCase() ASSERT: "parent" in file <workspace>/staging/src/Ubuntu/Components/plugin/i18n.h, line 41

tst_deprecated_theme_engine: QFATAL : tst_UCDeprecatedTheme::testNameDefault() ASSERT: "parent" in file <workspace>/staging/src/Ubuntu/Components/plugin/ucfontutils.h, line 40

tst_bottomedge: QFATAL : tst_BottomEdge::initTestCase() ASSERT: "parent" in file <workspace>/staging/src/Ubuntu/Components/plugin/quickutils.h, line 40

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Confirmed
Cris Dywan (kalikiana)
summary: - New singleton handling causes testfailures
+ New singleton handling causes debug asserts
Revision history for this message
Cris Dywan (kalikiana) wrote :

It seems moving Q_ASSERT(parent) to if (!parent) qFatal("QuickUtils can't be instantiated without a parent"); would do the trick, it shows in logs and aborts the test run.

Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit (Ubuntu):
importance: Undecided → Critical
status: Confirmed → In Progress
Zoltan Balogh (bzoltan)
affects: ubuntu-ui-toolkit (Ubuntu) → ubuntu-ui-toolkit (Ubuntu RTM)
Changed in ubuntu-ui-toolkit (Ubuntu RTM):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
assignee: nobody → Zoltan Balogh (bzoltan)
milestone: none → ww08-2016
status: New → Fix Committed
importance: Undecided → Critical
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.