Tdesktop: Assertion Failed! "index < _sprites.size()" on start

Created on 30 Jan 2020  路  5Comments  路  Source: telegramdesktop/tdesktop

Steps to reproduce

  1. Launch telegram-desktop -debug

Expected behaviour

Telegram should open and ask my phone number (this is a fresh start).

Actual behaviour

Telegram doesn't start. In the log there is Assertion Failed! "index < _sprites.size()" emoji_config.cpp:431

Configuration

Operating system:
Solus Plasma Edition
Version of Telegram Desktop:
1.9.8 and 1.9.9 (both build from source)
Used theme:
Irrelevant since it's a fresh start and the GUI doesn't show up.

Logs:
[2020.01.30 22:58:46] Launched version: 1009009, install beta: [FALSE], alpha: 0, debug mode: [FALSE], test dc: [FALSE]
[2020.01.30 22:58:46] Executable dir: /usr/bin/, name: telegram-desktop
[2020.01.30 22:58:46] Initial working dir: /data/Packaging/telegram/
[2020.01.30 22:58:46] Working dir: /home/user/.local/share/TelegramDesktop/
[2020.01.30 22:58:46] Command line: telegram-desktop -debug
[2020.01.30 22:58:46] Executable path before check: /usr/bin/telegram-desktop
[2020.01.30 22:58:46] Logs started
[2020.01.30 22:58:47] Connecting local socket to /run/user/1000/d0be4b6a6d86755eaf4057a45e9fd3fa-{87A94AB0-E370-4cde-98D3-ACC110C5967D}...
[2020.01.30 22:58:47] This is the only instance of Telegram, starting server and app...
[2020.01.30 22:58:47] Moved logging from '/home/user/.local/share/TelegramDesktop/log_start0.txt' to '/home/user/.local/share/TelegramDesktop/log.txt'!
[2020.01.30 22:58:47] Primary screen DPI: 96.1263
[2020.01.30 22:58:47] Font: from ':/gui/fonts/DAOpenSansRegular.ttf' loaded 'DAOpenSansRegular'
[2020.01.30 22:58:47] Font: from ':/gui/fonts/DAOpenSansRegularItalic.ttf' loaded 'DAOpenSansRegularItalic'
[2020.01.30 22:58:47] Font: from ':/gui/fonts/DAOpenSansBold.ttf' loaded 'DAOpenSansBold'
[2020.01.30 22:58:47] Font: from ':/gui/fonts/DAOpenSansBoldItalic.ttf' loaded 'DAOpenSansBoldItalic'
[2020.01.30 22:58:47] Font: from ':/gui/fonts/DAOpenSansSemibold.ttf' loaded 'DAOpenSansSemibold'
[2020.01.30 22:58:47] Font: from ':/gui/fonts/DAOpenSansSemiboldItalic.ttf' loaded 'DAOpenSansSemiboldItalic'
[2020.01.30 22:58:47] Could not load 'ayatana-appindicator3' with version 1 :(
[2020.01.30 22:58:47] Could not load 'appindicator3' with version 1 :(
[2020.01.30 22:58:47] Could not load 'ayatana-appindicator' with version 1 :(
[2020.01.30 22:58:47] Could not load 'appindicator' with version 1 :(
[2020.01.30 22:58:47] Error: failed to load 'gdk_x11_drawable_get_xdisplay' function!
[2020.01.30 22:58:47] Getting DE, XDG_CURRENT_DESKTOP: 'KDE'
[2020.01.30 22:58:47] Getting DE, DESKTOP_SESSION: '/usr/share/xsessions/plasma'
[2020.01.30 22:58:47] Getting DE, KDE_SESSION_VERSION: '5'
[2020.01.30 22:58:47] DE: KDE5
[2020.01.30 22:58:47] Tray Icon: Try Qt = [TRUE], Prefer appindicator = [FALSE]
[2020.01.30 22:58:47] App Info: reading settings...
[2020.01.30 22:58:47] App Info: reading encrypted settings...
[2020.01.30 22:58:47] Assertion Failed! "index < _sprites.size()" emoji_config.cpp:431
[2020.01.30 22:58:47] OpenAL Logging Level: (not set)

bug

Most helpful comment

For me this was caused by the qtimageformats plugins not being present.

Adding their install path to $QT_PLUGIN_PATH made telegram launch successfully.

Maybe qtimageformats not being present could be detected, to make debugging this failure a little easier?

All 5 comments

even i get on official telegram desktop running on ubuntu 18.04 it does't crash for me.
(Telegram:2264): libappindicator-CRITICAL **: 23:20:14.648: app_indicator_set_icon_full: assertion 'IS_APP_INDICATOR (self)' failed

For me this was caused by the qtimageformats plugins not being present.

Adding their install path to $QT_PLUGIN_PATH made telegram launch successfully.

Maybe qtimageformats not being present could be detected, to make debugging this failure a little easier?

You are the man! Installing qtimageformats solved the issue.
I concur with the suggestion to explicitly tell the user that package is missing.

Where does emoji_config.cpp live? I can't find it in my tdesktop repo.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LeonTheOriginal picture LeonTheOriginal  路  3Comments

beppe9000 picture beppe9000  路  3Comments

TotalKrill picture TotalKrill  路  3Comments

JhonSane picture JhonSane  路  3Comments

slowaways picture slowaways  路  3Comments