Anaconda/Features/ThreadedGUI

From FedoraProject

< Anaconda | Features(Difference between revisions)
Jump to: navigation, search
 
Line 11: Line 11:
 
* Last updated: 08:38, 16 February 2011 (UTC)
 
* Last updated: 08:38, 16 February 2011 (UTC)
 
* Percentage of completion: 1%
 
* Percentage of completion: 1%
 +
 +
This entirely depends on the new UI implementation. Might not seem necessary but I am sure that at some point this is going to turn up again even then.
  
 
== Detailed Description ==
 
== Detailed Description ==

Latest revision as of 12:17, 3 November 2011

Contents

[edit] Threaded Anaconda GUI

[edit] Summary

Do not run the gtk.main() in the same thread as all other processing (e.g. probing storage devices or installing packages).

[edit] Owner

[edit] Current status

  • Targeted release: Fedora 18
  • Last updated: 08:38, 16 February 2011 (UTC)
  • Percentage of completion: 1%

This entirely depends on the new UI implementation. Might not seem necessary but I am sure that at some point this is going to turn up again even then.

[edit] Detailed Description

Anaconda's GTK UI and the backend are running in the same thread. GTK is unfortunately not designed to be run in the same thread as the app. Although this arrangement sort of works for the moment problems can be noticed: for instance on a virtual machine (slow) there is a visible lag between the time "scanning storage devices" dialog pops up and the time this dialog gets window decorations by metacity. What we do at the moment when we want to update the UI and the processing happens outside of the gtk.main function is calling gtk.main_iteration(False) (or window.show_now())to manually enforce one gtk main loop. Coming to #pygtk at gnome's IRC I was repeatedly told by the gurus that this is a hack bound to randomly fail to accomplish what we expect.

Also separating the threads will allow us to do certain tasks in the background, not blocking the user from continuing with other parts of installation. For instance Anaconda can already be initializing the filesystem while the user is picking packages to be installed.

Bugzilla to track this is https://bugzilla.redhat.com/show_bug.cgi?id=581912.

[edit] Benefit to Fedora

Improved experience for the installer users.

[edit] Scope

Huge but limited to anaconda.

[edit] Test Plan

[edit] User Experience

[edit] Dependencies

[edit] Contingency Plan

[edit] Documentation

[edit] Release Notes