The person I call to should be heard through speakers, and the person who answers a call should hear me as well.
Basically, a standard crystal-clear call.
Telegram freezes, call information always on top and doesn't response
Operating system:
Arch Linux/Kernel 4.10.13-1-ARCH/i3wm
Version of Telegram Desktop:
1.1.0
Used theme:
standart
Logs:
Can confirm, steps to reproduce are the same, but instead of client freezing, only call crashes and showing error message "Problems with audio playback on your computer", but I don't have any of them). After that, client continues to work as normal. Fedora 25/MATE/4.10.14 kernel/Telegram 1.1alpha
@GarikTester Does audio recording and playback in app work fine? (voice message recording / voice message playback, for example)
@john-preston voice message recording / voice message playback works fine
@mazhigali So for you the audio works fine for voice messages and doesn't work for calls? In the 1.1.0 version?
@john-preston Exactly.
@john-preston Voice recording/playback works flawlessly. Problem is only with calls.
P.S. If it's important, I have Pulseaudio installed).
@GarikTester Please enable debug logs (in Settings type "debugmode" from your keyboard and agree to enable the debug mode) and then try a call once again. Once it fails to init the audio input / output please send the "~/.local/share/Telegram Desktop/DebugLogs/last_call_log.txt" file here or to me directly at https://t.me/preston
@john-preston No need to paste logs - it's working now without any intervention. Calls didn't work yesterday, but self-repaired somehow, and now working without issues.
@GarikTester That sounds really strange. Did you change anything at your computer?
@auchri Absolutely nothing, no updates, no tinkering, nothing.
Maybe @mazhigali has some logs for us?
@auchri logs in text of issue and i sent it directly at https://t.me/preston yet
last_call_log.txt
The log of the latest today's successful call.
I can confirm this bug. Telegram always freezes on a receiving party. I got the next stacktrace, I hope it'll be helpful. Stacktrace.txt
It looks like deadlock in libtgvoip.
I want to add here that this bug is not so reproducable: I am getting this issue from time to time but cannot find a reliable way to reproduce it to get the logs.
Here, I got some:
last_call_log.txt
@LDVSOFT So, what was the problem in that specific case? How did the app behave?
Hi everyone. I have the same issue @mazhigali initally reported, with the same steps, with both outgoing and incoming calls in Telegram Desktop v1.1.
My system information:
Enabled debug mode as indicated by @john-preston here are some logs
Edit:
The only way to stop the behaviour is to kill Telegram Desktop I hope there's enough debug information to help.
Also, my sound layer relies only on ALSA without pulseadio or anything else. This might be important since I know first hand that audio streaming can cause crashes in other applications (like some popular web browsers). I can hear Telegram audios without problems, never have sent one since it doesn't shows the option to do so (no mic button like in the andoid app). I even hear the ring bell of the incoming call, or the call tone in outgoing calls.
Hi everyone. I'm having exactly the same issue like @Daniel-M. I'm running Arch Linux/Kernel 4.10.13-1-ARCH without PulseAudio. Plain ALSA. Telegram freezes on both incoming and outgoing calls.
I've tried to run Telegram via apulse wrapper (https://github.com/i-rinat/apulse) which emulates pulseaudio, this utility was used long ago with Skype as it doesn't support plain ALSA. This way calls seem to work fine and I don't experience freezes. So problem must be related to plain ALSA.
@dikouzmine Please check out the latest 1.1.1 alpha version from https://desktop.telegram.org/changelog#alpha-version
It should not freeze in calls.
@john-preston Just built Telegram from this tag https://github.com/telegramdesktop/tdesktop/tree/v1.1.1 and it works! No more freezes with plain ALSA.
@john-preston using Telegram Alpha v1.1.1 from the link you shared causes the application to crash
Here's the log
It's clear that the issue is related to using ALSA.
I don't have the time to try the build suggested by @dikouzmine from the indicated tag, otherwise I'd give it a try.
@Daniel-M ok... Do other audio-related Telegram features work for you, like music playback and voice message recording?
@grishka Yes, the client has good sound, I can hear voice messages with no problem, also videos played on the client have sound. Sound notifications are working normal with sound, the ringing the bell of calls too.
My ALSA layer detects several cards, one associated with HDMI output (hw device 0) and the other the speakers/headphones( hw device 1) My settings point to the hw device 1, I don't know why the Telegram client crashes if it is sending sound to the card. At most it should be muted which is not.
Commentary on pulse
The last log I've referred said that pulse was detected but not working. The only pulse related packages I have are,
gstreamer1.0-pulseaudio:amd64 install
libpulse-mainloop-glib0:amd64 install
libpulse0:amd64 install
Which is the output of dpkg --get-selections | grep "pulse". those packages are correquisites of other programs installed, so can't take them out.
@Daniel-M well it shouldn't crash if it failed to initialize audio, there's a specific error message it should show in UI and end the call. Did you send a crash report after it crashed?
Also, is it that "exclusive access" ALSA mode? As in, there's no mixer between the apps and the device and only one application could use a single device at a time.
@grishka I'm mixing all sound sources via alsa's plugin dmix so it is not exclusive access. Exclusive access would prevent Telegram to sound if other programs were using the stream, like a music player for instance, or a web browser
Edit:
My alsa configurations:
/etc/asound.conf
/usr/share/alsa/alsa.conf
@Daniel-M ok, does that plugin include a resampler as well or I have to match the sampling rate of my input/output to that of the hardware?
@grishka I'm not sure if it has an internal resampler, but I'm not manually resampling the plugins
My alsa configurations:
/etc/asound.conf
/usr/share/alsa/alsa.conf
the defaults point to the card 1
@Daniel-M looking at your configs, I don't think the sampling rate is actually the problem because you have it set to 48000 which is exactly what I use. Could you record voice messages? It seems that playback should be working fine but it's capture that fails.
@Daniel-M The application crashes or just the call is terminated? If application crashes, does it offer to send a crash report on the next launch?
Also, can you record the voice messages? Are they playing clearly after being recorded and sent in some chat?
@grishka this might sound silly, but I don't know how to record voice messages on the desktop client, it doesn't show the microphone button, but I guess this means that the client don't recognize the capture device. sorry guys, I didn't had the systemwide default capture device for ALSA configured and that was the issue. I thought I was since I tune my guitar with Lingot but I had manually putted the capture device, so my systemwide was unsetted.
Here's how I configured ALSA in /etc/asound.conf and now I can send voice messages from the client and the calls work great. I hope it helps someone with the same issue.
For the record and to answer @john-preston question, the client crashed without notice, just like that, no warnings, no nothing.
@john-preston Thanks for release. In version 1.1.2 issue fixed
Most helpful comment
@GarikTester Please enable debug logs (in Settings type "debugmode" from your keyboard and agree to enable the debug mode) and then try a call once again. Once it fails to init the audio input / output please send the "~/.local/share/Telegram Desktop/DebugLogs/last_call_log.txt" file here or to me directly at https://t.me/preston