category items not displayed sometimes

Bug #607681 reported by ScayTrase
26
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Cardapio
Fix Released
Medium
Unassigned

Bug Description

cardapio fails to display any program in categories ( mostly after update ). Re-setting it to panel helps, but it can happen again. looks like attached screenshot

Ubuntu 10.04
Architecture: amd64
Version: 0.9.128-ubuntu1

Revision history for this message
ScayTrase (scaytrase) wrote :
Revision history for this message
Thiago Teixeira (tvst) wrote :

Oh, wow, I never experienced anything even remotely similar to that. Do you know what steps I can take to reproduce it on my machine?

Revision history for this message
ScayTrase (scaytrase) wrote :

Well.
0. To make experiment clean run all updates on your machine before you start ( to exclude situation when updated packages may broke cardapio).
1. Re-set cardapio to gnome panel. It should work fine and flawlessly.
2. Simply run terminal and start sudo apt-get update.
3. You will get cardapio working as I posted. you can press any categories and they not only will be empty, but also they could be pressed all together.

Anyway resetting cardapio helps.

I can post any command output you need.

Revision history for this message
Thiago Teixeira (tvst) wrote :

Oh, so this only happens when you update your package list?

That's very strange indeed. And I still can't reproduce the bug on my machines.

The only part of Cardapio that has anything to do with the package list is the Software Center plugin. So can you try deactivating it to see if the bug goes away?

Also, another question: on step 2 of your previous post, are you sure you don't also have to run "sudo apt-get upgrade"?

Revision history for this message
ScayTrase (scaytrase) wrote :

Yes, I think problem is in this plugin. I removed it, re-set cardapio and the bug disappeared. I`ve tried twice.
When I turn plugin on - the same problem returned.

4Question - why I should run something else? my update manager does only `update` in background, so the problem appears also when I`m not ready for it (after manual updates).

Try to review part of code that builds application list after update(because while retrieving repos cardapio works). May be plugin conflicts with locking access to packages list or something else.

What facts about my system may help you to simulate this bug?
I think the mostly differense is that my system is amd64. it`s rather fresh, installed from original distributive. So I even don`t know what is unique in my system that this bug affects nobody but me.

Revision history for this message
ScayTrase (scaytrase) wrote :

nope, it unfortunately get same bug with turned off plugin. No even I cannnot simulate this bug, it doesn`t depends on manual updating,

Revision history for this message
Thiago Teixeira (tvst) wrote :

Ok, I'm all out of ideas. Can you post your Cardapio log?

See this for more info:
https://answers.launchpad.net/cardapio/+faq/1173

Revision history for this message
ScayTrase (scaytrase) wrote :

Here it is. Contains some errors and warning.

Revision history for this message
Thiago Teixeira (tvst) wrote :

What does the very last line say? Can you translate it, please?

Revision history for this message
ScayTrase (scaytrase) wrote :

Oh, UTF - CP2151 hell...

nothing useful

It only says that he could not load directory that exists in bookmarks but really does not exists ( nautilus got it fine, so i`ve never mind to fix it). It is by the way another bug, that cardapio display unlinked folders in bookmarks, but nothing useful.

Revision history for this message
Thiago Teixeira (tvst) wrote :

Hmmm... still no useful information, then.

If you are willing to work with me on this bug for a few days, I can post here a new version of cardapio.py with more logging, so we can debug this issue iteratively. Let me know.

Revision history for this message
ScayTrase (scaytrase) wrote :

So, let the battle begins :) Anyway I have no useful tasks now, nothing to do.. vocation.

post your logging .py and instructions how to install it ( would it be overrided during common updatings of cardapio? )

Revision history for this message
Thiago Teixeira (tvst) wrote :

Sorry I haven't posted this yet. I will do it tonight.

Revision history for this message
ScayTrase (scaytrase) wrote :

Oh, never mind :) Hurry is not a good way to do right things

Revision history for this message
Jan (jancborchardt-deactivatedaccount) wrote :

This happens to me sometimes (very rarely) as well. I can not pinpoint why though.

I’m going to look in the log next time it happens and post it here, if that helps.

Changed in cardapio:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Jan (jancborchardt-deactivatedaccount) wrote :

Oh and I also have a 64-bit system.

I can’t remember if it happens on 10.04 or 10.10 or both because I keep reinstalling regularly lately. ;) Going to take note next time.

summary: - cardapio does not display programs
+ category items not displayed sometimes
Revision history for this message
Thiago Teixeira (tvst) wrote :

Ok, it's been a tough couple of weeks here at work, and there's a couple more to go. But I think I'll be able to do some more in-depth debugging when this is over.

Revision history for this message
Paweł Bara (keirangtp) wrote :

this one also affected me. at some point I thought that installing a new application provoked this but I cannot confirm this.
actually I could not reproduce this lately...

anyway, writing mostly because my machine is 32 bit system ergo the 'bitness' has probably nothing to do here.

Revision history for this message
Thiago Teixeira (tvst) wrote :

If you know how to reproduce this bug, please try this:

1) close cardapio, remove from panel
2) open a terminal and type
$ /usr/lib/python2.6/trace.py --trace cardapio run-in-window > ~/cardapio_trace.log

This will log every from the Cardapio script in the order they are executed, which means things will run much slower than usual.

3) Try reproducing your bug.

4) Once the bug occurs DON'T TOUCH CARDAPIO.

Instead, just open a web browser and attach here the log file (~/cardapio_trace.log). This way the conditions that prompted this bug will be at the bottom of the log file, making my life easier :)

Revision history for this message
David Velazquez (lemonsforlemonade) wrote :

I believe I'm getting bit by this same bug here. It just happened to night after I updated and I know it happened in the past, but not sure if it was part of an update. I'll see if I can work on reproducing it this way we can get some movement back here, but it is pretty sporadic. I usually end up fixing by logging out and then back in. I suppose doing that serves the same purpose as removing and re-adding it.

Revision history for this message
David Velazquez (lemonsforlemonade) wrote :

A followup: I removed cardapio from the panel, opened a terminal, copy and pasted what you suggested and I received an error:

dave@dave-desktop:~$ /usr/lib/python2.6/trace.py --trace cardapio run-in-window > ~/cardapio_trace.log
cardapio: Cannot run file 'cardapio' because: [Errno 2] No such file or directory: 'cardapio'

Am I doing it wrong?

Also, I just updated again for the second time in a few days and received a slew of updates. Clicking on Cardapio in the panel resulted in this bug again. Safe to say now it's being caused by updating the system. Since it's also happened on 2/2 tries I would expect it to be more widespread.

So, steps to reproduce for me are simple. Have cardapio hanging out in the panel.

sudo aptitude update
sudo aptitude safe-upgrade

Click on cardapio and see the bug.

Revision history for this message
blumblaum (bmakara-gmx) wrote :

I've got the same problem and it – sorry – sucks a little bit. :D Cardapio is really awesome but after installing or updating a new package with apt, synaptic or dpkg on my Ubuntu 10.10 (64 bit) system I can’t see any items in any category. :( To fix this I have to remove Cardapio from the panel and add it again.

Revision history for this message
Thiago Teixeira (tvst) wrote :

Ok, here's a FAQ that I wrote because of this bug report, but I forgot to post it here: https://answers.launchpad.net/cardapio/+faq/1275

If you are able to reproduce this bug at will, can you please follow the instructions in the FAQ above? (and post the trace here, please)

Thanks

Revision history for this message
ScayTrase (scaytrase) wrote :

The bug still exist.

so, what i`ve done:

As in FAQ
1
) Open a web browser and go to the page for your bug report (you'll need this in a bit)
2) Close cardapio, remove from panel
3) Open a terminal and type
$ cd /usr/lib/cardapio
$ /usr/lib/python2.6/trace.py --trace cardapio run-in-window > ~/cardapio_trace.log

open cardapio. tried it, everything works. sudo apt-get update. everything works.
sudo apt-get upgrade. during installing packages works, after - crashes.

PS. use script killcard.sh

kill `ps -o pid --no-heading -C /usr/bin/cardapio`

put it to /usr/bin and chmod +x it. Allows you just press killcard.sh to restart it.
___

scaytrase@desktop:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick

apt-cache show cardapio
Architecture: amd64
Version: 0.9.155-ubuntu1-maverick1

Revision history for this message
Thiago Teixeira (tvst) wrote :

Can someone let me know if this is fixed in the latest release? (0.9.156)

Revision history for this message
ScayTrase (scaytrase) wrote :

Architecture: amd64
Version: 0.9.156-ubuntu1-maverick1

still not works.

Revision history for this message
David Velazquez (lemonsforlemonade) wrote :

I just received an update this evening 11/22/10. Prior to this evening I had just seen this bug again but did not check here to see how to reproduce it. Will check back in a few days if I experience it again.

Revision history for this message
Christian Berrer (nikon) wrote :

The same thing just happened to me with cardapio version 0.9.156.
In my case it looks like the screenshot in the attachments, the view list is completely empty.

Revision history for this message
Thiago Teixeira (tvst) wrote :

Can you post your log file, please?

Also, can you reproduce it at will? If so, what are the steps to reproduce this?

Revision history for this message
Thiago Teixeira (tvst) wrote :

Oh, and you should also know that the latest version is 0.9.157 :)

Revision history for this message
Christian Berrer (nikon) wrote :

I think it was because the icon set I use (Faenza) received an update, after installing it the list was empty.

Revision history for this message
Roland (Rolandixor) Taylor (rolandixor) wrote :

this bug is still not fixed.

Revision history for this message
ScayTrase (scaytrase) wrote :

latest update still buggy :(
are there any movements in fixin it?

Revision history for this message
Paweł Bara (keirangtp) wrote : Re: [Bug 607681] Re: category items not displayed sometimes

Can you reproduce it? We've all seen it but we're having a tough time
reproducing it and thus fixing it...

P.

2010/12/16 ScayTrase <email address hidden>

> latest update still buggy :(
> are there any movements in fixin it?
>
> --
> You received this bug notification because you are a member of Cardapio
> team, which is the registrant for Cardapio.
> https://bugs.launchpad.net/bugs/607681
>
> Title:
> category items not displayed sometimes
>
> Status in Cardapio:
> Confirmed
>
> Bug description:
> cardapio fails to display any program in categories ( mostly after update
> ). Re-setting it to panel helps, but it can happen again. looks like
> attached screenshot
>
> Ubuntu 10.04
> Architecture: amd64
> Version: 0.9.128-ubuntu1
>
>
>

Revision history for this message
Thiago Teixeira (tvst) wrote :

What Pawel said. Bugs that have non-obvious fixes really need to be reproducible on our end. Otherwise it's almost impossible to find what's causing it.

Of course, that's why we ask for a log and trace, but not everything appears in those (like the values of variables, for example). So at this point what we really need is a step-by-step guide on reproducing this.

Revision history for this message
Jiri Grönroos (jiri-gronroos) wrote :

64-bit 10.10, Cardapio Version: 0.9.164-ubuntu1-maverick1.

A trace which probably doesn't help much.

1. Open Cardapio (using gnome-panel, cardapio-awn or trace window)
2. Focus on open terminal and install something (which should be visible in menus) using apt-get
3. While installing, open Cardapio and click some categories
4. During apt-get's

Processing triggers for desktop-file-utils...
Processing triggers for python-gmenu...
Rebuilding /usr/share/applications/desktop.fi_FI.utf8.cache...
Processing triggers for man-db...
Processing triggers for menu...
Processing triggers for python-support...

(most likely between python-gmenu, man-db and menu)

Cardapio's category buttons start misbehaving and app icons/text become non-existent.

--
Shouldn't Cardapio state "Data has recently changed." at this point? Could something be wrong with (the output handling of) menu/python-gmenu?

Revision history for this message
ScayTrase (scaytrase) wrote :

seems working properly now.

-----
scaytrase@Desktop:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick

cardapio:
Architecture: amd64
Version: 0.9.167-ubuntu1-maverick1

Revision history for this message
Thiago Teixeira (tvst) wrote :

Great! I must have inadvertently fixed this bug during The Great Refactoring of January :) .

Of course, Since I don't know how exactly it was solved, I will keep this bug open for another week or two just to be on the safe side. Please post here if you find that this persists.

Revision history for this message
Paweł Bara (keirangtp) wrote :

Hold your horses, I've experienced this just yesterday.

Revision history for this message
Thiago Teixeira (tvst) wrote :

Hmmm, I just stress-tested Cardapio, installing a bunch of apps and several updates to my system while clicking on categories (as described in comment #36) and was finally able to reproduce this.

Now I just have to figure out what it is causing it... but at least I have a way to trace it!

Revision history for this message
Thiago Teixeira (tvst) wrote :

Ok, this may be a long shot, but can someone try the latest version from trunk?
(how to: https://answers.launchpad.net/cardapio/+faq/1352 )

I think I solved this by moving a single line of code... but this just sounds too good to be true.

Revision history for this message
Thiago Teixeira (tvst) wrote :

Ok, I'm marking this as fixed. If anyone is still experiencing this issue, please let me know.

Changed in cardapio:
status: Confirmed → Fix Committed
Thiago Teixeira (tvst)
Changed in cardapio:
status: Fix Committed → Fix Released
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.