click apps in Home scope disappear on flaky network connections

Bug #1249255 reported by Michael Zanetti
44
This bug affects 5 people
Affects Status Importance Assigned to Milestone
unity-scope-click (Ubuntu)
Fix Released
High
Alejandro J. Cura
unity8 (Ubuntu)
Fix Released
Critical
Albert Astals Cid

Bug Description

Every once in a while all my apps disappear from the Apps scope.

There's only 9 apps left (the ones that are also shown in the home scope). All the others are gone. Also the "More Suggestions" category is missing in that state.

This state sometimes only results in a flickering of the scope and apps return imediately, but sometimes I have to wait up to a minute or two until my apps appear again.

description: updated
kevin gunn (kgunn72)
Changed in unity8:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → Albert Astals Cid (aacid)
Revision history for this message
Albert Astals Cid (aacid) wrote :

I guess you have no easy way of reproducing this, no?

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

hmm, not really. I think switching between network connections increases the changes of this happening.

dobey (dobey)
affects: unity-scope-click → unity-scope-click (Ubuntu)
Revision history for this message
Michał Sawicz (saviq) wrote :

What I think must be happening is that the click scope has no connection to the interwebs, and fails, in some way, to deliver any results beyond those basic ones.

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

Yeah. same here. However, it's not just about not having a connection. Intentionally disconnecting the device makes just "More suggestions" go away (which is correct) but already installed apps are still around. This must be something like loosing the connection in the middle of an update or the like, which messes up with the state so that even installed apps disappear.

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

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

Changed in unity-scope-click (Ubuntu):
status: New → Confirmed
Revision history for this message
dobey (dobey) wrote :

How does one force this to happen? It is working fine on my Nexus 7.

Revision history for this message
Alejandro J. Cura (alecu) wrote :

> How does one force this to happen?

Sergio mentions in bug #1268009 a way to trigger this behavior:

"It can be easily reproduced while on wifi by changing the nameserver in /etc/resolv.conf to some non dns servers address"

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

It fails easily on flaky networks, network timeouts.
I was reproduced fine for me when changing the DNS settings.

If you really don't have a connection, everything works fine; the problem seems to be tying the uninstalled app logic with the ones that are installed.

Can we change the title reflect that the installed click apps are the ones that dissappear?

Revision history for this message
dobey (dobey) wrote :

@Sergio, if you can easily reproduce this issue, can you ensure G_MESSAGES_DEBUG=all is set in the environment, and attach the resulting ~/.cache/unity-scope-click.log file here, when this happens?

dobey (dobey)
Changed in unity-scope-click (Ubuntu):
importance: Undecided → High
dobey (dobey)
Changed in unity-scope-click (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

I tried to get the debug output by adding the env var to the unity8.conf for upstart
I deleted the existing unity-scope-click log file but it was never recreated after I set up the test.

This is easy to reproduce by setting nameserver 10.0.0.0 in /etc/resolv.conf and rebooting.

The symptom is when you first expand the installed apps you see only the first 9. After around 10-20 secs the rest of the apps appear, then 10 secs later it goes back to just 9, etc.

Revision history for this message
Sergio Schvezov (sergiusens) wrote : Re: [Bug 1249255] Re: all but 9 apps disappear for minutes

On 22/01/14 19:16, Pat McGowan wrote:
> I tried to get the debug output by adding the env var to the unity8.conf for upstart
> I deleted the existing unity-scope-click log file but it was never recreated after I set up the test.
>
> This is easy to reproduce by setting nameserver 10.0.0.0 in
> /etc/resolv.conf and rebooting.
>
> The symptom is when you first expand the installed apps you see only the
> first 9. After around 10-20 secs the rest of the apps appear, then 10
> secs later it goes back to just 9, etc.
>

This may be a similar symptom as seen on the emulator; nothing from the
click scope is shown until you perform a search.

My original bug comment was to not tie the apps available on the store
to the apps installed to avoid the network dependency (success or fail)
which introduces a wait of comparable timing when compared to the legacy
apps.

Revision history for this message
dobey (dobey) wrote : Re: all but 9 apps disappear for minutes

@Sergio, the listing of installed apps has no dependency on the network being available or talking to the server working. The timeout that deals with the network not being ready for available apps, is only set up and used by the network-using code. However, the Unity API for invalidating results does not have any fine grained control, so it will invalidate all results for the apps scope. This means that when the timeout is hit, a search for installed and available apps will recur. The installed apps should continue to be there. They might flicker (go away and come back), due to the way Unity works, but they should definitely not be going away and not re-appearing.

I was staring at the code for quite some time and trying to figure out how the situation described in this bug was even possible, and I see no way it can happen, from within the scope itself. I can only guess that something in libunity or the dash itself, is not properly re-displaying the results.

However, a full log with the debug info is needed to help determine that.

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

So it might be working, just super slow http://paste.ubuntu.com/6810683/

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Video displaying the flicker:
http://ubuntuone.com/0Nv91Gr3cmT1RsohQJw9sq

summary: - all but 9 apps disappear for minutes
+ click apps in Home scope disappear on flaky network connections
Revision history for this message
Albert Astals Cid (aacid) wrote :

I'd say i fixed this with http://bazaar.launchpad.net/~unity-team/unity8/trunk/revision/666 Has anyone been able to reproduce it after it?

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

The symptom is still the same on build 188 from Feb 17

This is very easy to reproduce using comment #10

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

I kept my device with data roaming at the previous sprint; launching apps has been expensive ;-)

Changed in unity-scope-click (Ubuntu):
status: Incomplete → Confirmed
Changed in unity-scope-click (Ubuntu):
assignee: nobody → Alejandro J. Cura (alecu)
status: Confirmed → In Progress
Revision history for this message
Albert Astals Cid (aacid) wrote :

Can you guys still reproduce this now that new-scopes have landed?

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

Looks good to me now.

Revision history for this message
Dave Morley (davmor2) wrote :

So from what I can tell all the installed apps now remain visible in the installed section.

However the also available section has a long list of name but no icons. Not sure if this is expected or if it is an issue.

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

Ok. So ever since I've set up a WiFi hotspot here (which requires to log in through a website in the browser) I can reliably reproduce this here on image 250. That is, all the click apps are gone and do not appear until I log into the website.

With the same hotspot connection, the new-scopes (image 269) do not show this problem => Putting to fix released

@Dave: Yes, icons can't be fetched when the network connection breaks down. There is work in planned to cache them.

Changed in unity8:
status: Triaged → Fix Released
Revision history for this message
Dave Morley (davmor2) wrote :

I am happy to confirm this fixed then :)

dobey (dobey)
Changed in unity-scope-click (Ubuntu):
status: In Progress → Fix Released
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.