telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.33k stars 5.23k forks source link

Segmentation fault in Debian Testing #4759

Closed phpony closed 6 years ago

phpony commented 6 years ago

App doesn't start in Debian Testing with XFCE4.

Steps to reproduce

  1. Download
  2. Run

Expected behaviour

Should start and work

Actual behaviour

Freezes for 30 seconds, than blinks it's window and crashes.

Configuration

Running tsetup.1.2.24.alpha.tar.gz on Debian Buster

xfce4                 4.12.4
fontconfig                 2.13.0-5
libappindicator1:amd64                 0.4.92-5
libappindicator3-1:amd64               0.4.92-5 
libayatana-appindicator1               0.5.3-3
libayatana-appindicator3-1             0.5.3-3

Logs

First there's 10 screens of fontconfig errors:

Fontconfig warning: line 5: unknown element "its:rules"
Fontconfig warning: line 6: unknown element "its:translateRule"
Fontconfig error: line 6: invalid attribute 'translate'
Fontconfig error: line 6: invalid attribute 'selector'
Fontconfig error: line 7: invalid attribute 'xmlns:its'
Fontconfig error: line 7: invalid attribute 'version'
Fontconfig warning: line 9: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 8: unknown element "description"
....
ontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'version'
Fontconfig error: Cannot load default config file

Than crash:

(Telegram:12323): libappindicator-CRITICAL **: 13:22:11.057: app_indicator_set_icon_full: assertion 'IS_APP_INDICATOR (self)' failed
ICE default IO error handler doing an exit(), pid = 12323, errno = 32
Segmentation fault
phpony commented 6 years ago

$ cat ~/.local/share/TelegramDesktop/log.txt

[2018.05.30 14:36:06] Launched version: 1002024, alpha: [TRUE], beta: 0, debug mode: [TRUE], test dc: [FALSE]
[2018.05.30 14:36:06] Executable dir: /home/phony/debug/tgrm/, name: Telegram
[2018.05.30 14:36:06] Initial working dir: /home/phony/debug/tgrm/
[2018.05.30 14:36:06] Working dir: /home/phpony/.local/share/TelegramDesktop/
[2018.05.30 14:36:06] Command line: ./Telegram -debug
[2018.05.30 14:36:06] Executable path before check: /home/phony/debug/tgrm/Telegram
[2018.05.30 14:36:06] Logs started
[2018.05.30 14:36:06] Connecting local socket to /tmp/[...]...
[2018.05.30 14:36:06] This is the only instance of Telegram, starting server and app...
[2018.05.30 14:36:06] Moved logging from '/home/phpony/.local/share/TelegramDesktop/log_start0.txt' to '/home/phpony/.local/share/TelegramDesktop/log.txt'!
[2018.05.30 14:37:47] Font Error: could not resolve 'Open Sans Semibold' font, got 'Open Sans' after feeding '%3'.
[2018.05.30 14:37:47] Error: failed to load 'gdk_x11_drawable_get_xdisplay' function!
[2018.05.30 14:37:47] Getting DE, XDG_CURRENT_DESKTOP: 'XFCE'
[2018.05.30 14:37:47] Getting DE, DESKTOP_SESSION: 'lightdm-xsession'
[2018.05.30 14:37:47] Getting DE, KDE_SESSION_VERSION: ''
[2018.05.30 14:37:47] DE: XFCE
[2018.05.30 14:37:47] Tray Icon: Try Qt = [TRUE], Prefer appindicator = [TRUE]
[2018.05.30 14:37:47] OpenAL Logging Level: (not set)
[2018.05.30 14:37:47] Audio Playback Devices: OpenAL Soft
[2018.05.30 14:37:47] Audio Playback Default Device: OpenAL Soft
[2018.05.30 14:37:47] Audio Capture Devices: Built-in Audio Analog Stereo;Monitor of Built-in Audio Analog Stereo
[2018.05.30 14:37:47] Audio Capture Default Device: Built-in Audio Analog Stereo
[2018.05.30 14:37:47] TCP Error: network - Network unreachable
[2018.05.30 14:37:47] HTTP Error: network error 99 - Network unreachable
[2018.05.30 14:37:47] Tray Icon: Using appindicator tray icon.
[2018.05.30 14:37:47] Not using Unity Launcher count.

$ cat ~/.local/share/TelegramDesktop/DebugLogs/log_14_30.txt

20180530
[14:36:06.458 00-0000001] Executable path before check: /home/phony/debug/tgrm/Telegram
[14:36:06.459 00-0000002] Launched version: 1002024, alpha: [TRUE], beta: 0, debug mode: [TRUE], test dc: [FALSE]
[14:36:06.459 00-0000003] Executable dir: /home/phony/debug/tgrm/, name: Telegram
[14:36:06.459 00-0000004] Initial working dir: /home/phony/debug/tgrm/
[14:36:06.459 00-0000005] Working dir: /home/phpony/.local/share/TelegramDesktop/
[14:36:06.459 00-0000006] Command line: ./Telegram -debug
[14:36:06.459 00-0000007] Logs started
[14:36:06.469 00-0000008] Connecting local socket to /tmp/[...]...
[14:36:06.469 00-0000009] This is the only instance of Telegram, starting server and app...
[14:36:06.469 00-0000010] Moved logging from '/home/phpony/.local/share/TelegramDesktop/log_start0.txt' to '/home/phpony/.local/share/TelegramDesktop/log.txt'!
[14:36:06.469 00-0000011] Debug logs started. (logs.cpp : 466)
[14:37:47.488 00-0000012] Font Error: could not resolve 'Open Sans Semibold' font, got 'Open Sans' after feeding '%3'.
[14:37:47.488 00-0000013] Loading libraries (linux_libs.cpp : 231)
[14:37:47.488 00-0000014] Loading 'appindicator3' with version 1... (linux_libs.cpp : 19)
[14:37:47.497 00-0000015] Loaded 'appindicator3' with version 1! (linux_libs.cpp : 22)
[14:37:47.497 00-0000016] Loading 'gtk-3' with version 0... (linux_libs.cpp : 19)
[14:37:47.497 00-0000017] Loaded 'gtk-3' with version 0! (linux_libs.cpp : 22)
[14:37:47.497 00-0000018] Library gtk functions loaded! (linux_libs.cpp : 102)
[14:37:47.497 00-0000019] Limit allowed GDK backends to x11 (linux_libs.cpp : 109)
[14:37:47.497 00-0000020] Library gtk functions loaded! (linux_libs.cpp : 113)
[14:37:47.507 00-0000021] Checked gtk with gtk_init_check! (linux_libs.cpp : 120)
[14:37:47.507 00-0000022] Library appindicator functions loaded! (linux_libs.cpp : 130)
[14:37:47.507 00-0000023] Error: failed to load 'gdk_x11_drawable_get_xdisplay' function!
[14:37:47.507 00-0000024] Getting DE, XDG_CURRENT_DESKTOP: 'XFCE'
[14:37:47.507 00-0000025] Getting DE, DESKTOP_SESSION: 'lightdm-xsession'
[14:37:47.507 00-0000026] Getting DE, KDE_SESSION_VERSION: ''
[14:37:47.507 00-0000027] DE: XFCE
[14:37:47.507 00-0000028] Loading libnotify (linux_libnotify.cpp : 66)
[14:37:47.507 00-0000029] Loading 'notify' with version 4... (linux_libnotify.cpp : 17)
[14:37:47.508 00-0000030] Loaded 'notify' with version 4! (linux_libnotify.cpp : 20)
[14:37:47.508 00-0000031] Tray Icon: Try Qt = [TRUE], Prefer appindicator = [TRUE]
[14:37:47.508 00-0000032] Status icon api loaded! (main_window_linux.cpp : 437)
[14:37:47.518 00-0000043] App Info: failed to open 'settings' for reading (localstorage.cpp : 346)
[14:37:47.518 00-0000044] Window Pos: Writing to storage 0, 0, 0, 0 (maximized [FALSE]) (localstorage.cpp : 2525)
[14:37:47.518 00-0000045] App Info: placing .desktop file (specific_linux.cpp : 426)
[14:37:47.518 00-0000046] App Info: Icon copied to 'tdata' (specific_linux.cpp : 447)
[14:37:47.526 00-0000047] App Info: command succeeded, command (in utf8): desktop-file-install --dir=/home/phpony/.local/share/applications --delete-original /home/phpony/.local/share/TelegramDesktop/tdata/telegramdesktop.desktop (specific_linux.cpp : 414)
[14:37:47.526 00-0000048] App Info: removing old .desktop file (specific_linux.cpp : 468)
[14:37:47.530 00-0000049] App Info: command succeeded, command (in utf8): update-desktop-database /home/phpony/.local/share/applications (specific_linux.cpp : 414)
[14:37:47.541 00-0000050] App Info: command succeeded, command (in utf8): xdg-mime default telegramdesktop.desktop x-scheme-handler/tg (specific_linux.cpp : 414)
[14:37:47.541 00-0000051] App Info: registerting for Gnome (specific_linux.cpp : 480)
[14:37:47.551 00-0000052] App Info: command succeeded, command (in utf8): gconftool-2 -t string -s /desktop/gnome/url-handlers/tg/command /home/phony/debug/tgrm/Telegram\ --\ %s (specific_linux.cpp : 414)
[14:37:47.560 00-0000053] App Info: command succeeded, command (in utf8): gconftool-2 -t bool -s /desktop/gnome/url-handlers/tg/needs_terminal false (specific_linux.cpp : 414)
[14:37:47.570 00-0000054] App Info: command succeeded, command (in utf8): gconftool-2 -t bool -s /desktop/gnome/url-handlers/tg/enabled true (specific_linux.cpp : 414)
[14:37:47.570 00-0000055] App Info: placing .protocol file (specific_linux.cpp : 486)
[14:37:47.580 00-0000056] OpenAL Logging Level: (not set)
[14:37:47.580 00-0000057] Audio Playback Devices: OpenAL Soft
[14:37:47.580 00-0000058] Audio Playback Default Device: OpenAL Soft
[14:37:47.596 00-0000059] Audio Capture Devices: Built-in Audio Analog Stereo;Monitor of Built-in Audio Analog Stereo
[14:37:47.596 00-0000060] Audio Capture Default Device: Built-in Audio Analog Stereo
[14:37:47.598 00-0000061] Application Info: inited... (messenger.cpp : 116)
[14:37:47.598 00-0000062] Application Info: starting app... (messenger.cpp : 124)
[14:37:47.631 00-0000063] Window Pos: Initializing first 0, 0, 0, 0 (maximized [FALSE]) (main_window.cpp : 189)
[14:37:47.631 00-0000064] Window Pos: Setting first 560, 251, 800, 600 (main_window.cpp : 219)
[14:37:47.640 00-0000065] Application Info: window created... (messenger.cpp : 139)
[14:37:47.742 00-0000066] App Info: failed to open 'map' for reading (localstorage.cpp : 346)
[14:37:47.768 00-0000067] Application Info: local map read... (messenger.cpp : 152)
[14:37:47.768 00-0000074] Application Info: MTP started... (messenger.cpp : 156)
[14:37:47.768 00-0000075] Application Info: showing. (messenger.cpp : 158)
[14:37:47.768 01-0000076] This connection marked as not old! (connection.cpp : 357)
[14:37:47.769 01-0000081] Connection Info: sending fake req_pq through HTTP transport to '149.154.167.51' (connection_http.cpp : 84)
[14:37:47.772 00-0000083] Update Info: requesting update state from 'http://updates.tdesktop.com/current' (update_checker.cpp : 519)
[14:37:47.773 00-0000084] Trying to create AppIndicator (main_window_linux.cpp : 460)
[14:37:47.773 01-0000085] TCP Error: network - Network unreachable
[14:37:47.774 01-0000088] Connection Info: sending fake req_pq through HTTP transport to '2001:067c:04e8:f002:0000:0000:0000:000a' (connection_http.cpp : 84)
[14:37:47.775 01-0000090] HTTP Error: network error 99 - Network unreachable
[14:37:47.816 00-0000092] Created gtk menu for appindicator! (main_window_linux.cpp : 463)
[14:37:47.816 00-0000093] Tray Icon: Using appindicator tray icon.
[14:37:47.816 00-0000094] Not using Unity Launcher count.
[14:37:47.818 00-0000095] Creating tray menu! (main_window_linux.cpp : 216)
stek29 commented 6 years ago

assertion 'IS_APP_INDICATOR (self)' failed

I think that error does not cause crash, since there were reports with such line when crash was caused by something else.

Please try alpha version from https://desktop.telegram.org/changelog#alpha-version. When it crashes, it would show a report on next launch. Post crash tag here.

phpony commented 6 years ago

That IS alpha version. Also provided debug logs.

stek29 commented 6 years ago

So, on next start it doesn't show crash report window?

phpony commented 6 years ago

No, there were no crash report windows. But I've figured to finally run app this way:

$ FONTCONFIG_FILE=/etc/fonts/ ./Telegram

Telegram binaries are incompatible with the fontconfig configuration files of Debian Buster cause it's being statically linked with older version.

So, this is related to #4493 and should be closed.

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.