[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-12-29 Thread vigilian
answers here since nobody have mentioned the 0.10 version.
http://askubuntu.com/questions/854168/how-i-can-fix-appstream-cache-
update-completed-but-some-metadata-was-ignored-d

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-12-18 Thread vigilian
vigilian@docker:/tmp/asfix$ sudo dpkg -i *.deb
(Lecture de la base de données... 234098 fichiers et répertoires déjà 
installés.)
Préparation du dépaquetage de appstream_0.9.4-1ubuntu1_amd64.deb ...
Dépaquetage de appstream (0.9.4-1ubuntu1) sur (0.9.4-1ubuntu1) ...
Préparation du dépaquetage de libappstream3_0.9.4-1ubuntu1_amd64.deb ...
Dépaquetage de libappstream3:amd64 (0.9.4-1ubuntu1) sur (0.9.4-1ubuntu1) ...
Paramétrage de libappstream3:amd64 (0.9.4-1ubuntu1) ...
Paramétrage de appstream (0.9.4-1ubuntu1) ...
AppStream cache update completed, but some metadata was ignored due to errors.
Traitement des actions différées (« triggers ») pour man-db (2.7.5-1) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.23-0ubuntu5) 
...
vigilian@docker:/tmp/asfix$ sudo appstreamcli refresh --force
AppStream cache update completed, but some metadata was ignored due to errors.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-12-18 Thread vigilian
even with the fix on my production server I still have some problems. :

@docker:~$ sudo apt update
[sudo] Mot de passe de vigilian : 
Atteint:1 http://ppa.launchpad.net/x2go/stable/ubuntu xenial InRelease
Atteint:2 http://be.archive.ubuntu.com/ubuntu xenial InRelease  
 
Réception de:3 http://be.archive.ubuntu.com/ubuntu xenial-updates InRelease 
[102 kB] 
Atteint:4 http://download.virtualbox.org/virtualbox/debian xenial InRelease 
  
Réception de:5 http://be.archive.ubuntu.com/ubuntu xenial-backports InRelease 
[102 kB]
Atteint:6 https://apt.dockerproject.org/repo ubuntu-xenial InRelease
  
Réception de:7 http://be.archive.ubuntu.com/ubuntu xenial-updates/main amd64 
Packages [441 kB]   
Réception de:8 http://be.archive.ubuntu.com/ubuntu xenial-updates/main i386 
Packages [433 kB]   
Réception de:9 http://be.archive.ubuntu.com/ubuntu xenial-updates/main amd64 
DEP-11 Metadata [303 kB]   
Réception de:10 http://be.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 
64x64 Icons [186 kB]  
Réception de:11 http://be.archive.ubuntu.com/ubuntu xenial-updates/universe 
amd64 DEP-11 Metadata [121 kB]   
Réception de:12 http://be.archive.ubuntu.com/ubuntu xenial-updates/universe 
DEP-11 64x64 Icons [145 kB]   
Réception de:13 http://be.archive.ubuntu.com/ubuntu xenial-updates/multiverse 
amd64 DEP-11 Metadata [2.516 B]
Réception de:14 http://be.archive.ubuntu.com/ubuntu xenial-backports/main amd64 
DEP-11 Metadata [208 B]
Réception de:15 http://be.archive.ubuntu.com/ubuntu xenial-backports/universe 
amd64 DEP-11 Metadata [212 B]
Réception de:16 http://be.archive.ubuntu.com/ubuntu xenial-backports/multiverse 
amd64 DEP-11 Metadata [212 B]
Réception de:17 https://download.01.org/gfx/ubuntu/16.04/main xenial InRelease 
[3.651 B]   
Réception de:18 http://security.ubuntu.com/ubuntu xenial-security InRelease 
[102 kB]   
Réception de:19 http://security.ubuntu.com/ubuntu xenial-security/main amd64 
DEP-11 Metadata [68,2 kB]
Réception de:20 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 
64x64 Icons [48,0 kB]
Réception de:21 http://security.ubuntu.com/ubuntu xenial-security/universe 
amd64 DEP-11 Metadata [19,4 kB]
Réception de:22 http://security.ubuntu.com/ubuntu xenial-security/universe 
DEP-11 64x64 Icons [25,6 kB]
Réception de:23 http://security.ubuntu.com/ubuntu xenial-security/multiverse 
amd64 DEP-11 Metadata [212 B]
2.103 ko réceptionnés en 5s (392 ko/s)
AppStream cache update completed, but some metadata was ignored due to errors.
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances   
Lecture des informations d'état... Fait
All packages are up to date.
W: https://download.01.org/gfx/ubuntu/16.04/main/dists/xenial/InRelease: 
Signature by key 09D6EF97BFB38E916EF060E756A3DEF863961D39 uses weak digest 
algorithm (SHA1)
vigilian@docker:~$ sudo apt dist-upgrade
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances   
Lecture des informations d'état... Fait
Calcul de la mise à jour... Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
@docker:~$ sudo apt update
Atteint:1 http://ppa.launchpad.net/x2go/stable/ubuntu xenial InRelease
Atteint:2 http://download.virtualbox.org/virtualbox/debian xenial InRelease 

   
Atteint:3 http://be.archive.ubuntu.com/ubuntu xenial InRelease  

   
Atteint:4 http://be.archive.ubuntu.com/ubuntu xenial-updates InRelease  
  
Atteint:5 http://be.archive.ubuntu.com/ubuntu xenial-backports InRelease
  
Atteint:6 https://apt.dockerproject.org/repo ubuntu-xenial InRelease
  
Réception de:7 https://download.01.org/gfx/ubuntu/16.04/main xenial InRelease 
[3.651 B]
Atteint:8 http://security.ubuntu.com/ubuntu xenial-security InRelease
3.651 o réceptionnés en 0s (4.899 o/s) 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances   
Lecture des informations d'état... Fait
All packages are up to date.
W: https://download.01.org/gfx/ubuntu/16.04/main/dists/xenial/InRelease: 
Signature by key 09D6EF97BFB38E916EF060E756A3DEF863961D39 uses weak digest 
algorithm (SHA1)

as you see I still have this bug but not all the time. I've already, 

[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-11-07 Thread Neil Mayhew
@nader-f: You're probably using an out-of-date ISO for your VM. This
issue was fixed in 16.04 a long time ago. Be sure to use the 16.04.1 ISO
and not the original 16.04 ISO in the future. The [change summary for
16.04.1][1] specifically mentions this bug as having been fixed.

[1]:
https://wiki.ubuntu.com/XenialXerus/ReleaseNotes/ChangeSummary/16.04.1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-11-07 Thread Nader Aeinehchi
I had the same problem in a fresh copy of Ubuntu 16.04 running as a
VMWare Guest.

I followed the instructions as #24.  Everything works now.  Thanks a lot
for the instructions.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-07-20 Thread Usievaład Čorny
For me issue was fixed by mixing comments #77 and #24.

PS: can hardly imagine that such bugs live on stable channel :\

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-07-19 Thread Poldi
I can also confirm that comment 24 has fixed the issue for me. 
Thanks

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-23 Thread Fredrik Staxäng
I got this when I tried to update today. This fixed it for me:

sudo pkill appstreamcli
sudo rm /usr/bin/appstreamcli

Then the updates worked, and a new /usr/bin/appstreamcli got installed.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-21 Thread Ljiljan Veselinovic
In order to install IBM SPSS, I had to install "libstdc++5" package. I
noticed this bug was happening after installing this package and IBM
SPSS. After removing libstdc++5 (not required to use IBM SPSS, just to
install it), I didn't experience this bug. However, this all happened in
last two days, so it could be that Ubuntu updates fixed the issue.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread Greg
I can also confirm that comment 24 has fixed the issue for me.  Thanks
All

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread Jacob Taylor
I can confirm the steps in comment 24 fixed the issue. Thanks!

(and now everyone waits for uplift from -proposed)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread Oliver Leitner
i can confirm this being present in xenial.

it seems to correlate with a system hard reset, maybe that system hard
reset breaks the "database" behind the program? any way to have it
autocheck for integrity every n loads or after a hard reset?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread Will Cooke
The issue causing the refresh to hang is fixed in the archive, so
everyone should be able to upgrade without problem.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread Matthew Ames
Following on for #70, one cannot install new packages for appstream if
the packages cannot be refreshed. What will be done to advise users how
to get around this problem. Finding this bug report was more luck than
skill.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread Arup
The big issue here is that fresh installs all hang due to this error.
How do we get past that? Would an updated installation package be issued
by Canonical to fix this?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread Maik
#24 worked for me. thanks matthias!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread Will Cooke
If you've experienced this issue today (20 May 2016) then it should now
be fixed in the archives.  Please allow a little time for the changes to
replicate around. You can then re-enable backports if you wish.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread HarzG
#56 & #60: Thanks Mikko & kimr - Disabling the xenial-backports is working for 
me to. 
In a 16.04 live-system backports are disabled. By a fresh install of 16.04 
backports are ENabled? 
https://help.ubuntu.com/community/UbuntuBackports
This is not an "user issue" because a lot of users never changed the backports 
ON/OFF.
It's a showstopper for 16.04 LTS.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread ianrumford
#24 worked for me.  Thanks to all.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread Me
#24 worked for me BUT with the addition of removing leftover lock files first:

sudo rm /var/lib/dpkg/lock 
sudo rm /var/cache/apt/archives/lock

Dangerous if anything apt related still running - but I think a lot of
people will CTRL-C their way out of "apt-get update" of somehow try to
kill a hung update-manager.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread Launchpad Bug Tracker
This bug was fixed in the package appstream - 0.9.4-1ubuntu1

---
appstream (0.9.4-1ubuntu1) xenial; urgency=medium

  * iconfinding-refactor.patch: Fix double-free corruption which
happens with certain metadata. (LP: #1574896)
  * fix-decompression.patch: Fix hang when refreshing the metadata
cache. (LP: #1579712)

 -- Matthias Klumpp   Tue, 26 Apr 2016 10:18:14 +0200

** Changed in: appstream (Ubuntu Xenial)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread doekia
Too my lap was burning due this bug

Solution in post #30 was the only way to fix the issue for me.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread RH
+1 the updated package posted by Matthias is working for me denial 16.04
xubuntu.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread kimr
Disabling the xenial-backports solves the issue for me. Take note to not
reload the package list when the software asks you to, as it
will hang.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread kajhaul
For some reason Kubuntu users seems able to run 'Update Manager' without
the 100% CPU issue. Otherwise I agree: this bug is a showstopper for the
average (non-geek) user.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread fubuntu
It took quite some time for me to find this solution.  When the average
user starts googling this, they are going to find all sorts of things
which do not apply, for example:

http://itsfoss.com/fix-update-errors-ubuntu-1404/
https://askubuntu.com/questions/615203/software-updates-stuck-downloading-after-15-04-upgrade

What a nightmare!  This demonstrates why the system update utility needs
to include a twitter-type client to inform the user of emerging issues
related to broken update functionality.  How else will the average user
cope with a new issue like this, when there are so many possible causes
for the same type of problem?

Yes I know, it poses the question of who should have the authority to
broadcast alerts.  Perhaps a majority vote by a jury of lead developers
or team managers who could activate the feature by signing a proposed
broadcast message with their PGP key.  Moderators of the forum or the
bug tracker would then submit proposals for broadcast messages to a
mailing list that goes to the jury.  This would eliminate the
possibility of using the broadcast system for spam.

In any case, the manual fix in the description is not sufficiently clear: many 
people who are capable of typing terminal commands will not know to replace 
'amd64' with 'i386' or whatever is appropriate.  A script which automates this 
might be a better solution.
_

@neil.mayhew

> I'm not sure what happens if someone is using Synaptic or Gnome
Software. I assume it would be necessary to use System Monitor to kill
off appstreamcli.

@olliniem

> forever inactive window with no possibility to interfere

Best quick recovery method is to launch 'top' in terminal & kill that
process ID.  It does affect Software Center, Software Updater, adding
PPA's, et cetera.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread Stefan Leitner
Disabling the xenial-backports is working for me to! Thanks Mikko
Niemelä!

I really wonder how unexperienced user will deal with that problem!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread Mikko Niemelä
I was able to resolve the problem by disabling backports, it allowed me
to do apt-get update which previously hanged up.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-20 Thread Olli Niemi
I'm running Ubuntu Gnome and the user experience is horrible with this
bug when using the UI: "Software Updater" has "X" and "Stop" buttons:
"Stop" button stays gray (inactive) during the update (what is the point
of having gray Stop buttons?). It is even worse if the user (such as me)
tried to change the repository, thinking there might be something wrong
with that: "Software & Updates" -> "Ubuntu Software" -> "Download from:"
[select your mirror] -> "Choose Server" -> "Close". Then there is the
notification "The information about available software is out-of-date"
-> "Reload". And the result: forever inactive window with no possibility
to interfere.

I don't know how this is handled by the UI in the regular Ubuntu but
this case seems to be a good test case for user interaction.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-19 Thread Neil Mayhew
The simplest workaround seems to be to use Ctrl-C when apt update hangs
at the end. It's already done most of the work, and this just aborts the
running of appstreamcli at the end. You can then go ahead and update any
binary packages built from the appstream source package (ie any of
appstream appstream-doc appstream-index gir1.2-appstream libappstream-
dev libappstream3 libappstreamqt-dev libappstreamqt1 that are already
installed). The use of appstreamcli in the postinst shouldn't hang
because the new versions of appstreamcli and libappstream.so.3 will
already be in place.

However, using Ctrl-C is possible only when using the command line. I'm
not sure what happens if someone is using Synaptic or Gnome Software. I
assume it would be necessary to use System Monitor to kill off
appstreamcli. I'm concerned that we could see breakage in a very large
number of Xenial installations, all of which would require manual
intervention to get them unstuck.

The fact that this is happening now, when it hasn't been reported in the
past 3 years, must be due to a subtle change in the execution
environment, maybe due to updates in other shared libraries that
appstreamcli uses. The problem is a result of reading uninitialized
memory, and in the past it must have been pure luck that the memory
always contained zeroes.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-19 Thread Dennis W.
i had problems today to make "sudo apt update" it don't went away so
that i can got "sudo apt dist-upgrade"

i can terminate appstreamcli in system-monitor but that loading not all
packets

This fix has "repaired" the Problem, i quete the #24

After this working there came any Pakets it wont's to have install, is
that normally and or regulate Updates ?

"Weird, I wonder what happened that many people are experiencing this now...
Removing `/usr/bin/appstreamcli` is fine if you install the fixed package 
afterwards.

To install this manually, please do (for amd64, adjust URLs for other
architectures):

```
cd /tmp && mkdir asfix
cd asfix
wget 
https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb
wget 
https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb
sudo dpkg -i *.deb
```

This should solve the issue. Please report back if this is fixed, or if
you are still experiencing issues!"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-19 Thread Set Hallstrom
Might be completely unrelated, but i noticed most mirrors have this
weird loop:
http://ubuntu.mirror.su.se/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/ubuntu/

i write "most", but I haven't yet found any mirror that hasn't got it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-19 Thread Edwin Khoo
This bug appears to also affect clean 16.04 installs as of today.
Specifically, the installer gets stuck at "Retrieving file 56 of 56".

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-19 Thread Boenadi Agustian
As per Matthias' comment #24, not working for i386 all package for i386
still get stuck and appstreamcli get 100%

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-19 Thread Boenadi Agustian
As per Matthias' comment #24, not working for i386

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-19 Thread Deep Kumar Halwai
As per Matthias' comment #24, deleting the rm /usr/bin/appstreamcli and
installing the .deb packages worked for me as well.

Thank you Matthias'

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-19 Thread Hélio Nunes
Matthias' #24 workaround works for me. Thank you. But how the amateur,
non-technical, regular user of a !!!LTS!!! release will deal with this
bug? Fixed for me and for (lets see) 300 users... and the others?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1579712] Re: Refresh hangs indefinitely, appstreamcli using 100% CPU

2016-05-19 Thread Matthias Klumpp
I made the summary less technical, so maybe fewer duplicates of this get 
reported when people go through the bug list. I also added instructions on how 
to fix this immediately without removing packages or moving config files around 
to the bug description, so people who find this bug don't need to read the 
whole thread to get their machines working properly again.
Cheers,
Matthias


** Summary changed:

- Refresh hangs due to strdup on non-NULL terminated string
+ Refresh hangs indefinitely, appstreamcli using 100% CPU

** Description changed:

  [Impact]
  
-  * The cache refresh is blocked on a strdup on a non-NULL-terminated string 
in some very rare occasions (very rare because this bug is present for almost 
3y without a single report).
-  * Fixing this bug resolves the issue for people who might experience it.
-  * See https://github.com/ximion/appstream/issues/35 for details.
+  * The cache refresh is blocked on a strdup on a non-NULL-terminated string 
in some very rare occasions (very rare because this bug is present for almost 
3y without a single report).
+  * Fixing this bug resolves the issue for people who might experience it.
+  * See https://github.com/ximion/appstream/issues/35 for details.
  
  [Test Case 1]
  
-  * Run `sudo appstreamcli refresh --force`
-  * The AppStream cache should be updated, no change in behavior should be 
seen.
+  * Run `sudo appstreamcli refresh --force`
+  * The AppStream cache should be updated, no change in behavior should be 
seen.
  
  [Test Case 2]
  
-  * In case you were experiencing the almost-infinite hang when running
+  * In case you were experiencing the almost-infinite hang when running
  `sudo appstreamcli refresh --force`, this issue should be fixed with the
  SRU.
  
  [Regression Potential]
  
-  * Very low, since this only fixes the decompression code. There should
+  * Very low, since this only fixes the decompression code. There should
  be no sideeffects of that (given that the patch itself doesn't break
  anything, which it shouldn't, since it has been tested upstream for a
  while)
  
  [Other Info]
  
-  * This fix has been applied upstream: 
https://github.com/ximion/appstream/commit/f33c520c37e2ba51d92402220250b8d501a2bf43
-  * A smaller version of the patch (one-liner) is available, at the expense of 
not having reduced memory usage: 
https://github.com/ximion/appstream/commit/378941787d3584b3eb31a6ebe40e0aacc10e180a
+  * This fix has been applied upstream: 
https://github.com/ximion/appstream/commit/f33c520c37e2ba51d92402220250b8d501a2bf43
+  * A smaller version of the patch (one-liner) is available, at the expense of 
not having reduced memory usage: 
https://github.com/ximion/appstream/commit/378941787d3584b3eb31a6ebe40e0aacc10e180a
+ 
+ 
+ 
+ /!\ Installing the bugfix from xenial-proposed, without going through APT:
+ To install the fixed packages manually, please execute the following commands 
(for amd64, adjust URLs for other architectures):
+ 
+ ```
+ cd /tmp && mkdir asfix
+ cd asfix
+ wget 
https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb
+ wget 
https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb
+ sudo dpkg -i libappstream3*.deb
+ sudo dpkg -i appstream*.deb
+ ```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579712

Title:
  Refresh hangs indefinitely, appstreamcli using 100% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/appstream/+bug/1579712/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs