I tried to participate in meeting in telegram and while I can use mic or see shared screen, I can share screen myself. Immediately after choose what to share, telegram-desktop crashes with # Fatal error in: /wrkdirs/usr/ports/net-im/tg_owt/work/tg_owt-621f3da/src/media/engine/webrtc_voice_engine.cc, line 365 # last system error: 0 # Check failed: adm() # Abort https://github.com/desktop-app/tg_owt/blob/master/src/media/engine/webrtc_voice_engine.cc#L365 Probably, adm() is not valid for some reason Can anybody confirm the issue? Thanks
I forgot to mention, that I use xOrg.
Hi, thanks for the report. Is there any a chance to build net-im/telegram-desktop and net-im/tg_owt with the debug symbols and reproduce the issue. Thank you.
Created attachment 237883 [details] debug logs
Hello, it took for a while, sorry. telegram-desktop is a beast to compile. I've copied debug directory from Telegram profile, I hope this helps. It is strange that virtually all other functions work. adm() looks like basic object for audio/video communication, but unless I try to share my screen everything else looks good.
(In reply to Ivan from comment #4) Hi Ivan, there were few update of net-im/tg_owt and net-im/telegram-desktop ports. Is it still an issue? Thank you.
Hello, I'm running the ~2 weeks old ports tree snapshot and the problem still here. Can you confirm the issue if you use telegram? It's very easy to trigger. Thanks.
Is ther(In reply to Ivan from comment #6) Hi Ivan, would you mind to provide a step by step explanation how to reproduce the bug. As I mentioned earlier it's probably better to raise an issue for the tdesktop project on GH.
1. Create a new group chat 2. Start videochat (no other participants required) 3. Share screen or window in the videochat. Telegram crashes for me immediately.
(In reply to Ivan from comment #8) Hello, can you check again with the latest versions just updated yesterday?
(In reply to Li-Wen Hsu from comment #9) Hello, I've built current ports today and it's still crashing. Strange that we have no confirmation nor contradiction assuming how easy is to replicate the issue.
Hi Ivan, could you provide details: does the issue related to Qt5 or Qt6 version of telegram desktop? I can confirm the issue is reproducible on Qt6 on my side. I also tried to build debug version of the net-im/telegram-desktop, including debug version of the net-im/tg_owt, however linking of the first one has failed, https://people.freebsd.org/~osa/telegram-desktop-qt6-5.1.5.log Figuring out what's going there.
Hello, thanks for confirmation. I've feared this is something on my side, because discussion was very quiet here. I have QT5 version, but I'm planing to upgrade to 14.1 on this weekend and will recompile everything I use in poudreire. Do I need to set some knobs? I think it's tg related issue, I remember I've used screen sharing long time ago. Maybe 3 years ago.
Created attachment 255507 [details] Fixes screen sharing crashes in telegram Patch for net-im/tg_owt Fixes screen sharing crash issue of net-im/telegram-desktop
(In reply to Kirill B from comment #13) Amazing discovery! It works flawlessly now.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=683f6abb3eef6268f3070ab7e7e6a48d03bbe959 commit 683f6abb3eef6268f3070ab7e7e6a48d03bbe959 Author: Sergey A. Osokin <osa@FreeBSD.org> AuthorDate: 2024-12-02 15:02:14 +0000 Commit: Sergey A. Osokin <osa@FreeBSD.org> CommitDate: 2024-12-02 15:03:52 +0000 net-im/tg_owt: fix screen sharing crash issue While I'm here regenerate another patch. Bump PORTREVISION. PR: 267461 net-im/tg_owt/Makefile | 1 + ...tch-src_modules_audio__device_audio__device__impl.cc (new) | 11 +++++++++++ net-im/tg_owt/files/patch-src_rtc__base_openssl__adapter.cc | 4 ++-- 3 files changed, 14 insertions(+), 2 deletions(-)
Committed, thanks!