After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 331780 - menu sometime misplaced on opening
menu sometime misplaced on opening
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: panel
2.14.x
Other Linux
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
: 306453 332870 337017 341878 394846 396469 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-02-19 15:01 UTC by Sebastien Bacher
Modified: 2015-03-24 13:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastien Bacher 2006-02-19 15:01:45 UTC
That bug has been described on https://launchpad.net/distros/ubuntu/+source/gnome-panel/+bug/30146

"This happened on both a Breezy as a Dapper machine. It's reproducible but not through a serie of steps; it just happens once in while.
It's a bit hard to tell what happens, but the screenshot should explain it.

http://librarian.launchpad.net/1546165/gnome-panelBug.png
The menu is being "shortened" while there's plenty of space. Usually doesn't happen though.

This only happens when the menu bar is on the bottom of the screen. I believe the reason for the problem is the following. If the icons are not loaded in memory, Gnome computes the menu height ignoring the icons, i.e. considering only the text height. And it chooses a menu position that is correct for THAT height. Then, when the icons are loaded, the menu height increases, but Gnome does not update the menu position, so the menu ends up too low and gets truncated. This is just a guess though."
Comment 1 Brice Bourgoin 2006-04-25 13:30:40 UTC
I can confime that on the version 2.14.1. It occurs both with the "menus bar" and the "main menu". 
Comment 2 Sebastien Bacher 2006-05-12 13:19:27 UTC
*** Bug 337017 has been marked as a duplicate of this bug. ***
Comment 3 Daniel Holbach 2006-05-12 16:56:26 UTC
Bumping Version.
Comment 4 Jo-Erlend Schinstad 2006-05-22 21:31:00 UTC
This happens when you install new programs or update existing ones. I think that's what makes it seem so unpredictable; you don't always use the menus immediately after updating the system. 
Comment 5 Sebastien Bacher 2006-05-26 10:55:52 UTC
*** Bug 332870 has been marked as a duplicate of this bug. ***
Comment 6 Sebastien Bacher 2006-05-26 10:55:56 UTC
*** Bug 341878 has been marked as a duplicate of this bug. ***
Comment 7 Vidar Braut Haarr 2006-05-26 13:06:31 UTC
(In reply to comment #4)
> This happens when you install new programs or update existing ones. I think
> that's what makes it seem so unpredictable; you don't always use the menus
> immediately after updating the system. 

The original reporter is probably right when he says:
  "I believe the reason for the problem is the following. If the icons are not loaded in memory, Gnome computes the menu height ignoring the icons, i.e. considering only the text height."

That's what it feels like here, at least. What happens for joerlend.schinstad@gmail.com is probably that updating his system consumes most of the available RAM, and so the icons have to be reloaded.
Comment 8 Stephen 2006-05-31 00:10:13 UTC
This isn't an installed RAM issue (at least for me). I have 1.3 Gb of RAM and have watched the RAM use during and after updates, and it never goes anywhere near consuming all available RAM.
Comment 9 Vincent Untz 2006-08-09 10:10:44 UTC
*** Bug 306453 has been marked as a duplicate of this bug. ***
Comment 10 Baptiste Mille-Mathias 2006-10-10 13:49:32 UTC
I have the same problem since edgy
Comment 11 Jeffrey Knockel 2006-12-24 01:07:10 UTC
Here's an example that I've found to rigorously reproduce this bug with my install of Ubuntu 6.10 with gnome-panel 2.16.1:
0. (Right click on a bottom panel, go to "Add to panel...", and then add the Gnome "Main Menu" onto the bottom panel.)
1. Browse menu until bug no longer is present, if it is.
2. sudo cp /usr/share/applications/gedit.desktop /usr/share/applications/test.desktop
3. sudo touch /usr/share/pixmaps/test.png
4. Browse menu and notice that the bug appears

The important thing is that you don't browse the menu in between steps 1 and 4, because just doing either step 2 or step 3 does not seem to produce the bug. Just when both happen in between menu browsing does it seem to occur. Also, it seems that steps 2 and 3 can be performed in reverse order, i.e. step 3 then step 2. And also, it seems that to reproduce this, it needs a real ".desktop file" in the applications directory, whereas a phony touch'ed png file will suffice in the pixmaps directory (although so will a real image) in triggering the bug.

And to reproduce it again:
1. Browse menu until bug is no longer present
2. sudo rm /usr/share/applications/test.desktop
3. sudo rm /usr/share/pixmaps/test.png
4. Browse menu and notice that the bug appears
Comment 12 Vincent Untz 2007-01-15 12:37:01 UTC
*** Bug 394846 has been marked as a duplicate of this bug. ***
Comment 13 Vincent Untz 2007-01-17 21:13:08 UTC
*** Bug 396469 has been marked as a duplicate of this bug. ***
Comment 14 Pacho Ramos 2007-02-12 12:22:14 UTC
I can confirm that in Gentoo.

The problem is reproducible easily, only occurs when a new menu item is installed in, for example /usr/share/applications.

Thanks for fixing it in gnome 2.18
Comment 15 Vincent Untz 2007-02-17 12:54:24 UTC
Fixed in the development version. The fix will be available in the next major release. Thank you for your bug report.
Comment 16 Jeffrey Knockel 2007-03-22 01:45:10 UTC
The issue concerning the main menu in comment0 appears to be fixed, but the bug is still present with sub-menus:
http://librarian.launchpad.net/6725395/panel2.png
(gnome-panel 2.18.0)
This is still reproducible the same way as before.
Comment 17 Pacho Ramos 2007-03-22 21:55:35 UTC
(In reply to comment #16)
> The issue concerning the main menu in comment0 appears to be fixed, but the bug
> is still present with sub-menus:
> http://librarian.launchpad.net/6725395/panel2.png
> (gnome-panel 2.18.0)
> This is still reproducible the same way as before.
> 

If you open a new bug report, please, leave here a link 

Thanks
Comment 18 Vincent Untz 2007-05-16 21:32:32 UTC
(In reply to comment #16)
> The issue concerning the main menu in comment0 appears to be fixed, but the bug
> is still present with sub-menus:
> http://librarian.launchpad.net/6725395/panel2.png
> (gnome-panel 2.18.0)
> This is still reproducible the same way as before.

I can't reproduce this.
Comment 19 Jeffrey Knockel 2007-05-17 04:38:36 UTC
I've noticed that I can only reproduce it with certain gtk2 themes.  For example, I can_not_ reproduce it using the Clearlooks theme, whereas I _can_ reproduce it using the Crux theme.
Comment 20 Glauco Hass 2007-11-20 02:24:51 UTC
I'm having this bug again in 2.20.1. Every time I install a software, menus are misplaced on first click.