Tdesktop: Not able to start Telegram

Created on 14 Mar 2016  路  32Comments  路  Source: telegramdesktop/tdesktop

Steps to reproduce

  1. Start Telegram

    Expected behaviour

The Telegram window should open.

Actual behaviour

There is no Telegramwindow but the programm is running with no gui.

Configuration

Operating system:
Xubuntu 15.10 (64 Bit)
4.2.0-34-generic

Version of Telegram Desktop:
Newest... (v 0.9.32)
64 Bit

Logs

Terminal:

(Telegram:2001): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplayManager'    

(Telegram:2001): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed    

(Telegram:2001): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

Log:

[2016.03.14 22:35:31] Launched version: 9032, dev: [FALSE], beta: 0, debug mode: [FALSE], test dc: [FALSE]
[2016.03.14 22:35:31] Executable dir: /home/nick/Telegram/, name: Telegram
[2016.03.14 22:35:31] Initial working dir: /home/nick/Telegram/
[2016.03.14 22:35:31] Working dir: /home/nick/.TelegramDesktop/
[2016.03.14 22:35:31] Arguments: "./Telegram"
[2016.03.14 22:35:31] Logs started
[2016.03.14 22:35:31] Connecting local socket to /tmp/43ff3541779f85ce6e63441761e985cf-{87A94AB0-E370-4cde-98D3-ACC110C5967D}..
[2016.03.14 22:35:31] This is the only instance of Telegram, starting server and app..
[2016.03.14 22:35:31] Moved logging from '/home/nick/.TelegramDesktop/log_start0.txt' to '/home/nick/.TelegramDesktop/log.txt'!
[2016.03.14 22:35:31] Opened '/home/nick/.TelegramDesktop/tdata/working' for reading, the previous Telegram Desktop launch was not finished properly :( Crash log size: 0
linux

Most helpful comment

this solves the problem for me .... a workaround obviously

unset XDG_CURRENT_DESKTOP

All 32 comments

I was just about to post this.. Having the same problem across two linux desktops.

Both running Xubuntu 15.10 Wily, 4.2.0-30-generic #36-Ubuntu SMP

Before the update, telegram ran fine, after the update, getting the same error as above:

~/bin/Telegram$ ./Telegram 
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number

(Telegram:21667): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplayManager'

(Telegram:21667): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(Telegram:21667): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

Tested on two different machines, same issue on both. Telegram process still runs, not using any CPU.

Also attempted to re-download latest version and overwrite, same issue.

I'm running Xubuntu not Lubuntu. ^^

@chorca : I had the problem with the fonts too and then I found this on github;

Try rm -rf the relevant fontconfig file that Telegram complains about. After that, run fc-cache -fv. Should work for just about every distro, but if not, google how to do a font cache rebuild for your specific distro.
This should resolve the fontconfig error for you.

517

This fixed the font problem but not the actual problem

Was able to fix the font issue with that, however, as @Polynomdivison mentions, that is not the main issue. The GUI still does not display.

I am having the same issue with the GLib warnings and no GUI appearing, 64bit Linux Telegram. As a temporary work-around, I have found that the 32bit version _does_ work, though in Xubuntu 15.10 it does not display a proper tray icon.

Deleting the font file removes the error messages but the UI still not appearing.

Same problem on ubuntu 15.10 + Xfce
P.S. version 0.9.28 works fine

I tried the 32Bit version (v 0.9.32) and it works.
You have to install

apt-get install libglib2.0-0:i386

bevor you can start Telegram 32bit.

I've the same problem with Ubuntu 15.10 - Linux 4.2.0-30-generic x86_64 GNU/Linux

Just tried it with other desktop enviroment lxde and the 64 bit version is working.
So it only affects xfce and like @wdog wrote: unity?

Sorry I'm also using xfce 4.12

As am I. Xfce on Xubuntu15.10

Interesting note: if I run the 64bit telegram as root via sudo, it _does_ start with the GUI. It's only when run as my user account that it does not.

Deleting the ~/.TelegramDesktop directory didn't make a difference for if my user account could run Telegram. Nor did trying the latest dev version.

this solves the problem for me .... a workaround obviously

unset XDG_CURRENT_DESKTOP

Same problem here
I'm running Xubuntu 15.10 64bit, Xfce 4.12

From shell i get this error:

dario@dario-desktop:~/Telegram$ ./Telegram
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number

Same problem here.

Also using Xubuntu 15.10, Xfce 4.12.

Terminal shows this error running Telegram executable:

Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number

(Telegram:22818): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplayManager'

(Telegram:22818): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(Telegram:22818): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

Temporal solution, run as sudo as @Skeptyc says.

What does ~/.TelegramDesktop/DebugLogs/log_...txt say when you run "./Telegram -debug" from Terminal and wait for like ten seconds with no main window displayed? Is the process still running after that or did it crash silently?

Is still running. no crash

but if I unset the variable it starts

unset XDG_CURRENT_DESKTOP

currently is set as

XDG_CURRENT_DESKTOP=XFCE

my log

[13:04:53.090 00-0000001] Launched version: 9032, dev: [FALSE], beta: 0, debug mode: [TRUE], test dc: [FALSE]
[13:04:53.090 00-0000002] Executable dir: /home/XXX/.TelegramDesktop/, name: Telegram
[13:04:53.090 00-0000003] Initial working dir: /home/XXX/.TelegramDesktop/
[13:04:53.090 00-0000004] Working dir: /home/XXX/.TelegramDesktop/
[13:04:53.090 00-0000005] Arguments: "./Telegram" "-debug"
[13:04:53.090 00-0000006] Logs started
[13:04:53.209 00-0000007] Connecting local socket to /tmp/5e3d748bd82bf9ca76b8488b85acbb8d-{87A94AB0-E370-4cde-98D3-ACC110C5967D}..
[13:04:53.209 00-0000008] Socket connect error 0, starting server and app..
[13:04:53.210 00-0000009] Moved logging from '/home/XXX/.TelegramDesktop/log_start0.txt' to '/home/XXX/.TelegramDesktop/log.txt'!
[13:04:53.213 00-0000010] Debug logs started. (logs.cpp : 426)
[13:04:53.213 00-0000011] Opened '/home/XXX/.TelegramDesktop/tdata/working' for reading, the previous Telegram Desktop launch was not finished properly :( Crash log size: 0
[13:04:53.220 00-0000012] Loading libraries (pspecific_linux.cpp : 1257)
[13:04:53.220 00-0000013] Loading 'appindicator3' with version 1.. (pspecific_linux.cpp : 350)
[13:04:53.227 00-0000014] Loaded 'appindicator3' with version 1! (pspecific_linux.cpp : 353)
[13:04:53.227 00-0000015] Loading 'gtk-3' with version 0.. (pspecific_linux.cpp : 350)
[13:04:53.228 00-0000016] Loaded 'gtk-3' with version 0! (pspecific_linux.cpp : 353)
[13:04:53.228 00-0000017] Library gtk functions loaded! (pspecific_linux.cpp : 385)

I have exact same issue with 0.9.32 and latest Xubuntu. Had to rollback to 0.9.18, which is working perfectly.

@telegramdesktop my log:

[2016.03.15 13:52:49] Launched version: 9032, dev: [FALSE], beta: 0, debug mode: [TRUE], test dc: [FALSE]
[2016.03.15 13:52:49] Executable dir: /home/destroid/Programas/Telegram/, name: Telegram
[2016.03.15 13:52:49] Initial working dir: /home/destroid/Programas/Telegram/
[2016.03.15 13:52:49] Working dir: /home/destroid/.TelegramDesktop/
[2016.03.15 13:52:49] Arguments: "./Telegram" "-debug"
[2016.03.15 13:52:49] Logs started
[2016.03.15 13:52:50] Connecting local socket to /tmp/1d06aad8d648d6523142d77abab343e9-{87A94AB0-E370-4cde-98D3-ACC110C5967D}..
[2016.03.15 13:52:50] Socket connect error 0, starting server and app..
[2016.03.15 13:52:50] Moved logging from '/home/destroid/.TelegramDesktop/log_start0.txt' to '/home/destroid/.TelegramDesktop/log.txt'!
[2016.03.15 13:52:50] Opened '/home/destroid/.TelegramDesktop/tdata/working' for reading, the previous Telegram Desktop launch was not finished properly :( Crash log size: 0

Same issue with 0.9.31, 0.9.32 versions on Xubuntu 15.10. 0.9.28 works fine

@crackedmind Works perfectly in Xubuntu 14.04 for me :(

unset XDG_CURRENT_DESKTOP works, but tray icon is missed

I can confirm the issue on Xubuntu 15.10 (working fine in Xubuntu 14.04). I'll investigate that, thanks for your reports.

Font error and not start telegram gui for xubuntu 15.10

Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number

and

QObject::connect: Cannot connect (null)::stateChanged(QNetworkSession::State) to QNetworkReplyHttpImpl::_q_networkSessionStateChanged(QNetworkSession::State)
QObject::connect: Cannot connect (null)::stateChanged(QNetworkSession::State) to QNetworkReplyHttpImpl::_q_networkSessionStateChanged(QNetworkSession::State)

Downgrade 0.9.28 works fine

Font errors are irrelevant, they have nothing to do with the problem.

This issue also occurs on Mate Desktop (14.04). The workaround to set XDG_CURRENT_DESKTOP to "GNOME" used to work (it's set to "MATE" by default) but no longer does.

I found the moment when it all broke and I have an idea why. Currently I'll rollback the style changes from here: https://github.com/telegramdesktop/tdesktop/issues/987 because it is incompatible with working under Xubuntu 15.10 with a good-looking tray icon.

This will be done in the next release, I hope to deploy a dev version tomorrow.

I have the same issue on Xubuntu 15.10. Looking forward for an update. Thanks for your hard work!

Everybody on Xubuntu 15.10 please check out the 0.9.33 stable version from https://desktop.telegram.org, it should work fine now.

(can anyone confirm?)

Confirmed, this update fixes the issue. I am able to see the Telegram GUI in Xubuntu 15.10 now.

Fix confirmed

Confirmed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mindstormer619 picture Mindstormer619  路  3Comments

abhyrz picture abhyrz  路  3Comments

ArmeF97 picture ArmeF97  路  3Comments

whywhyy picture whywhyy  路  3Comments

Justinzobel picture Justinzobel  路  3Comments