Summary: | net-im/telegram-desktop-4.4.1 crashes at startup (in media-video/ffmpeg's avcodec_receive_frame) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Erik <esigra> |
Component: | Current packages | Assignee: | Esteve Varela Colominas <esteve.varela> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chn, proxy-maint |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=888637 https://github.com/gentoo/gentoo/pull/29620 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | emerge --info |
Description
Erik
2023-01-22 19:22:35 UTC
Please include emerge --info too. Created attachment 849047 [details]
emerge --info
Since it crashed in /usr/lib64/libavcodec.so.58.134.100, I will try to upgrade ffmpeg to 5.1.2-r1.
After upgrading ffmpeg to 5.1.2-r1, telegram-desktop did not crash at startup and has not crashed yet. Unfortunately it crashed again: ==880112== Thread 11: ==880112== Invalid read of size 8 ==880112== at 0x6C30A3E: avcodec_receive_frame (in /usr/lib64/libavcodec.so.58.134.100) ==880112== by 0x108941F: FFmpeg::FrameGenerator::Impl::readNextFrame() (in /usr/bin/telegram-desktop) ==880112== by 0x1089A17: FFmpeg::FrameGenerator::Impl::renderNext(QImage, QSize, Qt::AspectRatioMode) (in /usr/bin/telegram-desktop) ==880112== by 0x1089A8C: FFmpeg::FrameGenerator::renderNext(QImage, QSize, Qt::AspectRatioMode) (in /usr/bin/telegram-desktop) ==880112== by 0x2D5510C: crl::details::on_queue_invoke<crl::details::EmptyWrapper, void (*)(void*, void (*)(void*), void*), Ui::CustomEmoji::Renderer::Renderer(Ui::CustomEmoji::RendererDescriptor&&)::{lambda()#1}, void>(void*, void (*)(void*, void (*)(void*), void*), Ui::CustomEmoji::Renderer::Renderer(Ui::CustomEmoji::RendererDescriptor&&)::{lambda()#1}&&)::{lambda(void*)#1}::_FUN(void*) (in /usr/bin/telegram-desktop) ==880112== by 0x82B3865: _dispatch_worker_thread (in /usr/lib64/libdispatch.so) ==880112== by 0xA5EB673: start_thread (in /usr/lib64/libc.so.6) ==880112== by 0xA66A33F: clone (in /usr/lib64/libc.so.6) ==880112== Address 0x28 is not stack'd, malloc'd or (recently) free'd It seems to happen when playing some videos. I will see if I can turn off auto-playing of videos when scrolling a channel so that I can scroll to such a video and save it without a crash. After turning off all auto-play, it still crashes when scrolling to such a video, so I can not save it to test it outside telegram-desktop. It seems like it crashes when trying to get a still image from the video to show instead of the playing video. I will probably try emerging telegram-desktop with qt6. I build ffmpeg-4.4.3 with clang-15.0.7, but telegram-desktop currently with gcc-12.2.1 and I'm not seeing this crash on intel iris system (wayland on qt5). It looks closely related to nouveau. Can you disable vaapi/vdpau stuff if its being used and see if you hit crash? (In reply to Joe Kappus from comment #6) > I build ffmpeg-4.4.3 with clang-15.0.7, but telegram-desktop currently with > gcc-12.2.1 and I'm not seeing this crash on intel iris system (wayland on > qt5). > > It looks closely related to nouveau. Can you disable vaapi/vdpau stuff if > its being used and see if you hit crash? The crashing thread is dying in avcodec_receive_frame. Most likely I am hitting the same issue on my system with AMD Rembrandt GPU. Though crash happens when I enter specific chants. In the dmesg I see following related messages: [69129.017699] telegram-deskto[2971]: segfault at 28 ip 00007f2b9a7eb9fb sp 00007f2b6bb7cb90 error 4 in libavcodec.so.58.134.100[7f2b9a667000+798000] likely on CPU 14 (core 7, socket 0) It still happens with the newest ffmpeg (5.1.2-r1): ==1995037== Thread 17: ==1995037== Invalid read of size 8 ==1995037== at 0x6C32260: avcodec_receive_frame (in /usr/lib64/libavcodec.so.59.37.100) ==1995037== by 0x10899CF: FFmpeg::FrameGenerator::Impl::readNextFrame() (in /usr/bin/telegram-desktop) ==1995037== by 0x1089FC7: FFmpeg::FrameGenerator::Impl::renderNext(QImage, QSize, Qt::AspectRatioMode) (in /usr/bin/telegram-desktop) ==1995037== by 0x108A03C: FFmpeg::FrameGenerator::renderNext(QImage, QSize, Qt::AspectRatioMode) (in /usr/bin/telegram-desktop) ==1995037== by 0x2D5454C: crl::details::on_queue_invoke<crl::details::EmptyWrapper, void (*)(void*, void (*)(void*), void*), Ui::CustomEmoji::Renderer::Renderer(Ui::CustomEmoji::RendererDescriptor&&)::{lambda()#1}, void>(void*, void (*)(void*, void (*)(void*), void*), Ui::CustomEmoji::Renderer::Renderer(Ui::CustomEmoji::RendererDescriptor&&)::{lambda()#1}&&)::{lambda(void*)#1}::_FUN(void*) (in /usr/bin/telegram-desktop) ==1995037== by 0x81E9865: _dispatch_worker_thread (in /usr/lib64/libdispatch.so) ==1995037== by 0xA521673: start_thread (in /usr/lib64/libc.so.6) ==1995037== by 0xA5A033F: clone (in /usr/lib64/libc.so.6) ==1995037== Address 0x28 is not stack'd, malloc'd or (recently) free'd Some videos trigger this. Scrolling a channel will cause a crash when such a video is encountered. Just entering a channel will cause a crash if the channel was previously scrolled to such a video. Just starting telegram-desktop will cause a crash if telegram-desktop wants to show a channel that is scrolled to such a video when telegram-desktop starts. Sorry for the late reply, but this is probably related to: https://bugs.gentoo.org/888637 Will be requiring this USE flag with the next bump, and close this issue along with it. Feel free to re-open if this is still a problem. And as always, thanks for reporting the bug. *** This bug has been marked as a duplicate of bug 888637 *** The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19bd77e8f59cc673936cbf52bd1eb749ddc1269f commit 19bd77e8f59cc673936cbf52bd1eb749ddc1269f Author: Esteve Varela Colominas <esteve.varela@gmail.com> AuthorDate: 2023-02-16 15:42:57 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2023-02-22 22:57:00 +0000 net-im/telegram-desktop: Bump to 4.6.3 Closes: https://bugs.gentoo.org/888637 Closes: https://bugs.gentoo.org/891755 Thanks-to: xiaoming <xiangluoming2015@outlook.com> Thanks-to: Alexander Turenko <totktonada.ru@gmail.com> Thanks-to: Erik <esigra@gmail.com> Thanks-to: Egor <egorr.berd@gmail.com> Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> net-im/telegram-desktop/Manifest | 1 + net-im/telegram-desktop/metadata.xml | 4 +- .../telegram-desktop/telegram-desktop-4.6.3.ebuild | 206 +++++++++++++++++++++ 3 files changed, 209 insertions(+), 2 deletions(-) |