Icons lost from various apps after upgrade

Bug #1437355 reported by Neil McPhail
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-app-launch (Ubuntu)
Fix Released
High
Ted Gould

Bug Description

On upgrading my apps and operating system, I lost icons for the camera, gallery, tagger and weather apps. The icons were blank on the Apps scope and sidebar. The chain of events:

1) Got brand new bq phone last night. Added SIM in lower slot and microSD card. Charged it but did not switch it on
2) Switched on for first time this morning. Changed language settings, connected to wireless etc.
3) Added Ubuntu One and Google accounts
4) Made test phone call and played with scopes. All icons present
5) Took photo and looked at gallery app
6) Went to updates and selected "update all" for apps. Left phone to update (screen went off). Switched screen back on. Couple of apps still updating.

*** I don't remember whether I opened the sidebar or Apps scope at this point so don't know if icons were gone already ***

7) Selected "Update OS" and let it run in my pocket when taking dog for a walk
8) Checked phone - still on updating screen
9) Checked phone again: updated but icons for camera, gallery, tagger and weather apps.
10) Rebooted phone - icons still missing
11) "Pulled to refresh" App scope - icons still missing
12) Ask for help on #ubuntu-touch on freenode:

09:19 < mcphail> Got my bq phone yesterday (!) but after system update I've
                 lost icons for camera, gallery, tagger and weather. How can I
                 restore them?
09:26 < popey> mcphail: what version does it say in system settings -> about
               this phone -> OS.
09:26 < popey> Mine is Ubuntu 14.10 (r20)
09:27 < mcphail> popey: same as you
09:27 < popey> hmm
09:27 < popey> reboot it and see if it does it still
09:27 < popey> sounds very strange
09:27 < mcphail> popey: still same after reboot
09:28 < ogra_> mcphail, did you make it writable or tinker in any other way
               with it on the low level ?
09:29 < mcphail> ogra_: nothing. Charged it overnight. Switched it on for first
                 time this morning. Set up ubuntu 1 and google accounts.
                 Updated apps. Updated OS
09:29 < popey> is the wifi on?
09:30 < popey> in the app scope, what if you pull down to refresh?
09:30 < mcphail> popey: yes. wifi is on. Pull down on app scope doesn't refresh
                 the icons
09:30 < popey> only some icons missing, not all?
09:30 < ogra_> you mean you dont get new content or does it literally not
               refresh the scope ?
09:31 < mcphail> ogra_: the scope rereshes but the icons don't reappear
09:32 < mcphail> popey: just missing camera, gallery,tagger and weather
09:39 < mcphail> popey: ogra_: anything you would like me to do with this
                 current image in the meantime which would help with debugging?
09:40 < popey> do you have a usb cable? can you adb shell into it?
09:40 < popey> be good to extract the unity8 logs I think
09:40 < mcphail> i'll enable dev options
09:40 < mcphail> ok, have adb shell
09:41 < popey> if you can just "mkdir ~/phablet_logs ; adb pull
               /home/phablet/.cache/upstart ~/phablet_logs" we can look at
               them later
09:41 < popey> also tail ~/.cache/upstart/unity8.log and watch when you pull
               down to refresh, see if you get any errors
09:43 < mcphail> popey: nothing added in the refresh
09:45 < mcphail> lots of camera icon erros in the logs
09:45 < popey> unity8-dash.log ?
09:45 < mcphail> application-click-com.ubuntu.camera_camera_3.0.0.516.log
09:46 < popey> that log gets written when the actual camera app is running
09:46 < mcphail> and unity8-dash
09:46 < mcphail> 234:Invalid size for QUrl(
"file:///opt/click.ubuntu.com/.click/users/phablet/com.ubuntu.camera/share/icons/camera-app.svg" ) QSize(-1, -1)
09:46 < popey> anything interesting in unity8-dash.log ?
09:52 < popey> mcphail: can you get a screenshot of these missing icons?
10:00 < popey> ok, lets take one of them for now, camera.
10:01 < popey> phablet@ubuntu-phablet:~$ click list | grep camera
10:01 < popey> com.ubuntu.camera 3.0.0.516
10:01 < popey> we're on the same version, right?
10:01 < mcphail> popey: yes
10:03 < popey> go to .local/share/applications
10:03 < mcphail> yep
10:03 < popey> cat *camera*
10:04 < popey> should be one big desktop file
10:04 < popey> Icon=/usr/share/click/preinstalled/.click/users/@all/com.ubuntu.camera/share/icons/camera-app.svg
10:04 < popey> so ls that file, does it exist?
10:04 < popey> ls -l
/usr/share/click/preinstalled/.click/users/@all/com.ubuntu.camera/share/icons/camera-app.svg
10:04 < popey> -rw-r--r-- 1 clickpkg clickpkg 903965 Feb 18 18:39
/usr/share/click/preinstalled/.click/users/@all/com.ubuntu.camera/share/icons/camera-app.svg
10:05 < popey> if you md5sum it, you should get 7e93fe8ae1dd4cf68de9d89ff60d78f5
10:05 < mcphail> popey: my Icon path is different in the camera desktop file
10:05 < mcphail> Icon=/opt/click.ubuntu.com/.click/users/phablet/com.ubuntu.camera/share/icons/camera-app.svg
10:05 < popey> huh, interesting
10:06 < mcphail> md5sum:
/opt/click.ubuntu.com/.click/users/phablet/com.ubuntu.camera/share/icons/camera-app.svg: No such file or directory
10:06 < popey> aha!
10:06 < mcphail> popey: your file exists and has correct md5sum
10:07 < ogra_> yeah, that path is definitely wrong
10:07 < popey> but the .desktop file points to the "wrong" one for you
10:07 < popey> what makes that .desktop file? click?
10:08 < ogra_> which one are you looking at exactly now ?
10:08 < ogra_> (sorry, had a reconnect)
10:08 < mcphail> popey: actually, do you mean I should have a file
                 "camera.desktop"? I only have
                 "com.ubuntu.camera_camera_3.0.0.516.desktop"
10:10 < ogra_> what exact desktop file are you looking at ?
10:10 < mcphail> com.ubuntu.camera_camera_3.0.0.516.desktop
10:10 < ogra_> (note that click packages can have multiple ones)
10:10 < ogra_> in which path
10:10 < mcphail> ~/.local/share/applications
10:11 < mcphail> $ ls | grep camera
10:11 < mcphail> com.ubuntu.camera_camera_3.0.0.516.desktop
10:11 < popey> com.ubuntu.camera_camera_3.0.0.516.desktop is the only one I have
10:11 < popey> 66e4ee3daf690a95e19eb47f6fd995b3 is the md5sum
10:12 < popey> yours wont match that as you have a different icon path
10:12 < ogra_> well, that file is created by upstart-app-launch i think
10:12 < mcphail> popey: yep
10:12 < popey> we need to track this in a bug somewhere.
10:12 < ogra_> err
10:12 < ogra_> ubuntu-app-launch i shopuld say nowadays :)
10:13 < ogra_> it should be re-created if you remove it and reboot
10:13 < popey> logs for that are in ~/.cache/ubuntu-app-launch
10:13 < popey> phablet@ubuntu-phablet:~/.cache/ubuntu-app-launch/desktop$ ls -l
               *cam*
10:13 < popey> lrwxrwxrwx 1 phablet phablet 84 Mar 25 12:07
               com.ubuntu.camera_camera_3.0.0.516.desktop ->
/usr/share/click/preinstalled/.click/users/@all/com.ubuntu.camera/camera-app.desktop
10:13 < popey> what do you have in there mcphail
10:13 < popey> (no logs actually, just symlinks)
10:14 < mcphail> lrwxrwxrwx 1 phablet phablet 84 Jan 30 15:28
10:15 < mcphail> Jan 30?
10:15 < popey> march 25 here
10:16 < mcphail> Is this because I updated the camera app before doing the
                 system update?
10:16 < ogra_> yeah, that doesnt look like it was properly upgraded
10:16 * mcphail can't remember if camera was one of the ones needing update
10:16 < popey> interesting
10:16 < popey> obviously this shouldn't happen.
10:16 < mcphail> natch
10:17 < popey> not sure where a bug should be filed tbh
10:17 < mcphail> Should I try a "reset launcher"?
10:18 < ogra_> sergiusens, do you remember what sets these .desktop file links
               for preinstalled clicks ? is that click itself via a hook, or
               ubuntu-app-launch later ?
10:24 < popey> mcphail: i would be inclined to get a bug filed in
               https://launchpad.net/ubuntu/+source/ubuntu-app-launch/+bugs and
               we can poke someone with it.
10:25 < mcphail> popey: ok - will do that later today.
10:29 < popey> the other thing you can do
10:29 < popey> is remove and install each app in turn
10:29 < popey> long press on icon, uninstall, then find it in the store and
               re-install it
10:29 < mcphail> popey: can I remove system apps?
10:29 < popey> you should be able to remove anything
10:30 < mcphail> popey: camera icon is back!
10:30 < popey> after doing what?
10:31 < mcphail> popey: uninstall/reinstall

So, uninstall/reinstall seems to fix problem. Don't know if it happened because the screen switched off during apps update or if something went wrong with system update. Working well now.

Tags: bq

Related branches

Revision history for this message
Neil McPhail (njmcphail) wrote :
Revision history for this message
Neil McPhail (njmcphail) wrote :

Screenshot

Revision history for this message
Neil McPhail (njmcphail) wrote :

Screenshot

Revision history for this message
Neil McPhail (njmcphail) wrote :

Screenshot

tags: added: bq
Revision history for this message
Ted Gould (ted) wrote :

The issue is likely based on how we decided to create the desktop file cache. We decide based on whether it is current or not. In this case it is current by time stamp, but infact the same version of the app has been installed in a different directory. When the overridden one is subsequently removed, we don't detect that case.

So the fix would be to store the application directory in the desktop file cache and check that as well. It means the update will be slower as all files will have to be opened instead of just having their timestamp checked, but considering it would only happen when installing or removing applications it is likely not of issue.

Ted Gould (ted)
Changed in ubuntu-app-launch (Ubuntu):
status: New → Triaged
importance: Undecided → High
assignee: nobody → Ted Gould (ted)
Ted Gould (ted)
Changed in ubuntu-app-launch (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-app-launch - 0.4+15.04.20150410-0ubuntu1

---------------
ubuntu-app-launch (0.4+15.04.20150410-0ubuntu1) vivid; urgency=medium

  [ Ted Gould ]
  * Have desktop hook verify source file still exists (LP: #1437355)
 -- CI Train Bot <email address hidden> Fri, 10 Apr 2015 16:58:30 +0000

Changed in ubuntu-app-launch (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Josef Andersson (northar) wrote :

I just bought a new bq aquarius, updated, and some icons are gone. This bug should be repopened i guess.
Also, people are asking for a temporary fix here.https://askubuntu.com/questions/623011/ubuntu-touch-all-icon-lost-after-upgrade

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.