Application window appears in the background

Bug #1252294 reported by Alberto Mardegan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-mir
Confirmed
High
Gerry Boland
ubuntu-system-settings-online-accounts (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Sometimes an application's window doesn't get raised to the foreground when it's created. I can reproduce this bug like this: checkout lp:~mardy/ubuntu-system-settings-online-accounts/app-access, build it and install it (if building the package fails because of tests failing, just use "sudo make install"). Then run this command:

OAU_DAEMON_TIMEOUT=30000 online-accounts-ui --desktop_file_hint=/usr/share/applications/online-accounts-ui.desktop

and, on another ssh session, this one:

system-settings --desktop_file_hint=/usr/share/applications/ubuntu-system-settings.desktop online-accounts

The first time you run these commands, usually it works (the online accounts window is displayed on top of the system settings). But if then you kill both processes (Ctrl+C) and try again, it won't work: the online accounts window will not appear (it's below the system settings).
Finding a solution for this behaviour is important otherwise we cannot test Online Accounts with autopilot (which kills the application after each test).

Incidentally, when you kill the applications the device's screen will turn all black (apart from the status bar on top).

Gerry Boland (gerboland)
Changed in unity-mir:
assignee: nobody → Gerry Boland (gerboland)
importance: Undecided → High
Revision history for this message
Gerry Boland (gerboland) wrote :

The crash I'm able to reproduce and am investigating right now.

The window management bug on the other hand I'm not able to reproduce. When I run

system-settings --desktop_file_hint=/usr/share/applications/ubuntu-system-settings.desktop online-accounts

it opens the online-accounts app, then quits. Is that expected?

Revision history for this message
Alberto Mardegan (mardy) wrote : Re: [Bug 1252294] Re: Application window appears in the background

On 11/28/2013 06:58 PM, Gerry Boland wrote:
> When I run
>
> system-settings --desktop_file_hint=/usr/share/applications/ubuntu-
> system-settings.desktop online-accounts
>
> it opens the online-accounts app, then quits. Is that expected?

I don't think it should quit. Now for some reason nothing seems to work
on my device, but what happens if you omit the "online-accounts"
parameter and tap on the "Online Accounts" item instead? Does the System
Settings still quit (it definitely shouldn't)?

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

This bug was fixed in the package ubuntu-system-settings-online-accounts - 0.2~+14.04.20131129-0ubuntu1

---------------
ubuntu-system-settings-online-accounts (0.2~+14.04.20131129-0ubuntu1) trusty; urgency=low

  [ Alberto Mardegan ]
  * Disable autopilot test on the phone We have to do this because of
    https://bugs.launchpad.net/bugs/1252294. (LP: #1252294)
  * Test, setUp(): don't launch the app on the phone.

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 82
 -- Ubuntu daily release <email address hidden> Fri, 29 Nov 2013 14:05:40 +0000

Changed in ubuntu-system-settings-online-accounts (Ubuntu):
status: New → Fix Released
Revision history for this message
Gerry Boland (gerboland) wrote :

@mardy
without the "online-accounts" parameter, system settings appears as normal - it doesn't quit.

Revision history for this message
Alberto Mardegan (mardy) wrote :

Hi Gerry, I just want to let you know that I fixed the issue which made system-settings quit after launching the online-accounts panel.

Revision history for this message
Gerry Boland (gerboland) wrote :

Hey Alberto,
thanks for reminding me about this. This trusted helper story needs to be addressed, I hope to get it moving now.

Gerry Boland (gerboland)
Changed in unity-mir:
status: New → Confirmed
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.