FS#76506 - [telegram-desktop] crash when playing videos

Attached to Project: Community Packages
Opened by farid (osc) - Thursday, 10 November 2022, 12:39 GMT
Last edited by Toolybird (Toolybird) - Sunday, 21 May 2023, 04:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Felix Yan (felixonmars)
Jiachen Yang (farseerfc)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Whenever clicking on a video file to play it Telegram crashes.

Additional info:
* package version(s)
Name : telegram-desktop
Version : 4.3.1-2

* config and/or log files etc.
Thread 17 "telegram-deskto" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd5aff6c0 (LWP 12560)]
0x00007ffff72e8814 in XDisplayString () from /usr/lib/libX11.so.6
(gdb) bt
#0 0x00007ffff72e8814 in XDisplayString () at /usr/lib/libX11.so.6
#1 0x00007fffdc43ea1d in __vaDriverInit_1_13 () at /usr/lib/dri/nvidia_drv_video.so
#2 0x00007ffff2dabc9c in () at /usr/lib/libva.so.2
#3 0x00007ffff2db0df1 in vaInitialize () at /usr/lib/libva.so.2
#4 0x00007ffff562de7d in () at /usr/lib/libavutil.so.56
#5 0x00007ffff5629862 in av_hwdevice_ctx_create () at /usr/lib/libavutil.so.56
#6 0x00005555562b4b1e in ()
#7 0x00007ffff609f3da in () at /usr/lib/libavcodec.so.58
#8 0x00007ffff60a3bf2 in () at /usr/lib/libavcodec.so.58
#9 0x00007ffff60a4958 in avcodec_send_packet () at /usr/lib/libavcodec.so.58
#10 0x0000555557221452 in ()
#11 0x000055555724eec4 in ()
#12 0x0000555556277ad1 in ()
#13 0x00007ffff5dd813f in () at /usr/lib/libdispatch.so
#14 0x00007ffff229f8fd in start_thread (arg=<optimized out>) at pthread_create.c:442
#15 0x00007ffff2321a60 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81


* link to upstream bug report, if any

Steps to reproduce:
Click on a video to play it.
Crash
This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 21 May 2023, 04:02 GMT
Reason for closing:  No response
Additional comments about closing:  Assuming fixed.
Comment by Sven-Hendrik Haase (Svenstaro) - Thursday, 10 November 2022, 19:57 GMT
Can't reproduce. Did you have the same problem with 4.3.1-1? If you don't know, please downgrade the package and check. It crashes when performing accelerated video decoding (as can be seen by it calling __vaDriverInit). You could try turning off video acceleration in the settings. I have it off and it's working well for me.
Comment by Sven-Hendrik Haase (Svenstaro) - Thursday, 08 December 2022, 12:42 GMT
Could you check again? We recently upgraded to ffmpeg 5 and it might be relevant.
Comment by farid (osc) - Thursday, 08 December 2022, 12:58 GMT
Just upgraded (4.4.1-2) and tested, it still crashes. It happens whenever you activate the "Hardware accelerated video decoding" option.

qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fa7a3262c80] Packet corrupt (stream = 0, dts = 958000).
[NULL @ 0x7fa78c82dc00] Invalid NAL unit size (15813 > 3862).
[NULL @ 0x7fa78c82dc00] missing picture in access unit with size 3866
Segmentation fault (core dumped)
Comment by Toolybird (Toolybird) - Thursday, 22 December 2022, 20:23 GMT
If you can still reproduce the crash, please post a full backtrace [1]

[1] https://wiki.archlinux.org/title/Debugging/Getting_traces#Debuginfod
Comment by farid (osc) - Monday, 26 December 2022, 21:23 GMT
I can still reproduce and can't unfortunately debug this since gdb wants to download more than 2GB of debug info and can't do that atm.
Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 08 February 2023, 18:49 GMT
New telegram version 4.6.1-2 should fix this. Please test.
Comment by José Miguel Sarasola (alosarjos) - Wednesday, 08 February 2023, 18:59 GMT
4.6.1-2 is not launching in native Wayland mode (Using QT_QPA_PLATFORM=wayland)

qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

Loading...