New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Telegram desktop crashes when starting a voice call #3412
Comments
I've got assertion very often (call to someone and someone accepts a call):
|
Crashes for me also on ubuntu 16.04. I use the prebuilt binary.
|
@Fil0sOFF Can you please look for dumps (files ending with ".dmp") in ~/.local/share/TelegramDesktop/tdata/dumps or in ~/.TelegramDesktop/tdata/dumps ? |
In my case there is also no dump files (exactly like here: #3413 (comment)) |
Currently Telegram is unusable using pulseaudio module - crashes/asserts almost everytime, so I've switched to plain ALSA dmix on my OS. |
@john-preston the dumps directory is empty for me. |
ok |
Accepting call crashes Telegram 1.1.2 on ArchLinux x64 too. Steps to reproduce Expected behaviour Actual behaviour Configuration Version of Telegram Desktop: Used theme: |
@ferlanero No crash dumps in "tdata" folder? Can you run Telegram from Terminal with a "catchsegv ./Telegram" command and copy the stack traces here after the crash? (or in a text file and attach it here). |
@john-preston No, no crash dmps in "tdata" folder |
@john-preston After running Telegram from terminal with a "catchsegv /home/martarina/Telegram/Telegram"
|
Calling with version 1.1 of Telegram Desktop has no issues in Ubuntu 16.04 and ArchLinux, both x64. Problem appears on version 1.1.1 and above. |
Have the same issue, telegram version 1.1.2 on ubuntu 16.04 |
Telegram desktop crashes when I answer phone calls. When I initiate the call, it works fine. OS: Linux Mint 18.1 - Mate Can provide more info if needed. |
Same here, also on Ubuntu. |
@PKeidel Can you please test the latest 1.1.4 alpha version from https://desktop.telegram.org/changelog#alpha-version? |
Telegram 1.1.4 alpha precompiled binary: crash still happens, but seems to be less often. |
Checked on 1.1.6, looks fixed, thanks! |
1.1.6 still crashes for me: D/tgvoip: === Updating voip config === |
Fwiw - I encountered it today using Telegram 1.1.7. It worked previously. The only thing I could think was that I had replaced the CPU / MoBo a few nights ago. I eliminated all traces of Telegram I could find, downloaded v1.1.7 tarball and re-installed. Re-validated for new session and then calls would complete. Ubuntu 14.04 with Xenial HWE kernel & xorg-server stack. |
Still crashes, no dumps in a folder. |
1.1.7. Lubuntu/Xubuntu. The problem is about libtgvoip.
|
I can reproduce, telegram crashes for me when starting a voice-call (window doesn't respond anymore and I have to OS: NixOS unstable (as of |
Can confirm. |
@zaps166 I've rewritten my threading wrappers completely since the last public release, so it's safe to say it's been fixed. |
@grishka really? |
@reagentoo really what? |
|
@reagentoo yes, really, I've removed |
@reagentoo because thread entry points no longer return anything. |
@grishka |
@eisaev I'm talking about an upcoming, unreleased version. There, they all return just |
@grishka I hope that the optimizer of the compiler agree with your point of view. |
@grishka tgvoip have stable segfault when calling if it built with clang. Backtraces higher. |
How many times, exactly, do I have to repeat that those refactorings are for an upcoming release of the library and they haven't ever been released as part of any client yet? |
In each new bugreport, I assume. Feel free to close them if needed, BTW. |
I tried to follow the comments here, but do not know if this is fixed or not. I came from this issue #3870 because this is still happening on Telegram Desktop 1.2.6 Basically the first call always drops telegram from me and it crashes the app. The 2nd call might crash or it might not, but currently it is very difficult to hold a call over the desktop now. |
@luisalvarado the above fix is already in 1.2.6, so it has to be something else. Could you please post a crash log? |
@grishka Hi friend, well I tried running debug mode by typing debugmode in the settings section, executing over the terminal the Telegram executable with the -debug and in both cases it did not create the corresponding log file for me. The folder has all the right permissions and everywhere I have read I am suppose to see a log file next to the Telegram files. My telegram files are in my home folder under the telegram folder and am in Ubuntu. Anything else I should do to provide you with the corresponding information? Thank you again. |
@luisalvarado could you please try running it with gdb? E.g. |
@grishka I've managed to get this with 1.2.8:
Not sure if this is something very useful. Also, cannot reproduce it reliably, just occasionally. Let me know if I should recompile something with debug info enabled. |
@grishka With libpulse having debug symbols:
|
@grishka One more:
|
@grishka Sorry for the noise, another one with an assertion statement before crash:
I'll probably stop hammering it now and will wait for your reply. |
It seems like I'm not deinitializing PulseAudio correctly... Thank you, I'll look into it. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
Expected behaviour
Voice call should begin.
Actual behaviour
Telegram crashes (window closes).
Configuration
Operating system:
Ubuntu 17.04
Version of Telegram Desktop:
1.1.2
Used theme:
Default?
**Logs**:
log.txt:
[2017.05.18 16:44:49] Launched version: 1001002, alpha: [FALSE], beta: 0, debug mode: [FALSE], test dc: [FALSE]
[2017.05.18 16:44:49] Executable dir: /home/vranki/apps/Telegram/, name: Telegram
[2017.05.18 16:44:49] Initial working dir: /home/vranki/
[2017.05.18 16:44:49] Working dir: /home/vranki/.local/share/TelegramDesktop/
[2017.05.18 16:44:49] Arguments: "/home/vranki/apps/Telegram/Telegram" "--"
[2017.05.18 16:44:49] Logs started
[2017.05.18 16:44:49] Connecting local socket to /tmp/dff346c49be531143b97cac12931a143-{87A94AB0-E370-4cde-98D3-ACC110C5967D}...
[2017.05.18 16:44:49] Socket connect error 0, starting server and app...
[2017.05.18 16:44:49] Moved logging from '/home/vranki/.local/share/TelegramDesktop/log_start0.txt' to '/home/vranki/.local/share/TelegramDesktop/log.txt'!
[2017.05.18 16:44:49] Opened '/home/vranki/.local/share/TelegramDesktop/tdata/working' for reading, the previous Telegram Desktop launch was not finished properly :( Crash log size: 965
[2017.05.18 16:44:50] App Error: _basePath is empty in writeSettings()
[2017.05.18 16:44:50] Error: failed to load 'gdk_x11_drawable_get_xdisplay' function!
[2017.05.18 16:44:50] Getting DE, XDG_CURRENT_DESKTOP: 'X-Cinnamon'
[2017.05.18 16:44:50] Getting DE, DESKTOP_SESSION: 'cinnamon'
[2017.05.18 16:44:50] Getting DE, KDE_SESSION_VERSION: ''
[2017.05.18 16:44:50] Getting DE, GNOME_DESKTOP_SESSION_ID: 'this-is-deprecated'
[2017.05.18 16:44:50] DE: Gnome
[2017.05.18 16:44:50] Tray Icon: Try Qt = [TRUE], Prefer appindicator = [FALSE]
[2017.05.18 16:44:50] App Info: reading settings...
[2017.05.18 16:44:50] App Info: reading encrypted settings...
[2017.05.18 16:44:50] OpenAL Logging Level: (not set)
[2017.05.18 16:44:50] Audio Playback Devices: OpenAL Soft
[2017.05.18 16:44:50] Audio Playback Default Device: OpenAL Soft
[2017.05.18 16:44:50] Audio Capture Devices: Built-in Audio Analog Stereo;Monitor of Built-in Audio Analog Stereo;Monitor of PCM2902 Audio Codec Analog Stereo;PCM2902 Audio Codec Analog Stereo
[2017.05.18 16:44:50] Audio Capture Default Device: Built-in Audio Analog Stereo
[2017.05.18 16:44:50] App Info: reading map...
[2017.05.18 16:44:50] App Info: reading encrypted map...
[2017.05.18 16:44:50] App Info: reading encrypted user settings...
[2017.05.18 16:44:50] App Info: encrypted user settings read.
[2017.05.18 16:44:50] App Info: reading encrypted mtp data...
[2017.05.18 16:44:50] MTP Info: read keys, current: 3, to destroy: 0
[2017.05.18 16:44:50] Map read time: 9
[2017.05.18 16:44:50] Using Qt tray icon.
[2017.05.18 16:44:50] Tray Icon: Using Qt tray icon, available: [TRUE]
[2017.05.18 16:44:50] Not using Unity Launcher count.
[2017.05.18 16:44:54] Notifications Server: cinnamon
[2017.05.18 16:47:29] Audio Info: recreating audio device and reattaching the tracks
log_start0.txt:
[2017.05.18 16:46:43] Launched version: 1001002, alpha: [FALSE], beta: 0, debug mode: [TRUE], test dc: [FALSE]
[2017.05.18 16:46:43] Executable dir: /home/vranki/apps/Telegram/, name: Telegram
[2017.05.18 16:46:43] Initial working dir: /home/vranki/
[2017.05.18 16:46:43] Working dir: /home/vranki/.local/share/TelegramDesktop/
[2017.05.18 16:46:43] Arguments: "/home/vranki/apps/Telegram/Telegram" "--"
[2017.05.18 16:46:43] Logs started
[2017.05.18 16:46:43] Connecting local socket to /tmp/dff346c49be531143b97cac12931a143-{87A94AB0-E370-4cde-98D3-ACC110C5967D}...
[2017.05.18 16:46:43] Socket connected, this is not the first application instance, sending show command...
[2017.05.18 16:46:43] Show command written, waiting response...
[2017.05.18 16:46:43] Show command response received, pid = 3574, activating and quitting...
last_call_log.txt:
libtgvoip v0.4 on Linux 4.10.0-20-generic (#22-Ubuntu SMP Thu Apr 20 09:22:42 UTC 2017) x86_64
Log started on 18/05/2017 at 16:47:35
05-18 16:47:35 I: update data saving mode, config 0, enabled 0, reqd by peer 0
05-18 16:47:35 W: Starting voip controller
05-18 16:47:35 V: trying bind to port 23963
05-18 16:47:35 D: Bound to local UDP port 23963
05-18 16:47:35 E: can't set thread priority: Operation not permitted
05-18 16:47:35 I: Receive thread starting
05-18 16:47:35 E: can't set thread priority: Operation not permitted
05-18 16:47:35 E: can't set thread priority: Operation not permitted
05-18 16:47:35 V: Call state changed to 2
05-18 16:47:35 I: Detected IPv4 connectivity, will not try IPv6
05-18 16:47:35 D: Received init
05-18 16:47:35 I: Peer version is 3
05-18 16:47:35 W: Received duplicated packet for seq 1
05-18 16:47:35 W: Received duplicated packet for seq 1
05-18 16:47:35 W: Received duplicated packet for seq 1
05-18 16:47:35 W: Received duplicated packet for seq 1
05-18 16:47:35 W: Received duplicated packet for seq 1
05-18 16:47:35 D: Received ping from 91.108.8.8:540
05-18 16:47:35 D: Received ping from 91.108.8.2:527
05-18 16:47:35 D: Received ping from 91.108.12.3:528
05-18 16:47:35 D: Received ping from 91.108.12.2:526
05-18 16:47:35 V: Call state changed to 2
05-18 16:47:35 D: Received ping from 91.108.16.1:537
05-18 16:47:35 D: Received ping from 91.108.16.2:537
05-18 16:47:35 D: Received init ack
05-18 16:47:35 I: peer version from init ack 3
05-18 16:47:35 I: before create audio io
The text was updated successfully, but these errors were encountered: