[unity8] A ghost (shadow only) window opens with some app windows/menus

Bug #1665286 reported by dinamic
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Michał Sawicz
Mir
Invalid
High
Unassigned
MirAL
Invalid
High
Unassigned
mir (Ubuntu)
Invalid
High
Unassigned
miral (Ubuntu)
Invalid
High
Unassigned
qtubuntu (Ubuntu)
Invalid
High
Daniel d'Andrada
unity8 (Ubuntu)
Fix Released
High
Daniel d'Andrada

Bug Description

ubuntu 17.04 unity8

- install tiled, apt install tiled
- Add "X-Ubuntu-XMir-Enable=false" to /usr/share/applications/tiled.desktop so that it doesn't get launched inside an xmir wrapper
- launch tiled

you'll see a transparent window opened beneath the main window called "Object Types Editor"

see attached screenshot

Related branches

Revision history for this message
dinamic (dinamic6661) wrote :
summary: - [unity8][qt] tiled app opens a transparent window "object tyopes editor"
+ [unity8][qt] tiled app opens a transparent window "object types editor"
when launched
Revision history for this message
dinamic (dinamic6661) wrote : Re: [unity8][qt] tiled app opens a transparent window "object types editor" when launched

Loading module: 'libubuntu_application_api_desktop_mirclient.so.3.0.0'
QMetaMethod::invoke: Unable to handle unregistered datatype 'QPlatformWindow*'
QMetaMethod::invoke: Unable to handle unregistered datatype 'QPlatformWindow*'
QMetaMethod::invoke: Unable to handle unregistered datatype 'QPlatformWindow*'
qt.qpa.mirclient: Attempted to deliver an event to a non-existent window, ignoring.
qt.qpa.mirclient: Attempted to deliver an event to a non-existent window, ignoring.

Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

That warning is fixed by https://code.launchpad.net/~aacid/qtubuntu/fix_unregistered_metatype_warning/+merge/317633

No idea if it also fixes the reported bug though

Revision history for this message
dinamic (dinamic6661) wrote :

thanks :D nope, it's still the same with silo 2481

summary: - [unity8][qt] tiled app opens a transparent window "object types editor"
- when launched
+ [unity8] A ghost (shadow only) window opens behind some app windows
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: [unity8] A ghost (shadow only) window opens behind some app windows

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtubuntu (Ubuntu):
status: New → Confirmed
Changed in unity8 (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Confirmed, but I think I've been seeing this in GTK apps. Can't remember where.

tags: added: unity8-desktop visual-quality
Revision history for this message
kevin gunn (kgunn72) wrote :

understanding is that this will be fixed by this commit
https://code.launchpad.net/~xmir-team/xorg-server/+git/xmir/+ref/xmir-1.18
just needs to make it's way into archive

Revision history for this message
kevin gunn (kgunn72) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Interesting thought that this might be Xmir's (or any toolkit's) fault. Although doesn't comment #1 show a native (GTK/Qt) app without Xmir?

dinamic: Can you check if Xmir is running when the bug occurs?

I'm also not aware of the bug ever occurring in Mir demo servers, so that's more evidence this is not Xmir's fault.

Revision history for this message
dinamic (dinamic6661) wrote :

@daniel, tiled is running native, i don't see any Xmir process

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Oh, I just saw the same bug in nautilus + mir_proving_server when opening a menu. Seems like this might be a general Mir/toolkit bug.

Changed in unity8 (Ubuntu):
status: Confirmed → Incomplete
Changed in gtk+3.0 (Ubuntu):
status: New → Confirmed
Changed in mir:
status: New → Confirmed
Changed in mir (Ubuntu):
status: New → Confirmed
Changed in mir:
importance: Undecided → High
Changed in gtk+3.0 (Ubuntu):
importance: Undecided → High
Changed in mir (Ubuntu):
importance: Undecided → High
Changed in unity8 (Ubuntu):
importance: Undecided → High
Changed in qtubuntu (Ubuntu):
importance: Undecided → High
Changed in canonical-devices-system-image:
importance: Undecided → High
status: New → Confirmed
summary: - [unity8] A ghost (shadow only) window opens behind some app windows
+ [unity8] A ghost (shadow only) window opens with some app windows/menus
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Confirmed, but it doesn't seem to happen every time.

'tilded' appears to be a native Qt app, although I'm not sure if that's relevant. When I ran it under mir_proving_server there was no ghost window problem. So this makes me think either Unity8 is displaying windows whose state is 'hidden', or we have a general window management/scene bug (because similarly after closing some dialogs they stay visible).

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I mean 'tiled'

Changed in miral:
importance: Undecided → High
Changed in miral (Ubuntu):
importance: Undecided → High
Changed in miral:
status: New → Confirmed
Changed in miral (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

If you select View > Object Types Editor then the ghost window becomes active. So this makes me think it just exists from the beginning and was meant to be hidden.

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Testing with miral-app I don't see this hidden window until it becomes visible.

Changed in mir:
status: Confirmed → Incomplete
Changed in miral:
status: Confirmed → Incomplete
Changed in mir (Ubuntu):
status: Confirmed → Incomplete
Changed in miral (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Oh, and tiled is a Qt application, so I think gtk3+ is innocent

no longer affects: gtk+3.0 (Ubuntu)
Changed in unity8 (Ubuntu):
status: Incomplete → Confirmed
kevin gunn (kgunn72)
Changed in canonical-devices-system-image:
milestone: none → u8c-1
assignee: nobody → Michał Sawicz (saviq)
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

Can't reproduce it with trunk (released) versions of unity8 and qtmir.

Michał Sawicz (saviq)
Changed in qtubuntu (Ubuntu):
status: Confirmed → Incomplete
Changed in canonical-devices-system-image:
status: Confirmed → Incomplete
Changed in unity8 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

Ignore what I said earlier. I can reproduce the bug now.

Changed in unity8 (Ubuntu):
status: Incomplete → Confirmed
Changed in qtubuntu (Ubuntu):
status: Incomplete → Confirmed
Changed in unity8 (Ubuntu):
assignee: nobody → Daniel d'Andrada (dandrader)
Changed in qtubuntu (Ubuntu):
assignee: nobody → Daniel d'Andrada (dandrader)
status: Confirmed → In Progress
Changed in unity8 (Ubuntu):
status: Confirmed → In Progress
kevin gunn (kgunn72)
Changed in canonical-devices-system-image:
status: Incomplete → In Progress
description: updated
Changed in qtubuntu (Ubuntu):
status: In Progress → Invalid
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Ignore my comment about nautilus. That's just the nautilus desktop window (which is meant to appear) failing to render for some reason. Not related.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The nautilus issue is bug 1672949.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity8 - 8.15+17.04.20170321-0ubuntu1

---------------
unity8 (8.15+17.04.20170321-0ubuntu1) zesty; urgency=medium

  [ Albert Astals Cid ]
  * Signal aboutToShow (LP: #1664578)
  * Support Panel top level items to be disabled (LP: #1670694)
  * Improve Launcher ←→ touch menu interaction (LP: #1667620, #1671069)
  * Fix real world submenus (e.g. kate) not getting their first item
    selected on open (LP: #1666859)

  [ Daniel d'Andrada ]
  * Really disable the window decoration when in staged mode (LP:
    #1670361)
  * Don't let clients resize their surfaces while in staged
    (phone/tablet) mode (LP: #1670390)
  * TopLevelWindowModel: don't put hidden windows in the model (LP:
    #1665286)

  [ Lukáš Tinkl ]
  * Reset always-show-osk gsetting on startup to default value (false
    atm)
  * Fix the restored-to position with Miral due to the state changes
    being async (LP: #1669819)
  * Add a cursor name fallback mapping "grabbing" -> "closedhand" for
    Breeze
  * Fix unsnapping a maximized window from the panel (LP: #1671721)
  * Disable altDrag feature outside windowed mode

  [ Michael Terry ]
  * Don't lock the screen for guest users or users in the nopasswdlogin
    group. (LP: #1644237)
  * Support GNOME-style logout DBus API (making the Logout, Reboot, and
    Shutdown launcher commands work) (LP: #1673229)

  [ Michael Zanetti ]
  * Add support for closing apps from the spread with "Q" (LP: #1670327)
  * hide "private" launcher quicklist entries when the greeter is locked
    (LP: #1667649)
  * add surface titles to launcher's quicklist (LP: #1661668)
  * properly reset the drawer state when cancelling a horizontal drag
    (LP: #1669536)
  * fix the focus moving correctly between launcher and drawer (LP:
    #1669880)
  * unfocus the drawer's textfield when it is moved (LP: #1669839)

  [ Pete Woods ]
  * Fix up indicators-client after refactoring (LP: #1672797)

 -- Michał Sawicz <email address hidden> Tue, 21 Mar 2017 10:58:13 +0000

Changed in unity8 (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Michał Sawicz (saviq) wrote :

So this is Invalid for Mir/MirAL?

Changed in canonical-devices-system-image:
status: In Progress → Fix Released
Changed in mir:
status: Incomplete → Invalid
Changed in miral:
status: Incomplete → Invalid
Changed in mir (Ubuntu):
status: Incomplete → Invalid
Changed in miral (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.