Bug 1879048 - Fails to start because of non-UTF-8 locale
Summary: Fails to start because of non-UTF-8 locale
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-terminal
Version: 32
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Debarshi Ray
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-15 10:33 UTC by jari.kosonen4
Modified: 2020-10-07 17:04 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-07 17:04:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description jari.kosonen4 2020-09-15 10:33:32 UTC
Description of problem:
Gnome-terminal suddenly stopped starting (opening the xwindow)

Version-Release number of selected component (if applicable):
# GNOME Terminal 3.36.1.1 using VTE 0.60.3 +BIDI +GNUTLS +ICU +SYSTEMD

How reproducible:
Try to start gnome-terminal from the menu or xterm command line

Steps to Reproduce:
1. Try start gnome terminal
2. long wait, then it didn't open
3.

Actual results:
Gnome-terminal didn't start

Expected results:
Gnome-terminal stats

Additional info: 
Error-log when gnome-terminal is started from xterm:
[jari@ENVY-17 ~]$ gnome-terminal 
# _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for â
# watch_fast: "/org/gnome/desktop/interface/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/settings-daemon/peripherals/mouse/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/desktop/sound/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/desktop/privacy/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/desktop/wm/preferences/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/settings-daemon/plugins/xsettings/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/desktop/a11y/" (establishing: 0, active: 0)
# watch_established: "/org/gnome/desktop/interface/" (establishing: 1)
# watch_established: "/org/gnome/settings-daemon/peripherals/mouse/" (establishing: 1)
# watch_established: "/org/gnome/desktop/sound/" (establishing: 1)
# watch_established: "/org/gnome/desktop/privacy/" (establishing: 1)
# watch_established: "/org/gnome/desktop/wm/preferences/" (establishing: 1)
# watch_established: "/org/gnome/settings-daemon/plugins/xsettings/" (establishing: 1)
# watch_established: "/org/gnome/desktop/a11y/" (establishing: 1)
# unsetenv() is not thread-safe and should not be used after threads are created
# _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for â

# Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached

Comment 1 Kalev Lember 2020-09-15 10:54:24 UTC
I don't know a whole lot how to debug gnome-terminal, but one thing I know is that it has a "server process". I assume it's that process that's not starting. Can you try running /usr/libexec/gnome-terminal-server from xterm and see if it sheds any light on what's going wrong?

Comment 2 Debarshi Ray 2020-09-15 13:27:23 UTC
A bit of background on GNOME Terminal ...

/usr/bin/gnome-terminal is just a tiny little launcher. It sends a D-Bus message to /usr/libexec/gnome-terminal-server to request it to create a new terminal tab or window. The server binary is where most of the application lives.

Could you please open two xterm windows? In the first, do:

$ /usr/libexec/gnome-terminal-server

Then, in the second, do:

$ /usr/bin/gnome-terminal

What do you see in those two windows?

(Just be careful not to wait too long between those two commands.)
https://access.redhat.com/support/cases/#/case/02748273/discussion?commentId=a0a2K00000WSgBEQA1

Comment 3 jari.kosonen4 2020-09-16 18:54:05 UTC
[jari@ENVY-17 ~]$ /usr/libexec/gnome-terminal-server
Non UTF-8 locale (ANSI_X3.4-1968) is not supported!
-> Here is strange result as this.

[jari@ENVY-17 ~]$ /usr/bin/gnome-terminal
# _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
# _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
# watch_fast: "/org/gnome/terminal/legacy/" (establishing: 0, active: 0)
# unwatch_fast: "/org/gnome/terminal/legacy/" (active: 0, establishing: 1)
# watch_established: "/org/gnome/terminal/legacy/" (establishing: 0)
-> Issues as this listed

But it is starting now.
It looks like setting 'export LANG=C' in .bashrc caused the problem of gnome-terminal not starting.

Comment 4 Debarshi Ray 2020-10-07 17:04:46 UTC
(In reply to jari.kosonen4 from comment #3)
> [jari@ENVY-17 ~]$ /usr/libexec/gnome-terminal-server
> Non UTF-8 locale (ANSI_X3.4-1968) is not supported!
> -> Here is strange result as this.

This is expected. Non-UTF-8 locales aren't supported.

> It looks like setting 'export LANG=C' in .bashrc caused the problem of
> gnome-terminal not starting.

Yes, exactly.


Note You need to log in before you can comment on or make changes to this bug.