{"action":"created","issue":{"url":"https://api.github.com/repos/telegramdesktop/tdesktop/issues/4219","repository_url":"https://api.github.com/repos/telegramdesktop/tdesktop","labels_url":"https://api.github.com/repos/telegramdesktop/tdesktop/issues/4219/labels{/name}","comments_url":"https://api.github.com/repos/telegramdesktop/tdesktop/issues/4219/comments","events_url":"https://api.github.com/repos/telegramdesktop/tdesktop/issues/4219/events","html_url":"https://github.com/telegramdesktop/tdesktop/issues/4219","id":283768918,"number":4219,"title":"Accepting calls crashes Telegram Desktop","user":{"login":"Daniel-M","id":669787,"avatar_url":"https://avatars2.githubusercontent.com/u/669787?v=4","gravatar_id":"","url":"https://api.github.com/users/Daniel-M","html_url":"https://github.com/Daniel-M","followers_url":"https://api.github.com/users/Daniel-M/followers","following_url":"https://api.github.com/users/Daniel-M/following{/other_user}","gists_url":"https://api.github.com/users/Daniel-M/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel-M/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel-M/subscriptions","organizations_url":"https://api.github.com/users/Daniel-M/orgs","repos_url":"https://api.github.com/users/Daniel-M/repos","events_url":"https://api.github.com/users/Daniel-M/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel-M/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-21T04:15:42Z","updated_at":"2018-03-24T06:12:45Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nThanks for reporting issues of Telegram Desktop!\r\n\r\nTo make it easier for us to help you please enter detailed information below.\r\n--> \r\n### Steps to reproduce\r\n1. Attempt call to any telegram contact\r\n2. Once the call connects, the client crashes\r\n\r\n### Expected behaviour\r\nThe client shouldn't crash and the call should work normally\r\n\r\n### Actual behaviour\r\nThe client crashed. When run from the terminal showed\r\n```\r\nQObject::startTimer: Timers cannot have negative intervals\r\nD/tgvoip: === Updating voip config ===\r\nV/tgvoip: audio_bitrate_step_decr -> 1000.000000\r\nV/tgvoip: audio_bitrate_step_incr -> 1000.000000\r\nV/tgvoip: audio_congestion_window -> 1024.000000\r\nV/tgvoip: audio_frame_size -> 60.000000\r\nV/tgvoip: audio_init_bitrate -> 16000.000000\r\nV/tgvoip: audio_init_bitrate_edge -> 8000.000000\r\nV/tgvoip: audio_init_bitrate_gprs -> 8000.000000\r\nV/tgvoip: audio_init_bitrate_saving -> 8000.000000\r\nV/tgvoip: audio_max_bitrate -> 20000.000000\r\nV/tgvoip: audio_max_bitrate_edge -> 16000.000000\r\nV/tgvoip: audio_max_bitrate_gprs -> 8000.000000\r\nV/tgvoip: audio_max_bitrate_saving -> 8000.000000\r\nV/tgvoip: jitter_losses_to_reset -> 20.000000\r\nV/tgvoip: jitter_max_delay_20 -> 25.000000\r\nV/tgvoip: jitter_max_delay_40 -> 15.000000\r\nV/tgvoip: jitter_max_delay_60 -> 10.000000\r\nV/tgvoip: jitter_max_slots_20 -> 50.000000\r\nV/tgvoip: jitter_max_slots_40 -> 30.000000\r\nV/tgvoip: jitter_max_slots_60 -> 20.000000\r\nV/tgvoip: jitter_min_delay_20 -> 6.000000\r\nV/tgvoip: jitter_min_delay_40 -> 4.000000\r\nV/tgvoip: jitter_min_delay_60 -> 2.000000\r\nV/tgvoip: jitter_resync_threshold -> 0.500000\r\nV/tgvoip: use_system_aec -> true\r\nV/tgvoip: use_system_ns -> true\r\nV/tgvoip: new endpoint 10003: 91.108.12.3:536\r\nV/tgvoip: new endpoint 10002: 91.108.12.2:521\r\nV/tgvoip: new endpoint 40003: 91.108.8.3:529\r\nV/tgvoip: new endpoint 40002: 91.108.8.2:535\r\nV/tgvoip: new endpoint 50003: 91.108.16.3:540\r\nV/tgvoip: new endpoint 50004: 91.108.16.4:537\r\nW/tgvoip: Set remote endpoints\r\nV/tgvoip: Adding endpoint: 91.108.12.3:536, UDP\r\nV/tgvoip: Adding endpoint: 91.108.12.2:521, UDP\r\nV/tgvoip: Adding endpoint: 91.108.8.3:529, UDP\r\nV/tgvoip: Adding endpoint: 91.108.8.2:535, UDP\r\nV/tgvoip: Adding endpoint: 91.108.16.3:540, UDP\r\nV/tgvoip: Adding endpoint: 91.108.16.4:537, UDP\r\nI/tgvoip: update data saving mode, config 0, enabled 0, reqd by peer 0\r\nW/tgvoip: Starting voip controller\r\nV/tgvoip: trying bind to port 25539\r\nD/tgvoip: Bound to local UDP port 25539\r\nI/tgvoip: Receive thread starting\r\nE/tgvoip: can't set thread priority: Operación no permitida\r\nE/tgvoip: can't set thread priority: Operación no permitida\r\nE/tgvoip: can't set thread priority: Operación no permitida\r\nV/tgvoip: Call state changed to 2\r\nV/tgvoip: Sending UDP ping to 91.108.12.3:536\r\nV/tgvoip: Sending UDP ping to 91.108.12.2:521\r\nV/tgvoip: Sending UDP ping to 91.108.8.3:529\r\nV/tgvoip: Sending UDP ping to 91.108.8.2:535\r\nV/tgvoip: Sending UDP ping to 91.108.16.3:540\r\nV/tgvoip: Sending UDP ping to 91.108.16.4:537\r\nD/tgvoip: SIGNAL BAR COUNT CHANGED: 1\r\nI/tgvoip: Detected IPv4 connectivity, will not try IPv6\r\nD/tgvoip: Received init\r\nI/tgvoip: Peer version is 3\r\nW/tgvoip: Received duplicated packet for seq 1\r\nD/tgvoip: SIGNAL BAR COUNT CHANGED: 2\r\nD/tgvoip: SIGNAL BAR COUNT CHANGED: 3\r\nW/tgvoip: Received duplicated packet for seq 1\r\nW/tgvoip: Received duplicated packet for seq 1\r\nW/tgvoip: Received duplicated packet for seq 1\r\nW/tgvoip: Received duplicated packet for seq 1\r\nD/tgvoip: SIGNAL BAR COUNT CHANGED: 4\r\nV/tgvoip: Call state changed to 2\r\nD/tgvoip: Received init ack\r\nI/tgvoip: peer version from init ack 3\r\nI/tgvoip: before create audio io\r\nE/tgvoip: can't set thread priority: Operación no permitida\r\nV/tgvoip: starting encoder, packets per frame=3\r\nE/tgvoip: can't set thread priority: Operación no permitida\r\nI/tgvoip: decoder: packets per frame 3\r\nW/tgvoip: jitter: found no packet for timestamp 0 (last put = 0, lost = 0)\r\nW/tgvoip: jitter: found no packet for timestamp 60 (last put = 0, lost = 0)\r\nV/tgvoip: Trying to recover late packet\r\nW/tgvoip: jitter: found no packet for timestamp 0 (last put = 0, lost = 0)\r\nV/tgvoip: PLC\r\nI/tgvoip: Sending public endpoints request\r\nD/tgvoip: Sending public endpoints request to 91.108.12.3:536\r\nD/tgvoip: Received init\r\nI/tgvoip: Peer version is 3\r\nW/tgvoip: Received duplicated packet for seq 3\r\nV/tgvoip: opus_encoder: setting bitrate to 16000\r\nD/tgvoip: new delay from stddev 2\r\nV/tgvoip: Call state changed to 3\r\nI/tgvoip: jitter: resyncing, next timestamp = -120 (step=60, minDelay=2)\r\nAssertion 'e->mainloop->n_enabled_defer_events > 0' failed at pulse/mainloop.c:257, function mainloop_defer_enable(). Aborting.\r\nAborted\r\n```\r\nA call with other contact provided the following result on the prompt\r\n```\r\nQObject::startTimer: Timers cannot have negative intervals\r\nD/tgvoip: === Updating voip config ===\r\nV/tgvoip: audio_bitrate_step_decr -> 1000.000000\r\nV/tgvoip: audio_bitrate_step_incr -> 1000.000000\r\nV/tgvoip: audio_congestion_window -> 1024.000000\r\nV/tgvoip: audio_frame_size -> 60.000000\r\nV/tgvoip: audio_init_bitrate -> 16000.000000\r\nV/tgvoip: audio_init_bitrate_edge -> 8000.000000\r\nV/tgvoip: audio_init_bitrate_gprs -> 8000.000000\r\nV/tgvoip: audio_init_bitrate_saving -> 8000.000000\r\nV/tgvoip: audio_max_bitrate -> 20000.000000\r\nV/tgvoip: audio_max_bitrate_edge -> 16000.000000\r\nV/tgvoip: audio_max_bitrate_gprs -> 8000.000000\r\nV/tgvoip: audio_max_bitrate_saving -> 8000.000000\r\nV/tgvoip: jitter_losses_to_reset -> 20.000000\r\nV/tgvoip: jitter_max_delay_20 -> 25.000000\r\nV/tgvoip: jitter_max_delay_40 -> 15.000000\r\nV/tgvoip: jitter_max_delay_60 -> 10.000000\r\nV/tgvoip: jitter_max_slots_20 -> 50.000000\r\nV/tgvoip: jitter_max_slots_40 -> 30.000000\r\nV/tgvoip: jitter_max_slots_60 -> 20.000000\r\nV/tgvoip: jitter_min_delay_20 -> 6.000000\r\nV/tgvoip: jitter_min_delay_40 -> 4.000000\r\nV/tgvoip: jitter_min_delay_60 -> 2.000000\r\nV/tgvoip: jitter_resync_threshold -> 0.500000\r\nV/tgvoip: use_system_aec -> true\r\nV/tgvoip: use_system_ns -> true\r\nV/tgvoip: new endpoint 10003: 91.108.12.3:525\r\nV/tgvoip: new endpoint 10001: 91.108.12.1:537\r\nV/tgvoip: new endpoint 40007: 91.108.8.7:537\r\nV/tgvoip: new endpoint 40003: 91.108.8.3:528\r\nV/tgvoip: new endpoint 50001: 91.108.16.1:523\r\nV/tgvoip: new endpoint 50002: 91.108.16.2:532\r\nW/tgvoip: Set remote endpoints\r\nV/tgvoip: Adding endpoint: 91.108.12.3:525, UDP\r\nV/tgvoip: Adding endpoint: 91.108.12.1:537, UDP\r\nV/tgvoip: Adding endpoint: 91.108.8.7:537, UDP\r\nV/tgvoip: Adding endpoint: 91.108.8.3:528, UDP\r\nV/tgvoip: Adding endpoint: 91.108.16.1:523, UDP\r\nV/tgvoip: Adding endpoint: 91.108.16.2:532, UDP\r\nI/tgvoip: update data saving mode, config 0, enabled 0, reqd by peer 0\r\nW/tgvoip: Starting voip controller\r\nV/tgvoip: trying bind to port 17284\r\nD/tgvoip: Bound to local UDP port 17284\r\nI/tgvoip: Receive thread starting\r\nE/tgvoip: can't set thread priority: Operación no permitida\r\nE/tgvoip: can't set thread priority: Operación no permitida\r\nE/tgvoip: can't set thread priority: Operación no permitida\r\nV/tgvoip: Call state changed to 2\r\nV/tgvoip: Sending UDP ping to 91.108.12.3:525\r\nV/tgvoip: Sending UDP ping to 91.108.12.1:537\r\nV/tgvoip: Sending UDP ping to 91.108.8.7:537\r\nV/tgvoip: Sending UDP ping to 91.108.8.3:528\r\nV/tgvoip: Sending UDP ping to 91.108.16.1:523\r\nV/tgvoip: Sending UDP ping to 91.108.16.2:532\r\nD/tgvoip: SIGNAL BAR COUNT CHANGED: 1\r\nI/tgvoip: Detected IPv4 connectivity, will not try IPv6\r\nD/tgvoip: Received init\r\nI/tgvoip: Peer version is 3\r\nW/tgvoip: Received duplicated packet for seq 1\r\nD/tgvoip: SIGNAL BAR COUNT CHANGED: 2\r\nW/tgvoip: Received duplicated packet for seq 1\r\nW/tgvoip: Received duplicated packet for seq 1\r\nD/tgvoip: SIGNAL BAR COUNT CHANGED: 3\r\nW/tgvoip: Received duplicated packet for seq 1\r\nW/tgvoip: Received duplicated packet for seq 1\r\nD/tgvoip: SIGNAL BAR COUNT CHANGED: 4\r\nV/tgvoip: Call state changed to 2\r\nD/tgvoip: Received init ack\r\nI/tgvoip: peer version from init ack 3\r\nI/tgvoip: before create audio io\r\nE/tgvoip: can't set thread priority: Operación no permitida\r\nV/tgvoip: starting encoder, packets per frame=3\r\nE/tgvoip: can't set thread priority: Operación no permitida\r\nI/tgvoip: Sending public endpoints request\r\nD/tgvoip: Sending public endpoints request to 91.108.12.3:525\r\nV/tgvoip: Call state changed to 3\r\nI/tgvoip: jitter: resyncing, next timestamp = -120 (step=60, minDelay=3)\r\nI/tgvoip: decoder: packets per frame 3\r\nW/tgvoip: jitter: found no packet for timestamp -120 (last put = 60, lost = 0)\r\nW/tgvoip: jitter: found no packet for timestamp -60 (last put = 60, lost = 0)\r\nV/tgvoip: Trying to recover late packet\r\nW/tgvoip: jitter: found no packet for timestamp -120 (last put = 60, lost = 0)\r\nV/tgvoip: PLC\r\nW/tgvoip: jitter: found no packet for timestamp 0 (last put = 60, lost = 0)\r\nV/tgvoip: Trying to recover late packet\r\nW/tgvoip: jitter: found no packet for timestamp -60 (last put = 60, lost = 0)\r\nV/tgvoip: PLC\r\nV/tgvoip: Trying to recover late packet\r\nW/tgvoip: jitter: found no packet for timestamp 0 (last put = 60, lost = 0)\r\nE/tgvoip: Can't provide 18376 bytes of audio data at a time\r\nAssertion '!m->thread || !pa_thread_is_running(m->thread) || !in_worker(m)' failed at pulse/thread-mainloop.c:187, function pa_threaded_mainloop_unlock(). Aborting.\r\nAborted\r\n```\r\n### Configuration\r\n**Operating system:**\r\nDebian Testing\r\n```\r\n$ uname -a\r\nLinux 4.13.0-1-amd64 #1 SMP Debian 4.13.13-1 (2017-11-16) x86_64 GNU/Linux\r\n```\r\nI'm using pulseaudio to manage my audio streams, I had successful calls before in my system.\r\n\r\n**Version of Telegram Desktop:**\r\nVersion 1.2.3 alpha\r\n\r\n**Used theme**:\r\nStandard theme\r\n\r\n<details><summary><b>Logs</b>:</summary>\r\nLast call log:\r\n[last_call_log.txt](https://github.com/telegramdesktop/tdesktop/files/1577885/last_call_log.txt)\r\n\r\nAny additional details I'm willing to give upon request."},"comment":{"url":"https://api.github.com/repos/telegramdesktop/tdesktop/issues/comments/375850032","html_url":"https://github.com/telegramdesktop/tdesktop/issues/4219#issuecomment-375850032","issue_url":"https://api.github.com/repos/telegramdesktop/tdesktop/issues/4219","id":375850032,"user":{"login":"nartes","id":902947,"avatar_url":"https://avatars1.githubusercontent.com/u/902947?v=4","gravatar_id":"","url":"https://api.github.com/users/nartes","html_url":"https://github.com/nartes","followers_url":"https://api.github.com/users/nartes/followers","following_url":"https://api.github.com/users/nartes/following{/other_user}","gists_url":"https://api.github.com/users/nartes/gists{/gist_id}","starred_url":"https://api.github.com/users/nartes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nartes/subscriptions","organizations_url":"https://api.github.com/users/nartes/orgs","repos_url":"https://api.github.com/users/nartes/repos","events_url":"https://api.github.com/users/nartes/events{/privacy}","received_events_url":"https://api.github.com/users/nartes/received_events","type":"User","site_admin":false},"created_at":"2018-03-24T06:12:45Z","updated_at":"2018-03-24T06:12:45Z","author_association":"NONE","body":"I experience pulse audio related logic problems too! Either you have a shitty code for pulseaudio, or it is itself unstable."}}
{"actor":{"display_login":"nartes"}}