Ubiquity (GTK) hangs for 90 seconds before showing its GUI for zh_CN/zh_TW installs

Bug #234208 reported by Anthony Fok
12
Affects Status Importance Assigned to Milestone
scim (Ubuntu)
Fix Released
Undecided
Unassigned
ubiquity (Ubuntu)
Fix Released
Medium
Colin Watson

Bug Description

When Chinese (simplified or traditional) is selected on the startup menu (isolinux, gfxboot) of Ubuntu 8.04 (Hardy) Desktop official Live CD (tested on i386), once in GNOME, upon double-clicking on the the Installer icon (ubiquity gtk_ui), it would take over 90 seconds until the first welcome screen appears.

/var/log/syslog shows the following:

    May 22 21:48:51 ubuntu ubiquity[7667]: Ubiquity 1.8.7
    May 22 21:48:56 ubuntu ubiquity[7667]: log-output -t ubiquity laptop-detect
    May 22 21:48:58 ubuntu ubiquity[7667]: log-output -t ubiquity fontconfig-voodoo --auto --force --quiet
    May 22 21:50:26 ubuntu ubiquity[7667]: switched to page stepLanguage
    May 22 21:50:28 ubuntu localechooser: info: Locale has been preseeded to zh_CN
    May 22 21:50:28 ubuntu localechooser: info: Set languagechooser/language-name = 'Chinese (Simplified)'
    May 22 21:50:28 ubuntu localechooser: info: Set countrychooser/shortlist-zh_CN = 'CN'
    May 22 21:50:28 ubuntu localechooser: info: Set debian-installer/locale = 'zh_CN'
    May 22 21:50:28 ubuntu ubiquity[7667]: switched to page stepLanguage

Note the 88-second gap between the fontconfig-voodoo run and the next output? When preseeded with locales other than zh_CN or zh_TW, the gap is only a few seconds.

Well, the problem is not with fontconfig-voodoo, but further down on line 477: self.live_installer.show() in customize_installer() in /usr/lib/ubiquity/ubiquity/frontend/gtk_ui.py in ubiquity-frontend-gtk (1.8.7). So, does it means it has something to do with Python GTK+ and Glade? But other Glade applications exhibit no such delay as far as I know.

As far as I know, this only affects the GTK+ frontend and not the KDE frontend in Kubuntu.

Thanks,

Anthony

Evan (ev)
Changed in ubiquity:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

strace shows that it's trying to talk to /tmp/scim-panel-socket:0-root. It seems to be hard to fool scim about the user name; it uses getuid() rather than the effective user ID (presumably has to in order to support "ordinary" setuid-root X applications), which will always be 0 in ubiquity, and there's no higher-priority override. We might just have to add one.

Colin Watson (cjwatson)
Changed in ubiquity:
assignee: nobody → kamion
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package scim - 1.4.7-3ubuntu10

---------------
scim (1.4.7-3ubuntu10) intrepid; urgency=low

  * Allow home directory and user name detection to be overridden using
    SCIM_HOME and SCIM_USER environment variables respectively
    (LP: #234208).

 -- Colin Watson <email address hidden> Sat, 26 Jul 2008 11:30:56 +0100

Changed in scim:
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubiquity - 1.9.7

---------------
ubiquity (1.9.7) intrepid; urgency=low

  [ Evan Dandrea ]
  * Properly fix intltool dependency. Remove old copies of intltool
    scripts.
  * Add an auto-login option to the "Who are you?" page.

  [ Michael Terry ]
  * Ensure that some widget is focused after changing page (LP: #241367).

  [ Colin Watson ]
  * Add a no-op compatibility shim for depmod. Some d-i code calls it after
    calling anna-install in order to make sure that new kernel modules are
    installed properly; this is unnecessary and slow in the live CD
    environment (LP: #251117).
  * Brown-paper-bag bug: open /target/var/log/installer/oem-id for writing
    (LP: #251751).
  * Update summary page to fetch the language name correctly from the new
    localechooser.
  * Set SCIM_USER and SCIM_HOME to force scim to use configuration and
    sockets from the live CD user rather than root (LP: #234208).
  * Use a single private debconf-communicate instance for five queries in
    base frontend initialisation rather than using the debconf_operation
    wrapper. This is less convenient, but significantly speeds up startup
    (in a kvm instance here, 19 seconds -> 4 seconds).
  * Remove hardcoded invisible_char properties in order to use GTK's
    defaults (LP: #225882).
  * GTK frontend:
    - Don't translate step_label when switching to the language page;
      on_language_treeview_selection_changed will take care of it if
      necessary, and the page-switch handler may not know the correct
      language (LP: #225876).
    - Bind the Delete key on the partition list to "Delete partition"
      (LP: #218936).
  * KDE frontend:
    - Make "Details" string on summary page translatable (LP: #190491).
  * Depend on rdate for clock-setup.
  * Automatic update of included source packages: apt-setup 1:0.37ubuntu3,
    clock-setup 0.96ubuntu1, localechooser 2.03ubuntu2, user-setup
    1.20ubuntu4.

 -- Colin Watson <email address hidden> Sun, 27 Jul 2008 00:13:38 +0100

Changed in ubiquity:
status: Fix Committed → Fix Released
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.