qmlscene crashed with SIGABRT in QMessageLogger::fatal()

Bug #1243665 reported by Timo Jyrinki
50
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Ubuntu Application Launcher
Fix Released
Critical
Ted Gould
unity-mir
Fix Released
Critical
Gerry Boland
qtubuntu (Ubuntu)
Invalid
Critical
Unassigned
unity-mir (Ubuntu)
Fix Released
Undecided
Unassigned
unity8 (Ubuntu)
Invalid
Undecided
Gerry Boland
upstart-app-launch (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Reportedly easily reproducable with rss reader. Retraced using apport-retrace + lp:daisy

ProblemType: Crash
DistroRelease: Ubuntu 13.10
Package: qmlscene 5.0.2-6ubuntu4
Uname: Linux 3.4.0-3-mako armv7l
ApportVersion: 2.12.5-0ubuntu2
Architecture: armhf
Date: Tue Oct 22 05:40:54 2013
ExecutablePath: /usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene
ExecutableTimestamp: 1381490757
InstallationDate: Installed on 2013-10-17 (6 days ago)
InstallationMedia: Ubuntu 13.10 - armhf (20131017)
MarkForUpload: True
ProcCmdline: /usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene rssreader-app.qml
ProcCwd: /usr/share/click/preinstalled/com.ubuntu.shorts/0.2.116
Signal: 6
SourcePackage: qtdeclarative-opensource-src
StacktraceTop:
 qt_message_fatal (context=..., message=...) at global/qlogging.cpp:868
 QMessageLogger::fatal (this=this@entry=0xbec4511c, msg=0x40dab104 "QUbuntu: Could not create application instance") at global/qlogging.cpp:356
 QUbuntuIntegration::QUbuntuIntegration (this=0x4144408c <lock>, input_factory=0x40db8824 <(anonymous namespace)::InputAdaptorFactory::instance()::global_instance>) at integration.cc:75
 QUbuntuMirIntegration::QUbuntuMirIntegration (this=0xe03a38) at integration.cc:39
 QUbuntuMirClientIntegrationPlugin::create (this=<optimized out>, system=..., paramList=...) at main.cc:41
Title: qmlscene crashed with SIGABRT in raise()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm autopilot cdrom dialout dip nopasswdlogin plugdev sudo tty video

Related branches

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :
information type: Private → Public
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in qtdeclarative-opensource-src (Ubuntu):
status: New → Confirmed
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 QMessageLogger::fatal(char const*, ...) const () at global/qlogging.cpp:868
 QUbuntuIntegration::QUbuntuIntegration(QUbuntuInputAdaptorFactory*) () at integration.cc:75
 QUbuntuMirIntegration::QUbuntuMirIntegration() () at integration.cc:39
 QUbuntuMirClientIntegrationPlugin::create(QString const&, QStringList const&) () at main.cc:41
 QGuiApplicationPrivate::createPlatformIntegration() () at kernel/qguiapplication.cpp:772

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in qtdeclarative-opensource-src (Ubuntu):
importance: Undecided → Medium
summary: - qmlscene crashed with SIGABRT in raise()
+ qmlscene crashed with SIGABRT in QMessageLogger::fatal()
tags: removed: need-armhf-retrace
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

This seems to be the remaining crasher at http://ci.ubuntu.com/smokeng/trusty/touch/, so raising importance to Critical. Still happening easily with eg. RSS Reader, because of which bug #1256837 was filed.

no longer affects: qtdeclarative-opensource-src (Ubuntu)
Changed in qtubuntu:
importance: Undecided → Critical
Changed in qtubuntu:
assignee: nobody → Ricardo Mendoza (ricmm)
Gerry Boland (gerboland)
Changed in qtubuntu:
status: New → Confirmed
Revision history for this message
Robert Bruce Park (robru) wrote :

Timo, can you tell us the steps to reproduce? Or are you just seeing this in the automated logs only?

Revision history for this message
Gerry Boland (gerboland) wrote :

Am able to reproduce with today's devel image. Error seems to step from platform-api failing to create an application instance with u_application_instance_new_from_description_with_options.

Can repro it reasonably reasonably reliably, so am digging.

Revision history for this message
Gerry Boland (gerboland) wrote :

SessionAuthorizer::connection_is_allowed (this=0x5b1658, pid=14489
ApplicationManager::authorizeSession (this=0x47547268, pid=14489)
ApplicationManager REJECTED connection from app with pid 14489 as no desktop_file_hint specified
ApplicationManager::onProcessStartReportReceived (this=0x47547268, appId=address-book-app, failure=N)

This part of log file shows this is a race condition. The application creates a Mir connection before upstart sends a signal (via dbus) to the application manager to expect it. Thus app manager rejects the application as it isn't expecting it.

Revision history for this message
Gerry Boland (gerboland) wrote :

Talking with Ted, we need upstart-app-launch to add a synchronous signal to notify shell that an application is starting - to guarantee that the process is executed only after ApplicationManager knows about it.

Changed in upstart-app-launch:
assignee: nobody → Ted Gould (ted)
importance: Undecided → Critical
status: New → Confirmed
Changed in qtubuntu:
assignee: Ricardo Mendoza (ricmm) → nobody
Revision history for this message
Ted Gould (ted) wrote :

Adding a bug task for unity8 to use the new API once it lands.

Changed in upstart-app-launch:
status: Confirmed → In Progress
Changed in unity8:
status: New → Incomplete
assignee: nobody → Gerry Boland (gerboland)
assignee: Gerry Boland (gerboland) → nobody
Ted Gould (ted)
Changed in unity8:
assignee: nobody → Gerry Boland (gerboland)
Revision history for this message
Gerry Boland (gerboland) wrote :

Fix required in unity-mir only. Changing my affected project

Changed in unity-mir:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Gerry Boland (gerboland)
Changed in unity8:
status: Incomplete → Invalid
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:upstart-app-launch at revision None, scheduled for release in upstart-app-launch, milestone Unknown

Changed in upstart-app-launch:
status: In Progress → Fix Committed
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:unity-mir at revision None, scheduled for release in unity-mir, milestone phone-v1-freeze

Changed in unity-mir:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package upstart-app-launch - 0.3+14.04.20131209-0ubuntu2

---------------
upstart-app-launch (0.3+14.04.20131209-0ubuntu2) trusty; urgency=low

  * Restrict on which arch we build url-dispatcher due to the ust build-dep
 -- Didier Roche <email address hidden> Mon, 09 Dec 2013 13:47:51 +0100

Changed in upstart-app-launch (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-mir - 0.2+14.04.20131209-0ubuntu1

---------------
unity-mir (0.2+14.04.20131209-0ubuntu1) trusty; urgency=low

  [ Gerry Boland ]
  * Unity.Application is not a shared library, but a plugin. (LP:
    #1256014)
  * Implement preStart callback added to upstart-app-launch-2. (LP:
    #1243665)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 157
 -- Ubuntu daily release <email address hidden> Mon, 09 Dec 2013 02:58:23 +0000

Changed in unity-mir (Ubuntu):
status: New → Fix Released
Revision history for this message
Cris Dywan (kalikiana) wrote :
Revision history for this message
Cris Dywan (kalikiana) wrote :

See also bug 1262982.

Ted Gould (ted)
Changed in upstart-app-launch:
status: Fix Committed → Fix Released
Michał Sawicz (saviq)
Changed in unity-mir:
status: Fix Committed → Fix Released
Gerry Boland (gerboland)
Changed in qtubuntu:
status: Confirmed → Invalid
Michał Sawicz (saviq)
affects: qtubuntu → qtubuntu (Ubuntu)
Michał Sawicz (saviq)
affects: unity8 → unity8 (Ubuntu)
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.