OnlineAccountClient hangs on construction

Bug #1377147 reported by Marcus Tomlinson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-scopes-api (Ubuntu)
Fix Released
Critical
Marcus Tomlinson

Bug Description

If an application has instantiated a main loop (E.g. In a Qt app via "new QCoreApplication()") but does not actually run that main loop, instantiating an OnlineAccountClient hangs.

This was picked up when OnlineAccountClient was used from a scope that instantiated a QCoreApplication in order to execute QEventLoops elsewhere in the code, but did not actually use the application event loop.

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

OnlineAccountClient needs to run the internal event loop within its own context to avoid clashing with external main loops. This way, regardless of what event loops exist externally, OnlineAccountClient will operate as expected. This fix also means that the default for the main_loop_select constructor parameter can now be CreateInternalMainLoop.

tags: added: rtm14
Changed in unity-scopes-api (Ubuntu):
assignee: nobody → Marcus Tomlinson (marcustomlinson)
status: New → In Progress
description: updated
Changed in unity-scopes-api (Ubuntu):
importance: Undecided → High
tags: added: qa-daily-testing qasoak
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-scopes-api - 0.6.7+14.10.20141010.1-0ubuntu1

---------------
unity-scopes-api (0.6.7+14.10.20141010.1-0ubuntu1) utopic; urgency=medium

  [ Marcus Tomlinson ]
  * OnlineAccountClient fixes: run the internal event loop within its own context to avoid
    clashing with external main loop (LP: #1377147).
  * Introduced new dependencies on dbus-test-runner and libdbustest1-dev.
  * Fix for Zmq infinite reconnection problem (LP: #1374206)

  [ Ubuntu daily release ]
  * New rebuild forced
 -- Ubuntu daily release <email address hidden> Fri, 10 Oct 2014 19:24:20 +0000

Changed in unity-scopes-api (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Victor Tuson Palau (vtuson) wrote :

this bug is a dependency on https://bugs.launchpad.net/ubuntu/+source/unity-scope-click/+bug/1350093 so by "inheritance" it is also critical

Changed in unity-scopes-api (Ubuntu):
importance: High → Critical
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.