Invalid UTF-8 in ~/.gtk-bookmarks breaks gnome-shell
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-shell (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gnome-shell
For reasons I can’t explain, I had some invalid UTF-8 characters in my ~/.gtk-bookmarks file. This completely breaks logging in with gnome-shell. I get nothing but my desktop wallpaper. (I used to get the “fail whale” before that was disabled in gnome-session 3.0.2-0ubuntu5.)
Relevant errors from ~/.xsession-errors:
JS ERROR: !!! Exception was: Error: Failed to convert UTF-8 string to JS string: Invalid byte sequence in conversion input
JS ERROR: !!! lineNumber = '0'
JS ERROR: !!! fileName = 'gjs_throw'
JS ERROR: !!! stack = '("Failed to convert UTF-8 string to JS string: Invalid byte sequence in conversion input")@gjs_throw:0
()@/usr/
()@/usr/
PlacesManager(
start()
@<main>:1
'
JS ERROR: !!! message = 'Failed to convert UTF-8 string to JS string: Invalid byte sequence in conversion input'
Window manager warning: Log level 32: Execution of main.js threw exception: Error: Failed to convert UTF-8 string to JS string: Invalid byte sequence in conversion input
gnome-session[
gnome-session[
You can reproduce this with
echo $'\xff' > ~/.gtk-bookmarks
The problem goes away when ~/.gtk-bookmarks is deleted.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gnome-shell 3.0.2-1
ProcVersionSign
Uname: Linux 3.0-0-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Wed Jun 15 17:15:05 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20101202)
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)
I'm trying Ubuntu 11.10 AMD64 and I can only log in with the guest user. On the upper right corner, instead of the name, I see [Invalid UTF-8].
When I try other users I get only the wallpaper, as Anders, and I have to reboot.
I can login with my main user on the Ctrl-Alt-F2 console. I see that non-English characters (ñ, ç, é...) are not recognized. Maybe is the ca_ES UTF-8 causing these problems. There is no .gtk-bookmarks file in my home directory.
I changed the directory names of my main user, to get rid of the accents (i changed Públic with Public and so on), and I modified .config/ user-dirs. dirs accordingly. No results.