fontconfig-voodoo crashed with TypeError in getUserDefaultLanguage(): expected string or buffer

Bug #833065 reported by Guillaume Hain
436
This bug affects 80 people
Affects Status Importance Assigned to Milestone
language-selector (Ubuntu)
Fix Released
High
Unassigned
Oneiric
Fix Released
High
Unassigned

Bug Description

$ lsb_release -rd
Description: Ubuntu oneiric (development branch)
Release: 11.10

$ apt-cache policy language-selector
language-selector:
  Installed: (none)
  Candidate: 0.48
  Version table:
     0.48 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric/universe amd64 Packages

Error occured during updates

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: language-selector-common 0.48
ProcVersionSignature: Ubuntu 3.0.0-9.13-generic 3.0.3
Uname: Linux 3.0.0-9-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Wed Aug 24 17:11:30 2011
ExecutablePath: /usr/bin/fontconfig-voodoo
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110803.1)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/fontconfig-voodoo --auto --quiet
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
PythonArgs: ['/usr/bin/fontconfig-voodoo', '--auto', '--quiet']
SourcePackage: language-selector
Title: fontconfig-voodoo crashed with TypeError in getUserDefaultLanguage(): expected string or buffer
UpgradeStatus: Upgraded to oneiric on 2011-08-23 (0 days ago)
UserGroups:

Revision history for this message
Guillaume Hain (zedtux) wrote :
tags: removed: need-duplicate-check
Changed in language-selector (Ubuntu):
status: New → Confirmed
tags: added: bugpattern-needed
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Fixed in
language-selector (0.49) oneiric; urgency=low

  [ Gunnar Hjalmarsson ]
  * LanguageSelector/LocaleInfo.py:
    Regression fix: pass "msg" as a string to warnings.warn()
    (LP: #833090)

visibility: private → public
Changed in language-selector (Ubuntu Oneiric):
importance: Undecided → High
status: Confirmed → Fix Released
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Thanks for making this bug public, Jean-Baptiste. It's kind of annoying when a large number of bugs are automatically made duplicates of a private bug.

Revision history for this message
Daryl Sweat (curnel-d) wrote :

When was the fix released? Because this is still an issue for me.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

@Daryl
It was uploaded yesterday at 20.00 UTC. If it's still an issue with v. 0.49, please let us know.

Revision history for this message
Philipp Dreimann (philipp-dreimann-deactivatedaccount) wrote :

I just had this bug with v 0.49. See #833785 .

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

@Philipp
That's strange. I can't reproduce it, and the bug reports have stopped dropping in. Also, Traceback.txt in bug 833785 indicates that it's v. 0.48.

Are you able to reproduce the bug, or was it a temporary thing?

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

In addition to bug #833785, another contradictory report - bug #838019 - has been marked as a duplicate of this bug. On one hand it states package language-selector-common 0.49, but on the other hand the attached Traceback.txt indicates something else:

Traceback (most recent call last):
  File "/usr/bin/fontconfig-voodoo", line 102, in <module>
    main()
  File "/usr/bin/fontconfig-voodoo", line 88, in main
    fc.setConfigBasedOnLocale()
  File "/usr/lib/python2.7/dist-packages/LanguageSelector/FontConfig.py", line 114, in setConfigBasedOnLocale
    lang = self.li.getUserDefaultLanguage()[1]
  File "/usr/lib/python2.7/dist-packages/LanguageSelector/LocaleInfo.py", line 251, in getUserDefaultLanguage
    warnings.warn(msg)
------------------^^^
This tells me that the 0.48 version of LocaleInfo.py was used, not version 0.49.

@Philipp Dreimann and Edson T. Marques,
It would be great if you could let us know if the problem persists also after a reboot, or if it was a temporary glitch.

Revision history for this message
Philipp Dreimann (philipp-dreimann-deactivatedaccount) wrote :

The problem seems to be solved.

Thanks!

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Thanks for letting us know, Philipp. However, two more bugs besides yours (bug #839212 and bug #838019) report about the same type of mysterious crash.

I'm confused. :( Subscribed Martin Pitt for help on this.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

bug 839212 is a dupe with language-selector 0.50 so reopening this task.

Changed in language-selector (Ubuntu Oneiric):
status: Fix Released → Triaged
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

It seems like dpkg does not safely replace the old LocaleInfo.py file with the new one when upgrading to 0.49 or 0.50. I'm not able to tell if that is a general dpkg problem, or if the reason can be found in the language-selector package.

tags: added: bugpattern-written
removed: bugpattern-needed
Revision history for this message
Martin Pitt (pitti) wrote :

I'm closing this again as the tracebacks clearly indicate that the crash happened with a version earlier than 0.49. I suppose what happened is that the crash happened, then people dist-upgraded, and only the reported the crash, so apport picked up the wrong package version.

If you can still reproduce this with the current versions, please shout here. Thanks!

Revision history for this message
Martin Pitt (pitti) wrote :

language-selector (0.49) oneiric; urgency=low

  [ Gunnar Hjalmarsson ]
  * LanguageSelector/LocaleInfo.py:
    Regression fix: pass "msg" as a string to warnings.warn()
    (LP: #833090).

  [ Rodrigo Moya ]
  * Add .desktop magic so that it shows up on the new GNOME Control Center

Changed in language-selector (Ubuntu Oneiric):
status: Triaged → 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.