With Mir enabled - Applications randomly failed to start

Bug #1234538 reported by Jean-Baptiste Lallement
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Invalid
High
Unassigned
unity-mir
Fix Released
High
Gerry Boland
unity8 (Ubuntu)
Fix Released
High
Unassigned

Bug Description

On a MIR enabled phone

TEST CASE:
1. Reveal the launcher and start the application on the top of the list
2. Reveal the launcher again and start the next application on the list
3. Repeat step 2 for all the applications of the list

ACTUAL RESULT
Some applications will never start. They will stay blank, and thumbnail on 'Recent apps' will remain transparent.

Content of /home/phablet attached.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: unity8 7.81.3+13.10.20130927.3-0ubuntu1
Uname: Linux 3.4.0-3-mako armv7l
ApportVersion: 2.12.5-0ubuntu1
Architecture: armhf
Date: Thu Oct 3 06:54:02 2013
InstallationDate: Installed on 2013-10-03 (0 days ago)
InstallationMedia: Ubuntu Saucy Salamander (development branch) - armhf (20131003)
MarkForUpload: True
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
SourcePackage: unity8
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Changed in unity8 (Ubuntu):
importance: Undecided → High
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Mir's not an acronym... I think... ?

summary: - With MIR enabled - Applications randomly failed to start
+ With Mir enabled - Applications randomly failed to start
kevin gunn (kgunn72)
Changed in unity-mir:
importance: Undecided → High
Changed in mir:
importance: Undecided → High
Changed in unity-mir:
assignee: nobody → Gerry Boland (gerboland)
milestone: none → phone-v1-freeze
Changed in mir:
milestone: none → phone-v1-freeze
Revision history for this message
Gerry Boland (gerboland) wrote :

I suspect some non-click apps are using launch scripts to execute their binary. Unity-Mir will reject these apps unless the script passes the --desktop_file_hint=/path/to/desktop/file.desktop switch. I see several REJECTED apps in the unity8.log.

Culprit I know about is "notes-app" but there must be others. Must list all the apps and have them fixed

Gerry Boland (gerboland)
Changed in unity-mir:
status: New → Confirmed
Changed in mir:
status: New → Invalid
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Gerry, it is something different, in this defect, when you start several apps in a row some will start and some will not (exhibiting the same behaviour than notes) But it is not always the same applications.

Changed in unity8 (Ubuntu):
status: New → Confirmed
Revision history for this message
Michał Sawicz (saviq) wrote :

I just launched all my apps from the launcher in order and all of them worked :/

Jean, do you have some more concrete steps to repro? Or maybe it's just been fixed in the trunk versions of unity-mir I have...

Jean, can you try and reproduce after an image with new unity-mir is built?

Changed in unity-mir:
status: Confirmed → Incomplete
Changed in unity8 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Gerry Boland (gerboland) wrote :

I've tested with today's image (96) and can't make this happen. Tried fast launching, slow launching. Any clues would be helpful

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Here is a video to illustrate the case.
Note that after opening all the apps, when I click on gallery, dialer opens first, then gallery. Then when I tap on browser, there is a black screen and nothing happens anymore.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

s/black/blank/

Changed in unity-mir:
status: Incomplete → Confirmed
Changed in unity8 (Ubuntu):
status: Incomplete → Confirmed
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It would appear some apps are crashing or freezing. Can you please get a crash report, and/or stack traces of the frozen apps?

Changed in mir:
status: Invalid → Incomplete
Changed in mir:
milestone: phone-v1-freeze → 0.0.17
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

strace of gallery-app when this defect is reproduced and gallery app is in a frozen state.
It is stuck in a 5 seconds loop on epoll_wait(21, {}, 16, 5000) = 0

Descriptor 21 corresponds to an anon_inode:[eventpoll]

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Here is a stacktrace generated by killing gallery-app with SIGABRT

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

and the thread stack trace.

Changed in mir:
status: Incomplete → Confirmed
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

When this bug occurs, the apps launched before the app that freeze generates the crash in bug 1240835.

For example, I start all the apps on the launcher, then switch to camera-app, it is focused and running after a short moment, then switch to gallery-app, which fails to start (blank screen), a camera-app crash is generated in /var/crash.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Incomplete still. The ThreadStacktrace shows a bunch of normal idle threads. Nothing obvious is out of place.

Changed in mir:
status: Confirmed → Incomplete
milestone: 0.1.0 → none
Dave Morley (davmor2)
tags: added: gg
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

This bug or one with similar results appears to be the primary reason for several app failures on the dashboard -- applications just don't seem to launch, thus causing the tests to fail. This is affecting all of the core apps. Here's an example with a trace:

http://ci.ubuntu.com/smokeng/trusty/touch/mako/40:20131130:20131129/5200/ubuntu-clock-app-autopilot/542024/

Any chance we can get this closed?

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

It possible this bug may be related to:
https://bugs.launchpad.net/unity-mir/+bug/1243665
whose fix should land soon.

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

The fixes for bug #1243665 have landed now.

Revision history for this message
kevin gunn (kgunn72) wrote :

this is well established to be fixed.

Changed in unity-mir:
status: Confirmed → Fix Released
Changed in mir:
status: Incomplete → Fix Released
Changed in unity8 (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It seems no Mir fix was necessary.

Changed in mir:
status: Fix Released → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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