CGAL / cgal

The public CGAL repository, see the README below
https://github.com/CGAL/cgal#readme
Other
4.87k stars 1.38k forks source link

Bug in Polyhedron demo menus, with Unity unified menu bar #909

Closed gdamiand closed 8 years ago

gdamiand commented 8 years ago

When running the Polyhedron demo, on Ubuntu 15.04 with Unity, after loading an off file, all submenu are empty except the first one (boolean operations). See image below.

bug

lrineau commented 8 years ago

It seems that something in the code of the Polyhedron demo triggers an incorrect behavior of the libdbusmenu-qt, used by the Unity desktop of Ubuntu.

After a quick look at the code of the Polyhedron demo, I think that there is 95% chances that the bug is in CGAL, and not in libdbusmenu-qt. I will discuss with @maxGimeno.

maxGimeno commented 8 years ago

@gdamiand I installed a Ubuntu 15.04 in a virtualbox but I don't have the same menus as you, and I think this is why I can't reproduce your bug. Do you know what you use to have the demo menu in the window bar ?

gdamiand commented 8 years ago

On ubuntu, run "Paramètres systèmes", click on "apparence", tab "Comportement", here you can choose "afficher les menus pour une fenêtre dans la barre de titre de la fenetre".

maxGimeno commented 8 years ago

Ok, I did that but it didn't apply to the demo. I will try to build it under Ubunto and it should work, from what I read on Stackoverflow.

maxGimeno commented 8 years ago

It doesn't work. As I cannot reproduce, I suggest you try the patch I wrote in the branch https://github.com/CGAL/cgal-dev.git

and we hope it fixes the bug somehow...

gdamiand commented 8 years ago

The bug is still there; and note that I have the same behavior even with menu not in the window but in the global bar.

gdamiand commented 8 years ago

I confirm the bug is related with unity; I installed mate and the bug is not there with mate.

maxGimeno commented 8 years ago

The global bar ? The one in the top of your screen or the classic Qt menu bar ?

lrineau commented 8 years ago

As the bug seems difficult to reproduce, I have decided that it will not block CGAL-4.8.

sloriot commented 8 years ago

@gdamiand @maxGimeno Any progress on this bug? Any chance you can find a solution before the end of the week or shall we postpone to 4.9?

maxGimeno commented 8 years ago

I cannot reproduce the issue, so I seriously doubt I can fix it by the end of the week.

gdamiand commented 8 years ago

I swith to ubuntu 16.04 (fresh install) and I confirm the bug is still there. @maxGimeno It is not difficult to reproduce the issue: just install an ubuntu... bug

maxGimeno commented 8 years ago

@gdamiand I installed ubuntu in a Virtual Box and I had no bug.

gdamiand commented 8 years ago

Try a real install (not with VirtualBox) ? Moreover this is perhaps related with X-drivers ?

lrineau commented 8 years ago

This has a very low priority given that it was reported only once and difficult to reproduce. That is certainly related to something in your installation, Guillaume.

Maxime will not have time to dedicate on that bug, unless you give precise hints on how to reproduce it.

The bug is almost certainly somewhere in the Unity "Menu Proxy" feature. We cannot dedicate time to work around it if at first it is not easy to reproduce.

Meanwhile, the workaround can be to disable the menu proxy for the CGAL Polyhedron demo.

env UBUNTU_MENUPROXY= ./Polyhedron_3

or with APPMENU_DISPLAY_BOTH=1 instead.

gdamiand commented 8 years ago

I understand the low priority.

However I don't think this is related to my installation because as said above I observe the same bug with a fresh install.

And the precise hints to reproduce: the only thing I can propose is to install a fresh ubuntu outside virtual box...

lrineau commented 8 years ago

Le Wednesday 25 May 2016 07:24:51 Guillaume Damiand a écrit :

I understand the low priority.

However I don't think this is related to my installation because as said above I observe the same bug with a fresh install.

In the worst case, that may depend on the hardward.

Or maybe that depends:

Laurent Rineau, PhD R&D Engineer at GeometryFactory http://www.geometryfactory.com/ Release Manager of the CGAL Project http://www.cgal.org/

sloriot commented 8 years ago

@gdamiand do you still have the issue?

gdamiand commented 8 years ago

Yes.

lrineau commented 8 years ago

I have good news: the last laptop bought by GeometryFactory (named klein, a Dell XPS 13") runs Ubuntu 16.04, and I was impacted by that bug (hopefully, the Operations menu was also available in the context menu).

So, as we can reproduce the issue, there is a chance that we will eventually fix it. My guess is that it will be fixed during the summer. Our schedule in July is rather tight, so probably only in August.

gdamiand commented 8 years ago

Good news indeed. Thanks @lrineau.