telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
25.9k stars 5.13k forks source link

Delay in Call and Camera Activation on Telegram Desktop (Windows) #28217

Open tozxart opened 1 month ago

tozxart commented 1 month ago

Steps to reproduce

Initiate a call by pressing the call button. Observe the delay before the call UI appears. Press the call button again to start the call. Observe the additional delay before the call starts. Activate or disable the camera during the call. Observe the delay in camera activation or deactivation.

Expected behaviour

The call UI should open immediately after pressing the call button. The call should start without any noticeable delay. Activating or disabling the camera should also happen instantly.

Actual behaviour

There is an 8-second delay when opening the call UI. There is an additional 8-second delay when starting the call. Activating or disabling the camera also takes around 8 seconds.

https://github.com/user-attachments/assets/79485619-6a99-4b98-92c2-19607dd57f12

Operating system

Windows 11

Version of Telegram Desktop

5.3 x64

Installation source

Static binary from official website

Crash ID

No response

Logs

[2024.08.01 13:02:46] Launched version: 5003000, install beta: [FALSE], alpha: 0, debug mode: [FALSE]
[2024.08.01 13:02:46] Executable dir: C:/Users/tozxo/AppData/Roaming/Telegram Desktopp/, name: Telegram.exe
[2024.08.01 13:02:46] Initial working dir: C:/Users/tozxo/AppData/Roaming/Telegram Desktopp/
[2024.08.01 13:02:46] Working dir: C:/Users/tozxo/AppData/Roaming/Telegram Desktopp/
[2024.08.01 13:02:46] Command line: C:\Users\tozxo\AppData\Roaming\Telegram Desktopp\Telegram.exe -noupdate -tosettings
[2024.08.01 13:02:46] Executable path before check: C:/Users/tozxo/AppData/Roaming/Telegram Desktopp/Telegram.exe
[2024.08.01 13:02:46] Logs started
[2024.08.01 13:02:46] App Info: Shortcut validated at "C:/Users/tozxo/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Telegram Desktop/Telegram.lnk"
[2024.08.01 13:02:46] AppUserModelID: Telegram.TelegramDesktop
[2024.08.01 13:02:46] Using DirectX compiler 'C:\Users\tozxo\AppData\Roaming\Telegram Desktopp\modules\x64\d3d\d3dcompiler_47.dll'.
[2024.08.01 13:02:46] Connecting local socket to Global\7cc03588f9ca86efa733643260e92c4c-{87A94AB0-E370-4cde-98D3-ACC110C5967D}...
[2024.08.01 13:02:46] This is the only instance of Telegram, starting server and app...
[2024.08.01 13:02:46] Moved logging from 'C:/Users/tozxo/AppData/Roaming/Telegram Desktopp/log_start0.txt' to 'C:/Users/tozxo/AppData/Roaming/Telegram Desktopp/log.txt'!
[2024.08.01 13:02:46] Global devicePixelRatio: 1
[2024.08.01 13:02:46] QT_DPI_ADJUSTMENT_POLICY: AdjustDpi
[2024.08.01 13:02:46] Primary screen DPI: 96, Base: 96.
[2024.08.01 13:02:46] Computed screen scale: 100
[2024.08.01 13:02:46] DevicePixelRatio: 1
[2024.08.01 13:02:46] ScreenScale: 100
[2024.08.01 13:02:50] Media Info: Type Playback, default: {0.0.0.00000000}.{c2ab5b23-2f7f-43a2-a650-898f5a675546}, list: { "Digital Audio (S/PDIF) (3- High Definition Audio Device)" <{0.0.0.00000000}.{074fc6bf-5a2f-4f1a-b30d-4a4bda8fc43f}>, "Headphones (3- High Definition Audio Device)" <{0.0.0.00000000}.{17388465-52c6-484d-9cf8-079216d06689}>, "MSI G2412 (NVIDIA High Definition Audio)" <{0.0.0.00000000}.{1e43dfba-ef91-4989-9197-e3031a4528c1}>, "Speakers (USB Audio Device)" <{0.0.0.00000000}.{33aab726-6216-4a4e-8191-8a7fa573dd4c}>, "MSI G2412 (NVIDIA High Definition Audio)" <{0.0.0.00000000}.{3e954d1a-1402-4a5a-a40a-18cfe29feb0e}>, "Speakers (Scarlett Solo USB)" <{0.0.0.00000000}.{4fc09eb2-23ad-4a4f-bbd2-b644950f0c96}>, "MSI G2412 (NVIDIA High Definition Audio)" <{0.0.0.00000000}.{53d41cbc-7aad-421b-bed6-f5f043766e8e}>, "Digital Audio (HDMI) (High Definition Audio Device)" <{0.0.0.00000000}.{5d5fe2f7-b4fe-4246-86d2-e63d7fe8a2b3}>, "MSI G2412 (NVIDIA High Definition Audio)" <{0.0.0.00000000}.{5fd0fe40-23b9-441e-8d39-0e878b3a7d2d}>, "MSI G2412 (NVIDIA High Definition Audio)" <{0.0.0.00000000}.{657c5104-cb84-4ac0-9672-0890469c900a}>, "Speakers (Iriun Webcam)" <{0.0.0.00000000}.{6984859b-c020-4715-ad87-3d75f16fc0cb}>, "Digital Audio (HDMI) (High Definition Audio Device)" <{0.0.0.00000000}.{760f1191-9bdb-45c7-bf61-b986327c33de}>, "Line (Voicemod Virtual Audio Device (WDM))" <{0.0.0.00000000}.{79abe8b8-2cf8-4f4c-b25f-70d18454b9ee}>, "Speakers (Boom Audio)" <{0.0.0.00000000}.{8326436d-2423-449c-81b2-5f97da1d8fac}>, "MSI G2412 (NVIDIA High Definition Audio)" <{0.0.0.00000000}.{8d6e811d-cecc-40e3-9833-6f663a207a06}>, "Internal AUX Jack (3- High Definition Audio Device)" <{0.0.0.00000000}.{b5a9a115-0926-4196-87fb-bd3e69cfec83}>, "Speakers (2- USB Audio Device)" <{0.0.0.00000000}.{c2ab5b23-2f7f-43a2-a650-898f5a675546}>, "Digital Audio (HDMI) (High Definition Audio Device)" <{0.0.0.00000000}.{c6b7cedf-6d41-4195-b064-50b556559927}>, "Internal AUX Jack (3- High Definition Audio Device)" <{0.0.0.00000000}.{ca6eb02b-94e5-47d3-bc4a-70ac2102d5dc}>, "Speakers (3- High Definition Audio Device)" <{0.0.0.00000000}.{dbcda7ce-ae24-4fa3-abb7-011226279855}>, "Digital Audio (HDMI) (High Definition Audio Device)" <{0.0.0.00000000}.{e3e32d8a-ee81-4bb7-8e36-921d0abe0930}> }, full list refresh: false
[2024.08.01 13:02:50] Media Info: Type Capture, default: {0.0.1.00000000}.{c374a96f-8661-4325-b06c-c8d75a460ec9}, list: { "Microphone (3- High Definition Audio Device)" <{0.0.1.00000000}.{088b4484-2277-4a69-bf54-b4dda20baac3}>, "Microphone (2- USB Audio Device)" <{0.0.1.00000000}.{14a8076e-9686-49e5-ad6f-5a94bfc86dbd}>, "Internal AUX Jack (High Definition Audio Device)" <{0.0.1.00000000}.{37baef93-44d5-4c7b-981d-2bcde85c32ed}>, "MIDI (Iriun Webcam)" <{0.0.1.00000000}.{4a59616e-9fa4-4cab-a847-1de78cb3f7cd}>, "Internal AUX Jack (3- High Definition Audio Device)" <{0.0.1.00000000}.{4f9cbd1b-21cd-43c2-9167-d11b4d72ca33}>, "Internal AUX Jack (High Definition Audio Device)" <{0.0.1.00000000}.{5a3ba545-22dd-4890-8a56-43cef62e529f}>, "Internal AUX Jack (High Definition Audio Device)" <{0.0.1.00000000}.{600c3da9-43d6-49aa-ae4d-1aeb6fc3b284}>, "Internal AUX Jack (3- High Definition Audio Device)" <{0.0.1.00000000}.{60ec38d2-f080-458a-a57d-853e0b69c81d}>, "Microphone (Iriun Webcam)" <{0.0.1.00000000}.{8d7814a7-f8b9-4369-9427-562bf1d28240}>, "Microphone (USB Audio Device)" <{0.0.1.00000000}.{9097b4b8-6dd7-4e89-8438-a462f87319c9}>, "Microphone (Voicemod Virtual Audio Device (WDM))" <{0.0.1.00000000}.{c374a96f-8661-4325-b06c-c8d75a460ec9}>, "Internal AUX Jack (High Definition Audio Device)" <{0.0.1.00000000}.{c8632e33-d661-46b0-bada-9f1e1cd69fdb}>, "MIDI (Iriun Webcam)" <{0.0.1.00000000}.{d0b28792-be73-40d9-b512-52dc9513fdaf}>, "Microphone (3- High Definition Audio Device)" <{0.0.1.00000000}.{d89dcb54-0285-4473-8344-4975e970074d}>, "Microphone (Scarlett Solo USB)" <{0.0.1.00000000}.{feb6da70-b121-451f-94e0-c940916d5e86}> }, full list refresh: false
[2024.08.01 13:02:50] Media Info: Type Camera, default: \\?\root#camera#0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\8da4e6f4fd61466dbca9c8dc67dc7e77, list: { "Iriun Webcam" <\\?\root#camera#0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\8da4e6f4fd61466dbca9c8dc67dc7e77>, "ToZx A34 (Windows Virtual Camera)" <\\?\swd#vcamdevapi#a4fad48ccf8c474675f3dfc331ee95969f1a07d26b7e8afb075629604f59edbb#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{fcebba03-9d13-4c13-9940-cc84fcd132d1}>, "OBS Virtual Camera" <OBS Virtual Camera> }, full list refresh: true
[2024.08.01 13:02:50] App Info: reading settings...
[2024.08.01 13:02:50] App Info: reading encrypted settings...
[2024.08.01 13:02:50] Lang Info: Loaded cached, keys: 7136
[2024.08.01 13:02:50] Font: from ':/gui/fonts/OpenSans-Regular.ttf' loaded 'Open Sans'
[2024.08.01 13:02:50] Font: from ':/gui/fonts/OpenSans-Italic.ttf' loaded 'Open Sans'
[2024.08.01 13:02:50] Font: from ':/gui/fonts/OpenSans-SemiBold.ttf' loaded 'Open Sans Semibold'
[2024.08.01 13:02:50] Font: from ':/gui/fonts/OpenSans-SemiBoldItalic.ttf' loaded 'Open Sans Semibold'
[2024.08.01 13:02:50] Font: from ':/gui/fonts/Vazirmatn-UI-NL-Regular.ttf' loaded 'Vazirmatn UI NL'
[2024.08.01 13:02:50] Font: from ':/gui/fonts/Vazirmatn-UI-NL-SemiBold.ttf' loaded 'Vazirmatn UI NL SemiBold'
[2024.08.01 13:02:50] OpenAL Logging Level: (not set)
[2024.08.01 13:02:50] App Info: reading accounts info...
[2024.08.01 13:02:50] App Info: reading encrypted info...
[2024.08.01 13:02:50] App Info: reading map...
[2024.08.01 13:02:50] App Info: reading encrypted map...
[2024.08.01 13:02:50] App Info: reading encrypted user settings...
[2024.08.01 13:02:50] App Info: encrypted user settings read.
[2024.08.01 13:02:50] App Info: reading encrypted mtp data...
[2024.08.01 13:02:50] MTP Info: read keys, current: 5, to destroy: 0
[2024.08.01 13:02:50] Map read time: 6
[2024.08.01 13:02:50] App Info: reading encrypted mtp config...
[2024.08.01 13:02:50] Export Info: Destroy top bar by controller removal.
[2024.08.01 13:02:50] OpenGL: Using custom 'gpu_driver_bug_list.json'.
[2024.08.01 13:02:50] OpenGL Profile: OpenGLES.
[2024.08.01 13:02:50] OpenGL Renderer: ANGLE (NVIDIA, NVIDIA GeForce GTX 1050 Ti Direct3D11 vs_5_0 ps_5_0, D3D11-31.0.15.5222)
[2024.08.01 13:02:50] OpenGL Vendor: Google Inc. (NVIDIA)
[2024.08.01 13:02:50] OpenGL Version: OpenGL ES 3.0.0 (ANGLE 2.1.10 git hash: e3f59e8d0c3e)
[2024.08.01 13:02:50] OpenGL Extensions: GL_EXT_occlusion_query_boolean, GL_OES_get_program_binary, GL_EXT_debug_marker, GL_EXT_color_buffer_float, GL_NV_pixel_buffer_object, GL_ANGLE_lossy_etc_decode, GL_CHROMIUM_copy_compressed_texture, GL_OES_texture_half_float_linear, GL_ANGLE_robust_client_memory, GL_EXT_shader_texture_lod, GL_OES_sample_variables, GL_ANGLE_texture_multisample, GL_NV_framebuffer_blit, GL_EXT_texture_format_BGRA8888, GL_OES_compressed_ETC2_RGB8_texture, GL_EXT_multisampled_render_to_texture, GL_EXT_render_snorm, GL_EXT_texture_filter_anisotropic, GL_ANGLE_base_vertex_base_instance_shader_builtin, GL_CHROMIUM_copy_texture, GL_OVR_multiview, GL_OES_shader_multisample_interpolation, GL_EXT_clip_cull_distance, GL_OES_EGL_image, GL_OES_element_index_uint, GL_ANGLE_stencil_texturing, GL_OES_texture_stencil8, GL_ANGLE_provoking_vertex, GL_EXT_texture_norm16, GL_ANGLE_client_arrays, GL_ANGLE_renderability_validation, GL_CHROMIUM_bind_uniform_location, GL_ANGLE_shader_pixel_local_storage, GL_EXT_texture_rg, GL_OES_EGL_image_external, GL_EXT_draw_buffers, GL_EXT_blend_func_extended, GL_EXT_instanced_arrays, GL_EXT_robustness, GL_EXT_texture_compression_bptc, GL_ANGLE_get_serialized_context_string, GL_OES_compressed_EAC_RG11_signed_texture, GL_ANGLE_polygon_mode, GL_NV_pack_subimage, GL_NV_fence, GL_EXT_frag_depth, GL_AMD_performance_monitor, GL_EXT_debug_label, GL_EXT_color_buffer_half_float, GL_EXT_map_buffer_range, GL_OES_compressed_ETC2_punchthroughA_sRGB8_alpha_texture, GL_EXT_disjoint_timer_query, GL_OES_compressed_ETC2_sRGB8_alpha8_texture, GL_ANGLE_base_vertex_base_instance, GL_WEBGL_video_texture, GL_OES_texture_float, GL_ANGLE_translated_shader_source, GL_NV_shader_noperspective_interpolation, GL_OES_draw_buffers_indexed, GL_EXT_draw_buffers_indexed, GL_OES_compressed_ETC2_sRGB8_texture, GL_OES_depth32, GL_ANGLE_memory_size, GL_ANGLE_texture_compression_dxt3, GL_EXT_blend_minmax, GL_OES_texture_npot, GL_EXT_unpack_subimage, GL_ANGLE_instanced_arrays, GL_EXT_depth_clamp, GL_OES_vertex_array_object, GL_OVR_multiview2, GL_OES_draw_elements_base_vertex, GL_EXT_texture_storage, GL_OES_surfaceless_context, GL_EXT_texture_compression_dxt1, GL_OES_standard_derivatives, GL_ANGLE_framebuffer_multisample, GL_EXT_clip_control, GL_OES_texture_border_clamp, GL_OES_fbo_render_mipmap, GL_ANGLE_copy_texture_3d, GL_KHR_parallel_shader_compile, GL_OES_compressed_ETC2_punchthroughA_RGBA8_texture, GL_ANGLE_pack_reverse_row_order, GL_CHROMIUM_lose_context, GL_OES_compressed_EAC_RG11_unsigned_texture, GL_OES_packed_depth_stencil, GL_OES_compressed_EAC_R11_unsigned_texture, GL_ANGLE_texture_usage, GL_EXT_texture_border_clamp, GL_ANGLE_framebuffer_blit, GL_EXT_draw_elements_base_vertex, GL_EXT_sRGB, GL_NV_EGL_stream_consumer_external, GL_OES_depth24, GL_CHROMIUM_sync_query, GL_EXT_texture_type_2_10_10_10_REV, GL_ANGLE_shader_pixel_local_storage_coherent, GL_EXT_texture_compression_s3tc_srgb, GL_EXT_base_instance, GL_ANGLE_depth_texture, GL_ANGLE_multiview_multisample, GL_APPLE_clip_distance, GL_CHROMIUM_bind_generates_resource, GL_EXT_read_format_bgra, GL_ANGLE_multi_draw, GL_EXT_multi_draw_indirect, GL_EXT_texture_compression_rgtc, , GL_ANGLE_request_extension, GL_EXT_texture_mirror_clamp_to_edge, GL_OES_mapbuffer, GL_ANGLE_program_cache_control, GL_ANGLE_texture_compression_dxt5, GL_KHR_debug, GL_OES_rgb8_rgba8, GL_OES_compressed_ETC2_RGBA8_texture, GL_EXT_float_blend, GL_EXT_polygon_offset_clamp, GL_EXT_conservative_depth, GL_OES_texture_float_linear, GL_OES_texture_half_float, GL_OES_EGL_image_external_essl3, GL_OES_compressed_EAC_R11_signed_texture, GL_ANGLE_get_tex_level_parameter, GL_EXT_EGL_image_external_wrap_modes, GL_ANGLE_clip_cull_distance, GL_EXT_discard_framebuffer
[2024.08.01 13:02:50] EGL Extensions: EGL_EXT_create_context_robustness, EGL_ANGLE_d3d_share_handle_client_buffer, EGL_ANGLE_d3d_texture_client_buffer, EGL_ANGLE_surface_d3d_texture_2d_share_handle, EGL_ANGLE_query_surface_pointer, EGL_ANGLE_window_fixed_size, EGL_ANGLE_keyed_mutex, EGL_ANGLE_surface_orientation, EGL_ANGLE_direct_composition, EGL_ANGLE_windows_ui_composition, EGL_NV_post_sub_buffer, EGL_KHR_create_context, EGL_KHR_image, EGL_KHR_image_base, EGL_KHR_gl_texture_2D_image, EGL_KHR_gl_texture_cubemap_image, EGL_KHR_gl_renderbuffer_image, EGL_KHR_get_all_proc_addresses, EGL_KHR_stream, EGL_KHR_stream_consumer_gltexture, EGL_NV_stream_consumer_gltexture_yuv, EGL_ANGLE_stream_producer_d3d_texture, EGL_ANGLE_create_context_webgl_compatibility, EGL_CHROMIUM_create_context_bind_generates_resource, EGL_CHROMIUM_sync_control, EGL_EXT_pixel_format_float, EGL_KHR_surfaceless_context, EGL_ANGLE_display_texture_share_group, EGL_ANGLE_display_semaphore_share_group, EGL_ANGLE_create_context_client_arrays, EGL_ANGLE_program_cache_control, EGL_ANGLE_robust_resource_initialization, EGL_ANGLE_create_context_extensions_enabled, EGL_ANDROID_blob_cache, EGL_ANDROID_recordable, EGL_ANGLE_image_d3d11_texture, EGL_ANGLE_create_context_backwards_compatible, EGL_KHR_no_config_context, EGL_KHR_create_context_no_error, EGL_KHR_reusable_sync, 
[2024.08.01 13:02:50] OpenGL: QOpenGLContext created, version: 3.3.
[2024.08.01 13:02:50] OpenGL: [TRUE] (Window)
[2024.08.01 13:02:53] RPC Error: request 47 got fail with code 400, error WEBFILE_NOT_AVAILABLE
harverrto commented 1 week ago

Same here! Every time I start or receive a call the client gets stuck for a while before the call starts. I'm using Telegram Desktop v5.5.1 x64 on Windows 11 I tried uninstalling and installing the client again but got the same result. It may be related to the version? Because this started happening to me suddenly.