Repeated indicators in unity-2d panel when second screen added

Bug #846441 reported by Colin Law on 2011-09-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Marco Trevisan (Treviño)
unity-2d (Ubuntu)
Marco Trevisan (Treviño)

Bug Description

Using Unity-2d in Oneiric Beta updated 10th Sept 2011 with a single screen all is well. When I hot plug in a second screen (that has been previously configured for extended desktop mode) then the top panel on the first monitor is re-populated with second set of indicators (Mail, Battery, Network, etc) so that each then appears twice in the panel, though only one set of them works.
The panel on the second screen is ok.
Logging out and in fixes the problem.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: unity-2d 4.6.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-10.16-generic 3.0.4
Uname: Linux 3.0.0-10-generic i686
ApportVersion: 1.22.1-0ubuntu2
Architecture: i386
Date: Sat Sep 10 14:03:16 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110901)
PackageArchitecture: all
 PATH=(custom, no user)
SourcePackage: unity-2d
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Colin Law (colin-law) wrote :
Florian Boucault (fboucault) wrote :

Very important issue indeed!
Does it also happen in Unity 3D?

Changed in unity-2d:
importance: Undecided → High
milestone: none → 4.8
status: New → Incomplete
Changed in unity-2d (Ubuntu):
status: New → Incomplete
Colin Law (colin-law) wrote :

It does not happen in 3D.

Colin Law (colin-law) wrote :

It also happens when I switch from mirrored to not mirrored displays (2D). Probably not surprising.

Colin, do you also confirm the bug #845212 on multiple screen (2D and 3D)?

By the way I hardly understand why the panel-service (libunity-core, in fact) asks to re-add an indicator. However I guess that we can workaround this on unity-2d side, by simply checking if an indicator with that given name has been already added.

By the way, in this case which is the designed solution requested? Indicators should show on both screens, isn't it?

Colin Law (colin-law) wrote :

@Marco: I do not see the symptom in bug #845212, the menus appear on both screens as they should.

I don't know if it is relevant but looking at what happens with 3D when adding the second screen it looks as if the indicators are discarded and added again, or perhaps even the complete panel is re-generated, though I may be wrong.

I do not fully understand your last paragraph. The indicators do appear on the second screen as expected. On the first I see two of each indicator (in pairs), until I log out and back in, then I see one of each in each screen as I should.

Changed in unity-2d:
status: Incomplete → In Progress
Changed in unity-2d (Ubuntu):
status: Incomplete → In Progress
Changed in unity-2d:
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Changed in unity-2d (Ubuntu):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)

Ahhhh... Ok. Now I can figure the problem and I already fixed it for few days, also if I didn't experience this exactly issue I also considered this aspect when killing the unity-panel-service: I'm sure that if in a terminal you run "killall -9 unity-panel-service" (in a single screen too), you get the very same problem.

The fact is that unity-2d trunk currently doesn't manage an indicator removal, but I implemented that since Sept 9th in my branch lp:~3v1n0/unity-2d/unity-core-indicators-revisited so I guess that you just need to merge this proposal to fix the issue:

@Colin, if you can, please compile that branch and let me know if you still get the issue with that. Thank you.

Colin Law (colin-law) wrote :

I am not set up to build from source (though I could be if necessary) but I have moved to the unity-2d daily build ppa so can test it if the patch is included there.
If I run "killall -9 unity-panel-service" when in dual screen mode that I see repeated indicators on *both* screens.

Ok, so now (after that my branch has been merged) this should have been fixed.

Colin Law (colin-law) wrote :

Fixed for me in 4.8-0ubuntu1~bzr716 :)
Unfortunately during switching between single and dual screens to test this I have discovered a crash, bug #848944, sorry. I don't know whether this this is a new bug or not.

Florian Boucault (fboucault) wrote :

Thanks for the feedback Colin!

Changed in unity-2d:
status: In Progress → Fix Committed
Changed in unity-2d (Ubuntu):
status: In Progress → Fix Committed
Didier Roche (didrocks) on 2011-09-15
Changed in unity-2d:
status: Fix Committed → Fix Released
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-2d - 4.8.0-0ubuntu1

unity-2d (4.8.0-0ubuntu1) oneiric; urgency=low

  * New upstream release
    - [window management] Alt tab does not switch to the desired application
      but instead set the urgency flag on the window (LP: #735205)
    - [dash] search field default text not cleared immediately when using
      chinese input method (LP: #745246)
    - [dash] Apps lens shows no result by default (LP: #834571)
    - unity-2d-panel crashed with SIGSEGV in
      IndicatorsWidget::onEntryRemoved() (LP: #846836)
    - [panel] graphics corruption in top line of pixels (LP: #846335)
    - Repeated indicators in unity-2d panel when second screen added
      (LP: #846441)
    - [dash] Lens navigation bar (buttons on lower edge of dash window) is
      accessible (LP: #826560)
    - [dash] Category filters is sorted according to their english names, even
      when another language is used (LP: #838023)
 -- Didier Roche <email address hidden> Thu, 15 Sep 2011 11:43:52 +0200

Changed in unity-2d (Ubuntu):
status: Fix Committed → Fix Released
Changed in unity-2d:
status: Fix Released → Fix Committed
Gerry Boland (gerboland) on 2011-11-14
Changed in unity-2d:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers