Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#57145 - [telegram-desktop] segfaults without libappindicator-gtk3

Attached to Project: Community Packages
Opened by givemeurhats (givemeurhats) - Thursday, 18 January 2018, 19:14 GMT
Last edited by Balló György (City-busz) - Thursday, 18 January 2018, 23:33 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When installed, needs to be run with root.

Additional info:
telegram-desktop 1.2.6-5

Steps to reproduce:
1. Install telegram
2. Try to run it (won't run without root)
This task depends upon

Closed by  Balló György (City-busz)
Thursday, 18 January 2018, 23:33 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#57125 
Comment by Balló György (City-busz) - Thursday, 18 January 2018, 19:48 GMT
Please give us some more details, e.g. command-line output, desktop environment etc.
Comment by givemeurhats (givemeurhats) - Thursday, 18 January 2018, 20:05 GMT
This is the output when run without sudo:
QApplication: invalid style override passed, ignoring it.
Fontconfig warning: "/etc/fonts/conf.d/100-code.conf", line 19: invalid constant used : true
Fontconfig warning: "/etc/fonts/conf.d/100-code.conf", line 22: invalid constant used : true

(telegram-desktop:16545): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplayManager'

(telegram-desktop:16545): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(telegram-desktop:16545): GLib-GObject-CRITICAL **: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(telegram-desktop:16545): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(telegram-desktop:16545): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(telegram-desktop:16545): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(telegram-desktop:16545): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(telegram-desktop:16545): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplay'

(telegram-desktop:16545): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(telegram-desktop:16545): GLib-GObject-CRITICAL **: g_type_register_static: assertion 'parent_type > 0' failed

(telegram-desktop:16545): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(telegram-desktop:16545): GLib-GObject-CRITICAL **: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
Segmentation fault (core dumped)

desktop environment: xfce4
Comment by Eli Schwartz (eschwartz) - Thursday, 18 January 2018, 20:15 GMT
That's a segmentation fault, not a program that requires root. Chances are, whatever is causing the crash is related to your user configuration, which is why when run with a *different user* it succeeds.
Comment by givemeurhats (givemeurhats) - Thursday, 18 January 2018, 20:19 GMT
Ok you can delete the ticket then. Thank you.
Comment by Balló György (City-busz) - Thursday, 18 January 2018, 20:21 GMT
Are you really using telegram-desktop version 1.2.6-5? I assumed that I fixed this problem. Please post the output of the following command:

$ pacman -Q gtk2 gtk3 libappindicator-gtk2 libappindicator-gtk3 telegram-desktop
Comment by givemeurhats (givemeurhats) - Thursday, 18 January 2018, 20:27 GMT
Yeah I am using the 1.2.6-5 version. Followed your instructions, noticed libappindicator-gtk3 was not installed alongside, so I manually installed it and got it working now.
I see its listed as dependency but I just tried removing both and reinstalling telegram-desktop again, and it didn't install libappindicator-gtk3 which was missing.
Comment by Balló György (City-busz) - Thursday, 18 January 2018, 20:32 GMT
libappindicator-gtk3 should not needed to run telegram-desktop, it's just optional.
Comment by givemeurhats (givemeurhats) - Thursday, 18 January 2018, 20:35 GMT
Without it I get the Segmentation fault error. After manually installing it, I can run it with this user. Someone should rename this ticket tho as the problem is different then originally explained. (I see no edit?)
Comment by Balló György (City-busz) - Thursday, 18 January 2018, 20:44 GMT
Which desktop environment are you using?
Comment by givemeurhats (givemeurhats) - Thursday, 18 January 2018, 20:47 GMT
xfce4
Comment by Balló György (City-busz) - Thursday, 18 January 2018, 21:08 GMT
Please attach the file ~/.local/share/TelegramDesktop/log.txt when libappindicator-gtk3 is not installed and the application crashes.
Comment by givemeurhats (givemeurhats) - Thursday, 18 January 2018, 21:21 GMT
[2018.01.18 22:20:31] Launched version: 1002006, alpha: [FALSE], beta: 0, debug mode: [FALSE], test dc: [FALSE]
[2018.01.18 22:20:31] Executable dir: /usr/bin/, name: telegram-desktop
[2018.01.18 22:20:31] Initial working dir: /home/givemeurhats/
[2018.01.18 22:20:31] Working dir: /home/givemeurhats/.local/share/TelegramDesktop/
[2018.01.18 22:20:31] Command line: telegram-desktop
[2018.01.18 22:20:31] Executable path before check: /usr/bin/telegram-desktop
[2018.01.18 22:20:31] Logs started
[2018.01.18 22:20:31] Connecting local socket to /tmp/aeb33e71e281daed205db5a0df5033ba-{87A94AB0-E370-4cde-98D3-ACC110C5967D}...
[2018.01.18 22:20:31] This is the only instance of Telegram, starting server and app...
[2018.01.18 22:20:31] Moved logging from '/home/givemeurhats/.local/share/TelegramDesktop/log_start0.txt' to '/home/givemeurhats/.local/share/TelegramDesktop/log.txt'!
[2018.01.18 22:20:31] Font Error: could not locate 'Open Sans Semibold' font in ':/gui/fonts/OpenSans-Semibold.ttf'.
[2018.01.18 22:20:31] Could not load 'appindicator3' with version 1 :(
[2018.01.18 22:20:31] Error: failed to load 'gdk_set_allowed_backends' function!
Comment by Balló György (City-busz) - Thursday, 18 January 2018, 22:46 GMT
I saw this log with version 1.2.6-4, but not with 1.2.6-5.

Please make sure that you are using the latest version:
https://www.archlinux.org/packages/community/x86_64/telegram-desktop/download/
Comment by givemeurhats (givemeurhats) - Thursday, 18 January 2018, 23:28 GMT
I was using the older version. I'm sorry I wasted your time :(. You can close this now.

Loading...