Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1018065: telegram-desktop: High CPU usage (up to 100%), invisible message reactions and problems with animated stickers

441 views
Skip to first unread message

bebrabox

unread,
Aug 24, 2022, 8:40:04 PM8/24/22
to
Package: telegram-desktop
Version: 4.1.1+ds-1
Severity: normal

Dear Maintainer,

After one of the updates message reactions became invisible
(if there are lots of reactions 1 or 2 can be visible).
It didn't really matter and I thought this bug would go away
on its own (or after next update). But then I noticed that
there also were issues with animated stickers (some of them
also disappear, some of them freeze).

Short investigation showed that CPU usage was rising after
looking at animated stickers (either by getting them from
other people or by trying to send them). CPU usage was
rising up to 100% and hung up the system. Build from telegram's
official site didn't have this issues.

Hope you will find my report useful

-- Package-specific info:

-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.18.0-4-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages telegram-desktop depends on:
ii libabsl20210324 0~20210324.2-4
ii libavcodec59 7:5.1-2+b1
ii libavformat59 7:5.1-2+b1
ii libavutil57 7:5.1-2+b1
ii libc6 2.34-4
ii libgcc-s1 12.2.0-1
ii libglib2.0-0 2.73.3-2
ii libglibmm-2.4-1v5 2.66.4-1
ii libhunspell-1.7-0 1.7.1-1
ii libjpeg62-turbo 1:2.1.2-1
ii liblz4-1 1.9.3-2
ii libminizip1 1.1-8+b1
ii libopenal1 1:1.19.1-2
ii libopus0 1.3.1-2
ii libqrcodegencpp1 1.8.0-1.1
ii libqt5core5a [qtbase-abi-5-15-4] 5.15.4+dfsg-5
ii libqt5gui5 5.15.4+dfsg-5
ii libqt5network5 5.15.4+dfsg-5
ii libqt5svg5 5.15.4-2
ii libqt5waylandclient5 [qtwayland-client-abi-5-15-4] 5.15.4-2
ii libqt5widgets5 5.15.4+dfsg-5
ii librlottie0-1 0.1+dfsg-3
ii libsigc++-2.0-0v5 2.10.8-1
ii libssl3 3.0.5-2
ii libstdc++6 12.2.0-1
ii libswresample4 7:5.1-2+b1
ii libswscale6 7:5.1-2+b1
ii libvpx7 1.12.0-1
ii libwayland-client0 1.21.0-1
ii libx11-6 2:1.8.1-2
ii libxcb-keysyms1 0.4.0-1+b2
ii libxcb-record0 1.15-1
ii libxcb-screensaver0 1.15-1
ii libxcb1 1.15-1
ii libxcomposite1 1:0.4.5-1
ii libxdamage1 1:1.1.5-2
ii libxext6 2:1.3.4-1
ii libxfixes3 1:6.0.0-1
ii libxrandr2 2:1.5.2-2+b1
ii libxtst6 2:1.2.3-1.1
ii libxxhash0 0.8.1-1
ii qt5-image-formats-plugins 5.15.4-2
ii zlib1g 1:1.2.11.dfsg-4.1

Versions of packages telegram-desktop recommends:
ii fonts-open-sans 1.11-2
ii libwebkit2gtk-4.0-37 2.36.6-1
ii libwebkit2gtk-4.1-0 2.36.6-1

telegram-desktop suggests no packages.

Versions of packages telegram-desktop is related to:
ii xdg-desktop-portal 1.14.6-1
pn xdg-desktop-portal-backend <none>

-- debconf-show failed

Nicholas Guriev

unread,
Sep 3, 2022, 6:30:03 AM9/3/22
to
Alexander Kernozhitsky, thank you for many clarifications. Can you please
extract somehow the buggy sticker (animation)? So that the bug in rLottie
could be fixed. If you do not know which particular sticker causes the glitch,
point out the problem sticker set.
signature.asc

Nicholas Guriev

unread,
Sep 3, 2022, 1:30:03 PM9/3/22
to
Thank you for the reproducer. I am investigating the issue. I noticed that
with the librlottie0-1 package of version 0.1+dfsg-2 tdesktop is able to
render all the stickers and the reactions there.

You can find the previous version of rLottie at the snapshot.d.o site.
https://snapshot.debian.org/package/rlottie/0.1%2Bdfsg-2/#librlottie0-1_0.1:2b:dfsg-2

I was trying to work around other crashes in the -3 revision. But apparently,
the regression seeped. 😓

Although, a certain thread in tdesktop still hangs after opening the channel.
This can be related to FFmpeg. I will apply the patch from your PR on GitHub.

On 03.09.2022 17:35:57 MSK you wrote:
> Unfortunately, I don't know how to export a sticker from Telegram, so cannot
> do it myself.

By the way, you can download any sticker from context menu on right-click,
with the item "Save as..." there.
signature.asc

Nicholas Guriev

unread,
Sep 10, 2022, 11:30:03 AM9/10/22
to
clone 1018065 -2
reassign -2 librlottie0-1 0.1+dfsg-3
retitle -2 rlottie: invisible animation with separated layers
retitle 1018065 telegram-desktop: dangling decoding threads due to video stickers
thanks

Hi, everyone interested!

I am splitting this bug report into two as Alexander Kernozhitsky suggested.
Because the problems need to be fixed in different packages.

For disappeared reactions and invisible animated stickers, I already have a
fix. It was due to wrong check in my No-cyclic-structures.patch. As for
incorrect FFmpeeg usage, it will be fixed in the upcoming Telegram release.
signature.asc
0 new messages