Telegram causes music in rhythmbox (gstreamer applications) to play faster!?
When I startup telegram, the music in my applications play around 1.5 times the usual speed. I have not yet any kind of hint what causes the bug to appear, I just know that it always happens when starting Telegram.
Hardware used: Intel NUC (i5 and Intel Audio dedicated hardware, no additions). OS used: UbuntuGNOME 15.10
Does anybody have an idea how to debug such a thing? Is it most likely pulseaudio-related?
I can now reproduce the bug, but I have no clue how to figure out what causes it. strace is so big that it's a couple hundred megabytes big with all the pulseaudio stuff going on.
Steps to reproduce (any Ubuntu with GNOME or GTK3 installed (also XFCE)):
- Start rhythmbox or any other gstreamer-based media player like totem
- Start playing back a music track
- Open telegram binary
This will crash the pulseaudio frequency (or timer!?), so track will be played back around 1,5x times faster.
Fixes:
- When Bug occurs, go to top right corner in GNOME shell
- Open Settings from there
- Open Sound Settings
When Sound Settings window was initialized, the bug is fixed. Can be reproduced afterwards following the steps above (telegram must be closed and re-opened, also from the systray bar).
Hey there!
We're automatically closing this issue since there was no activity in this issue since 372 days ago. We therefore assume that the user has lost interest or resolved the problem on their own. Closed issues that remain inactive for a long period may get automatically locked.
Don't worry though; if this is in error, let us know with a comment and we'll be happy to reopen the issue.
Thanks!
(Please note that this is an automated comment.)
This bug has not been magically fixed. It is still active and still telegram is causing change of frequency on devices that have not 44kHz by default.
Is this Telegram issue for sure? Also, can you test other OpenAL based apps?
I've been using the same identical setup for over 5 years now. It is telegram, for absolutely nothing-else-breaks sure. Every other application, even games, work perfectly without any issue.
Telegram keeps always resetting the frequency of the sound device, which it should not do. Eversince I reported this bug, this issue stays the same and is still causing troubles for devices that have no 44.1kHz frequency.
Yes it is confirmed, the current version of Telegram is still causing the same problems. Yes everything is as up-to-date as possible; as I'm using ArchLinux. Yes, it is still the same issue on Debian Jessie, Ubuntu 16.10, ArchLinux and even on XFCE setups.
So this is definitely a Telegram Bug, and nothing that is caused by the sound daemon. Any other application that plays back sound will be affected, even Chromium, Firefox, GNOME mplayer (and every other app you can imagine) because Telegram keeps resetting the goddamn frequency to 44.1kHz.
That is what Telegram is causing and no other App is causing. I cannot report or explain the bug in more detail, as this is exactly what happens. 100% of the Telegram opening time. 100%. Every single start of Telegram resets the device frequency, reproducible.
I am definitely sure the code that causes this problems is either media_audio_ffmpeg_loader#L201 or media_child_ffmpeg_loader#L72 as both have static comparisons of frequencies until they re-initialize the audio setup. And that is exactly what both methods shouldn't do. If they can't support the frequency, just do nothing.
I have the same issue too and came here to open a ticket about it. Arch Linux here. If I'm playing music in CMUS, VLC, Rhythmbox, etc., and then I start Telegram, the audio stream pauses for a moment, Telegram loads, and then the audio resumes at a higher pitch. The only fix I've seen is to do pulseaudio -k to restart the PulseAudio daemon, but I'd rather not have to do that every time I launch Telegram. Can this ticket be re-opened?
This is a huge issue on Windows 7 platform as well.
I use MOTU 828MKII audio interface for music production and I try to run my system on one single sampling rate no matter what. (48khz, 96khz or what ever I need or the project was made in) and every single time I start telegram it'll reset the sampling rate to 44.1khz and all the other programs are still expecting another sampling rate and audio is slowed down because of the mismatch. It's even more infuriating since I have disabled sounds on telegram and thus the audio initialization routine is completely unnecessary.
Resetting the sample-rate back to what ever it was isn't that simple since it can't be done from my audio interfaces driver unless the audio device isn't being used at all (I have to shut down all applications using it first)
What ever the case may be, Telegram should respect the current sampling rate of the system and never ever try to change it on its own. What would be better, if I could set the sample rate that telegram requests from the system like in any decent audio software if I know what i'm doing (default to current sampling-rate by default add a tick "request sampling rate" on advanced menu).
@mtaalas Telegram uses OpenAL library for notifications audio and music / voice messages / video files playback. Perhaps this could be reported there. Or maybe I use the library wrongly :(
Hello, is there any progress on this issue? It's been more than 3 years and the problem still persists on devices that use any sample rate other than 44.1kHz (e.g. I use an external Focusrite audio interface running at 48kHz). This is annoying and the only workaround so far is not using Telegram Desktop at all.
+1 to this issue. Like @zerodayyy, I also have a Focusrite interface. Every time Telegram Desktop is launched, all of my system audio gets sped up. The only way to work around this is by having Telegram auto-launch on boot and manually restarting pulseaudio with pulseaudio -k and pulseaudio -D.
I have the same issue. I am using Ubuntu 19.04. I have a Behringer UMC204Hd audio interface connected. I can usually fix this problem by just opening Ubuntu settings and just navigating to sound options. Does this fix work for you guys as well? @zerodayyy @Lerke
No, that doesn't work for me. Anyway, I'm still waiting for that to be fixed.
On Sat, Oct 5, 2019, 2:53 PM Aryojaam [email protected] wrote:
I have the same issue. I am using Ubuntu 19.04. I have a Behringer UMC204Hd audio interface connected. I can usually fix this problem by just opening Ubuntu settings and just navigating to sound options. Does this fix work for you guys as well? @zerodayyy https://github.com/zerodayyy @Lerke https://github.com/Lerke
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/telegramdesktop/tdesktop/issues/1548?email_source=notifications&email_token=AL24WPZR7SGHMAJDGVYHXT3QNB52BA5CNFSM4BZLYHG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEANQWGQ#issuecomment-538643226, or mute the thread https://github.com/notifications/unsubscribe-auth/AL24WP7WDRSVKMN6TNGJ4VLQNB52BANCNFSM4BZLYHGQ .
Same issue here with Ubuntu 19.04 and NI Komplete Audio 2 interface. For me it's "fixed" by (temporarily) switching to a different device in the Sound Settings.
I have the same issue! I own a Behringer u-phoria umc202hd, and if I'm watching a person talking in a youtube video and open telegram, I get a pop, a pause, and the sound resumes but the person inhaled some helium until I pulseaudio -k
I can always reproduce the bug when I do the following: Menu -> Calls -> Settings -> Test microphone
I am using Ubuntu 19.04. I have a Behringer UMC204Hd
I can always reproduce the bug when I do the following: Menu -> Calls -> Settings -> Test microphone
I am using Ubuntu 19.04. I have a Behringer UMC204Hd
I have the same problem with Behringer UMC202HD and Kubuntu 19.10.
This bug is absolutely infuriating. I've stopped using telegram on desktop because of it. I've ran so many OpenAL based applications that it's obvious it's been used incorrectly here.
Please fix this bug, I'm using the desktop app to contact friend & family during isolation. My mobile internet signal is so bad, I'm having to put my phone upstairs.
I'm going to take a peek at the code. Any info on what file the openal starting code is?
Edit: Ok, I see someone posted a link above to something that might be the problem. I can't deal with that. Blender can switch sample rates without messing up other software. Take a look at what it does to VLC, it turns it into a stuttering mess. Shame, I really like Telegram.
Ok, I see someone posted a link above to something that might be the problem.
i think he is wrong. That code converts the stream with ffmpeg, which doesn't communicate with sound system at all
More likely that the bug is caused by the direct channels flag or by microphone testing which is called at start
I've ran so many OpenAL based applications that it's obvious it's been used incorrectly here.
Would be more helpful if you provide full list of them
Blender, Dolphin, mumble, virtually every game.
Gish, Doom3, Colin McRae DiRT, ioquake3, Jedi Knight: Jedi Academy, Prey, Psychonauts, Quake 4, X3: Reunion, Alien Isolation, Minecraft.
Why am I listing software? Virtually everything uses OpenAL on Linux because it's awesome. It's quite clearly Telegram that's having the issue.
Edit: Thanks for the links. I'll take a look. :)
Edit2: Hmm. I've been using Blender all day, my brain is pooped.
Dolphin
Doesn't uses OpenAL if you're about KDE's Dolphin