Launcher thinking app is running still when it's dead

Bug #1584348 reported by Josué
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Michał Sawicz
unity8 (Ubuntu)
Fix Released
High
Michael Zanetti

Bug Description

When you let an app opened after a while (about hours) and after that you try to work with it the app sometimes does not respond.
I saw it with a lot of apps (camera, dialer, facebook, telegram, webbrowser...

Atached you'll find a video where you can see me trying to use camera app without any result.

Tags: bq-feedback

Related branches

Revision history for this message
Josué (j2g2rp) wrote :
tags: added: bq-feedback
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

If you change apps and come back to the one that was unresponsive does that fix it? i.e. is the app just not properly focused and not getting the touch events.

Is this only the case for the app that was last in the foreground?

Please add the software version you are running

Changed in canonical-devices-system-image:
status: New → Incomplete
Revision history for this message
Josué (j2g2rp) wrote :

No, i didn't tried it in this video, but other times i tried to change between apps and which are unresponsive still have the problem.
Usually i don't have enough time to wait or to make tests, but last week i saw that one time, changing between apps the unresponsive app turned to unfocused, and after few seconds the app restarted itself.
I can't say which app was...

I'll try to reproduce it again and make a video changing between app with multitasking gesture.

I don't know what do you mean asking if this is the only case for the app that was last in the foreground...

Sorry, i forgot to add the data of my device:
Bq 4.5 ubuntu ed. OTA 10.1

Revision history for this message
Alberto Mardegan (mardy) wrote :

I've also experienced this bug many times since OTA-10. I've seen it with the System Settings app and with Telegram, but that's probably because they are the only apps which I usually leave open in the background.

What happens is that, after I get back to these apps, they are completely frozen; if I rotate the phone, the apps also do rotate, but only as a static image, without properly resizing. They only way to bring them back to life is by swiping them off (to kill them) and restart them.

Changed in canonical-devices-system-image:
status: Incomplete → Confirmed
Changed in canonical-devices-system-image:
assignee: nobody → Michał Sawicz (saviq)
Revision history for this message
Michał Sawicz (saviq) wrote :

When anyone encounters this again, please post the output of:

$ ps aux | grep -i <app_name>

Where app_name is part of the frozen app.

Please also attach ~/.cache/upstart/unity8.log

Changed in unity8 (Ubuntu):
status: New → Incomplete
Changed in canonical-devices-system-image:
status: Confirmed → Incomplete
Revision history for this message
Michael Zanetti (mzanetti) wrote :

Also please note that there are 2 different cases described in this report:

a) The app freezes completely and never returns <- this is a bug
b) The app appears frozen and blurry for a couple of seconds and then restarts <- this is expected (OOM killer)

Try to distinguish between those two when adding more detail to this bug.

Revision history for this message
Thomas Meyssonnier (thomas-meyssonnier) wrote : Re: [Bug 1584348] app blocked after suspend

As far as I'm concerned, I'm talking about real freezes when I need to kill
and restart manually.
I also noticed apps being blurry and restarting spontaneously and took it
as a feature of the system; though it might be better if they would save
their status and restart where they were, but that's quite another matter.

Le mercredi 1 juin 2016 11:41:36 CEST, Michael Zanetti
<email address hidden> a écrit :
> Also please note that there are 2 different cases described in this
> report:
>
> a) The app freezes completely and never returns <- this is a bug
> b) The app appears frozen and blurry for a couple of seconds
> and then restarts <- this is expected (OOM killer)
>
> Try to distinguish between those two when adding more detail to this
> bug.
>

Revision history for this message
Josué (j2g2rp) wrote : Re: app blocked after suspend

@Michael I forgot to say that the last time that it happened to me (when i recorded the video) i also took some logs to track the bug, also the unity 8 log. You'll find attached.
Tell me if you need some other else, maybe I already have it. Ill try to do also what you are asking.

Revision history for this message
Thomas Meyssonnier (thomas-meyssonnier) wrote : Re: [Bug 1584348] app blocked after suspend

Hi,

I just upgraded to OTA-11 and it seems to get worse.
I was surprised so I didn't think to ps|grep at first but here is the unity
log.

What happened was that Dekko freezed (I think), was still running according
to Launcher but wouldn't focus if selected and not visible with right
swipe. I had to kill it with long press in Launcher and then restart.

I'll try to get the right PID next time, but if the misbehaviour shows up
in unity log it should be within 5mins before the end.

Thanks,
TM

Le mercredi 1 juin 2016 09:32:17 CEST, Michał Sawicz
<email address hidden> a écrit :
> When anyone encounters this again, please post the output of:
>
> $ ps aux | grep -i <app_name>
>
> Where app_name is part of the frozen app.
>
> Please also attach ~/.cache/upstart/unity8.log
>
> ** Changed in: unity8 (Ubuntu)
> Status: New => Incomplete
>
> ** Changed in: canonical-devices-system-image
> Status: Confirmed => Incomplete
>

Revision history for this message
Michał Sawicz (saviq) wrote : Re: app blocked after suspend

I think what you described is that the launcher thought the app was still running, but it wasn't, in fact?

It would be good to find out if the process was actually running, and what it state was in:

$ initctl list | grep dekko

Revision history for this message
Thomas Meyssonnier (thomas-meyssonnier) wrote : Re: [Bug 1584348] app blocked after suspend

Unfortunately the phone ran out of battery and shut down while I was
sleeping (it happens sometimes) so today initctl list has forgotten about
that specific instance (if I get things right).
Would that still be in a log file somwhere, by any chance ?

Also, possibly it's an altogether different issue, maybe it won't happen
again and maybe it's specific to dekko.

Le vendredi 3 juin 2016 10:15:31 CEST, Michał Sawicz
<email address hidden> a écrit :
> I think what you described is that the launcher thought the app was
> still running, but it wasn't, in fact?
>
> It would be good to find out if the process was actually running, and
> what it state was in:
>
> $ initctl list | grep dekko
>

Revision history for this message
Thomas Meyssonnier (thomas-meyssonnier) wrote :

It just happened again and the stated line returns nothing.
Didn't think to ps|grep but I guess the app wasn't running at all.
Attaching unity8.log.

Le vendredi 3 juin 2016 10:15:31 CEST, Michał Sawicz
<email address hidden> a écrit :
> I think what you described is that the launcher thought the app was
> still running, but it wasn't, in fact?
>
> It would be good to find out if the process was actually running, and
> what it state was in:
>
> $ initctl list | grep dekko
>

Revision history for this message
Michał Sawicz (saviq) wrote : Re: app blocked after suspend

So what was the problem exactly? You couldn't launch the app via the left-side launcher? Could you launch it via the Apps scope? Was it there on the right-edge spread?

Revision history for this message
Michał Sawicz (saviq) wrote :

Are there related .crash files in /var/crash? You may want to clear that dir and see what happens the next time you get this issue.

Revision history for this message
Thomas Meyssonnier (thomas-meyssonnier) wrote : Re: [Bug 1584348] app blocked after suspend

Sorry, I was sick recently and didn't reply to mail.
No crash files left, the only ones from dekko are from today, while I was
sleeping so I couldn't describe what happened.

I was talking about an application (only dekko so far) disappearing from
views (right swipe), also from initctl list, and still marked as active in
Launcher (left swipe), though clicking had no result. I had to kill it in
launcher and restart it. No idea how the apps scope would have behaved, I
hadn't thought of that.

It happened twice in a few days but now it doesn't seem to be happening
again. As I said I haven't been too much on mail these days, so maybe it's
going to occur again sometime, I'll post the info then if I can.

Le samedi 4 juin 2016 09:16:47 CEST, Michał Sawicz
<email address hidden> a écrit :
> Are there related .crash files in /var/crash? You may want to clear that
> dir and see what happens the next time you get this issue.
>

Michał Sawicz (saviq)
summary: - app blocked after suspend
+ Launcher thinking app is running still when it's dead
Changed in canonical-devices-system-image:
status: Incomplete → Triaged
Changed in unity8 (Ubuntu):
status: Incomplete → Triaged
Changed in canonical-devices-system-image:
importance: Undecided → High
Changed in unity8 (Ubuntu):
importance: Undecided → High
assignee: nobody → Michael Zanetti (mzanetti)
Changed in canonical-devices-system-image:
milestone: none → backlog
Revision history for this message
Thomas Meyssonnier (thomas-meyssonnier) wrote : Re: [Bug 1584348] Launcher thinking app is running still when it'sdead

It just happened again, and it seems very weird:
- app disappears completely (not visible in ps or initctl list, but no
crash log either)
- launcher thinks it's active, but clicking has no effect
- clicking in apps view gets it back immediately (I'm not sure it needs to
restart, have to pay more attention at that point next time); ps and
initctl list then find it, and still no crash log

???

Le mardi 7 juin 2016 23:23:57 CEST, Michał Sawicz
<email address hidden> a écrit :
> ** Summary changed:
>
> - app blocked after suspend
> + Launcher thinking app is running still when it's dead
>
> ** Changed in: canonical-devices-system-image
> Status: Incomplete => Triaged
>
> ** Changed in: unity8 (Ubuntu)
> Status: Incomplete => Triaged
>
> ** Changed in: canonical-devices-system-image
> Importance: Undecided => High
>
> ** Changed in: unity8 (Ubuntu)
> Importance: Undecided => High
>
> ** Changed in: unity8 (Ubuntu)
> Assignee: (unassigned) => Michael Zanetti (mzanetti)
>
> ** Changed in: canonical-devices-system-image
> Milestone: None => backlog
>

Revision history for this message
Michael Zanetti (mzanetti) wrote :

This has been fixed as part of ~mzanetti/unity8/alerting-pips

Should land in rc-proposed soonish

Changed in unity8 (Ubuntu):
status: Triaged → In Progress
Changed in canonical-devices-system-image:
status: Triaged → In Progress
Revision history for this message
Thomas Meyssonnier (thomas-meyssonnier) wrote :

Here, it freezed again, and then disappeared.
I quickly got a log of initctl list and then ps aux, but for ps the process
terminated before I wrote it to file (it did show up at first).

Here is the log, with corresponding crash log and unity8.log.

Application seemed to resume without restarting when started from apps
scope.

But Michael's answer sounds satisfying, maybe we should drop this for now,
hoping it gets merged backwards for stable users like me.

Thanks,
TM

Le mercredi 8 juin 2016 00:08:28 CEST, Michael Zanetti
<email address hidden> a écrit :
> This has been fixed as part of ~mzanetti/unity8/alerting-pips
>
> Should land in rc-proposed soonish
>
> ** Branch linked: lp:~mzanetti/unity8/alerting-pips
>
> ** Changed in: unity8 (Ubuntu)
> Status: Triaged => In Progress
>
> ** Changed in: canonical-devices-system-image
> Status: Triaged => In Progress
>

Revision history for this message
Thomas Meyssonnier (thomas-meyssonnier) wrote :

I just got a freeze from Navigator, so it still happens in current stable
(OTA-11).

Can't give the details because I have no idea of the application name
(Ubuntu Touch doesn't give much information about the underlying system,
sounds like a bad idea seeing as it's still beta, for what I've seen).

Should I go on reporting or is this bug fixed in the future, and should be
marked as such ?

Le mercredi 8 juin 2016 00:08:28 CEST, Michael Zanetti
<email address hidden> a écrit :
> This has been fixed as part of ~mzanetti/unity8/alerting-pips
>
> Should land in rc-proposed soonish
>
> ** Branch linked: lp:~mzanetti/unity8/alerting-pips
>
> ** Changed in: unity8 (Ubuntu)
> Status: Triaged => In Progress
>
> ** Changed in: canonical-devices-system-image
> Status: Triaged => In Progress
>

Revision history for this message
Michael Zanetti (mzanetti) wrote :

Thomas, it seems you are mixing two different things. One is apps that are crashing, the other is the Launcher (left side panel) not noticing that the app is gone after it crashed. the above linked branch fixes the issue in the launcher. When that lands (probably with OTA-12) the launcher will notice when an app is gone and update its state accordingly.

The other issue, that some apps are crashing in some cases, are different and should be reported separately for each application that is crashing.

Revision history for this message
Thomas Meyssonnier (thomas-meyssonnier) wrote :

Thanks for the explanation, it sound quite right.
However, the combination of the two makes things worse, and it's probably
what makes me react.
I guess I'm going to check the current bugs for Dekko as soon as I have the
time, seeing as it seems to be the real problem in my case.

Thanks, keep up the good work !
TM

Le jeudi 9 juin 2016 06:14:14 CEST, Michael Zanetti
<email address hidden> a écrit :
> Thomas, it seems you are mixing two different things. One is apps that
> are crashing, the other is the Launcher (left side panel) not noticing
> that the app is gone after it crashed. the above linked branch fixes the
> issue in the launcher. When that lands (probably with OTA-12) the
> launcher will notice when an app is gone and update its state
> accordingly.
>
> The other issue, that some apps are crashing in some cases, are
> different and should be reported separately for each application that is
> crashing.
>

Revision history for this message
Thomas Meyssonnier (thomas-meyssonnier) wrote : Re: [Bug 1584348] app blocked after suspend

Happened again, this time with webbrowser.
App freezes, is still reacheable from launcher and still alive, but no
response.
Here is freeze.log (ps + initctl list) and unity8.log. Time is about 5mins
before this message.

Le mercredi 1 juin 2016 09:32:17 CEST, Michał Sawicz
<email address hidden> a écrit :
> When anyone encounters this again, please post the output of:
>
> $ ps aux | grep -i <app_name>
>
> Where app_name is part of the frozen app.
>
> Please also attach ~/.cache/upstart/unity8.log
>
> ** Changed in: unity8 (Ubuntu)
> Status: New => Incomplete
>
> ** Changed in: canonical-devices-system-image
> Status: Confirmed => Incomplete
>

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

This bug was fixed in the package unity8 - 8.12+16.10.20160617-0ubuntu1

---------------
unity8 (8.12+16.10.20160617-0ubuntu1) yakkety; urgency=medium

  [ Michael Terry ]
  * Do not create Label/Icon if we don't need it
  * Fix Z-ordering of prompt surfaces (LP: #1586219)
  * Drop bottom edge tutorials completely and small fixes for other
    edges. (LP: #1565103)
  * Redo visuals for greeter prompt box. (LP: #1435923)
  * Make tutorial qmltests more robust. (LP: #1590810)
  * Stop showing an extra lockscreen in desktop unity8 sessions. (LP:
    #1582987)

  [ Albert Astals Cid ]
  * Improve dash plugin mock
  * Stabilize PreviewExpandableTest::test_all_widgets_height
  * Workaround QTBUG-53460
  * Split artShape code for cardTool card and regular card
  * Simplify the code since fixedArtSize code is mandatory for regular
    cards
  * Desktop stage: Support rotatesWindowContents (LP: #1547481)
  * Turn if if else into if elseif else
  * Fix leaks in QInputDeviceManagerPrivate::addDevice
  * Do not call |= on uninitialized sigterm.sa_flags
  * initialize udevMonitor
  * Make notifier and notifierFd function local variables
  * Fix crash if a component that is not an Item is given to
    sectionDelegate
  * Tests: Do not use dynamic_cast if we're not going to test it anyway
  * Minor coverity fixes
  * Fix warning about anchors.fill in ProportionalShape (LP: #1590963)
  * Make wait in cleanup() wait for snapTo animation to have finished

  [ Alexandros Frantzis ]
  * Improve the way notifications interact with power management (LP:
    #1570922)

  [ Andrea Cimitan ]
  * Correctly refresh cardcreator cache on artshapestyle changes (LP:
    #1588335)
  * Same tweaks we have for click scope now for libertine
  * add a timer to pull to refresh to work on small windows (LP:
    #1589060)

  [ Daniel d'Andrada ]
  * Clean up debug leftovers
  * Ensure mouse and window movement are pixel-aligned (LP: #1510382)
  * Fix SpreadDelegate rotation animations
  * No point in version-controlling files that are automatically
    generated
  * Center cursor on screen when it's first shown
  * Custom cursor name just have to start with "custom"
  * Work around AnimatedSprite infinite loop bug (LP: #1588929)

  [ Josh Arenson ]
  * Disable showDash when it is already shown. (LP: #1506708)
  * Add a timestamp to the dash log (LP: #1580074)
  * Add timestamp to unity8 log (LP: #1498169)

  [ Lukáš Tinkl ]
  * Implement keyboard shortcuts info panel
  * Implement window controls overlay activatable with 3 fingers tap
    (LP: #1489020)
  * Select correct Chinese input method for OSK in the wizard (LP:
    #1588633)

  [ Michael Zanetti ]
  * Add support for the launcher surface pips displaying the correct
    number of surfaces
  * Add support for the persistent alert state. (LP: #1575147, #1584348,
    #1586621)
  * send a Alt-release event on alt+tab instead of delaying it
    completely and invoking it later (LP: #1565236)

  [ Stephen M. Webb ]
  * added a new upstart $SESSION for unity8-desktop-session (LP:
    #1376715)

 -- Michael Terry <email address hidden> Fri, 17 Jun 2016 01:22:57 +0000

Changed in unity8 (Ubuntu):
status: In Progress → Fix Released
Michał Sawicz (saviq)
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
milestone: backlog → 12
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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