telegramdesktop / tdesktop

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

Telegram Desktop memory leak on launch #27690

Closed imcatesco closed 5 months ago

imcatesco commented 5 months ago

Steps to reproduce

  1. Updating telegram to last available version (4016000)
  2. Launch telegram
  3. Watching how your memory blows up.

Expected behaviour

Normal memory consumption

Actual behaviour

Inadequate memory consumption, memory leak.

Operating system

Fedora Linux 38 x86_64 krnel 6.7.10-100

Version of Telegram Desktop

4016000

Installation source

Static binary from official website

Crash ID

No response

Logs

[2024.04.02 15:38:51] Launched version: 4016000, install beta: [FALSE], alpha: 0, debug mode: [FALSE]
[2024.04.02 15:38:51] Executable dir: /opt/Telegram/, name: Telegram
[2024.04.02 15:38:51] Initial working dir: /home/yehorizon/
[2024.04.02 15:38:51] Working dir: /home/yehorizon/.local/share/TelegramDesktop/
[2024.04.02 15:38:51] Command line: /opt/Telegram/Telegram --
[2024.04.02 15:38:51] Executable path before check: /opt/Telegram/Telegram
[2024.04.02 15:38:51] Logs started
[2024.04.02 15:38:51] App ID: org.telegram.desktop._3e485da34fc040f9218e3891ecde1e6c
[2024.04.02 15:38:51] Connecting local socket to 54c41cd40a6f2172ed966a3428c05085-TelegramDesktop...
[2024.04.02 15:38:51] Socket connect error 0, starting server and app...
[2024.04.02 15:38:51] Moved logging from '/home/yehorizon/.local/share/TelegramDesktop/log_start0.txt' to '/home/yehorizon/.local/share/TelegramDesktop/log.txt'!
[2024.04.02 15:38:51] Opened '/home/yehorizon/.local/share/TelegramDesktop/tdata/working' for reading, the previous Telegram Desktop launch was not finished properly :( Crash log size: 0
[2024.04.02 15:38:51] Global devicePixelRatio: 2
[2024.04.02 15:38:51] QT_SCALE_FACTOR: 2
[2024.04.02 15:38:51] Primary screen DPI: 96, Base: 96.
[2024.04.02 15:38:51] Computed screen scale: 100
[2024.04.02 15:38:51] DevicePixelRatio: 2
[2024.04.02 15:38:51] ScreenScale: 100
[2024.04.02 15:38:51] Icon theme: Kanagawa
[2024.04.02 15:38:51] Fallback icon theme: 
[2024.04.02 15:38:51] Media Info: Type Playback, default: Family 17h/19h HD Audio Controller Speaker + Headphones, list: { "Family 17h/19h HD Audio Controller Speaker + Headphones" <Family 17h/19h HD Audio Controller Speaker + Headphones> }, full list refresh: true
[2024.04.02 15:38:51] Media Info: Type Capture, default: Family 17h/19h HD Audio Controller Digital Microphone, list: { "Family 17h/19h HD Audio Controller Digital Microphone" <Family 17h/19h HD Audio Controller Digital Microphone>, "Monitor of Family 17h/19h HD Audio Controller Speaker + Headphones" <Monitor of Family 17h/19h HD Audio Controller Speaker + Headphones>, "Family 17h/19h HD Audio Controller Headphones Stereo Microphone" <Family 17h/19h HD Audio Controller Headphones Stereo Microphone> }, full list refresh: true
[2024.04.02 15:38:51] Media Info: Type Camera, default: usb-0000:03:00.4-4, list: { "Integrated Camera: Integrated C" <usb-0000:03:00.4-4>, "Integrated Camera: Integrated I" <usb-0000:03:00.4-4> }, full list refresh: true
[2024.04.02 15:38:51] System tray available: [TRUE]
[2024.04.02 15:38:51] Font: from ':/gui/fonts/DAOpenSansRegular.ttf' loaded 'DAOpenSansRegular'
[2024.04.02 15:38:51] Font: from ':/gui/fonts/DAVazirRegular.ttf' loaded 'DAVazirRegular'
[2024.04.02 15:38:51] Font: from ':/gui/fonts/DAOpenSansRegularItalic.ttf' loaded 'DAOpenSansRegularItalic'
[2024.04.02 15:38:51] Font: from ':/gui/fonts/DAVazirRegular.ttf' loaded 'DAVazirRegular'
[2024.04.02 15:38:51] Font: from ':/gui/fonts/DAOpenSansSemiboldAsBold.ttf' loaded 'DAOpenSansSemibold'
[2024.04.02 15:38:51] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2024.04.02 15:38:51] Font: from ':/gui/fonts/DAOpenSansSemiboldItalicAsBold.ttf' loaded 'DAOpenSansSemiboldItalic'
[2024.04.02 15:38:51] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2024.04.02 15:38:51] Font: from ':/gui/fonts/DAOpenSansSemiboldAsBold.ttf' loaded 'DAOpenSansSemibold'
[2024.04.02 15:38:51] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2024.04.02 15:38:51] Font: from ':/gui/fonts/DAOpenSansSemiboldItalicAsBold.ttf' loaded 'DAOpenSansSemiboldItalic'
[2024.04.02 15:38:51] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2024.04.02 15:38:51] App Info: reading settings...
[2024.04.02 15:38:51] App Info: reading encrypted settings...
[2024.04.02 15:38:51] Lang Info: Loaded cached, keys: 6783
[2024.04.02 15:38:51] OpenAL Logging Level: (not set)
[2024.04.02 15:38:51] OpenGL Profile: Compatibility.
[2024.04.02 15:38:51] OpenGL Renderer: AMD Radeon Graphics (renoir, LLVM 16.0.6, DRM 3.57, 6.7.10-100.fc38.x86_64)
[2024.04.02 15:38:51] OpenGL Vendor: AMD
[2024.04.02 15:38:51] OpenGL Version: 4.6 (Compatibility Profile) Mesa 23.1.9
[2024.04.02 15:38:51] OpenGL Extensions: GL_EXT_draw_range_elements, GL_ARB_seamless_cubemap_per_texture, GL_ATI_draw_buffers, GL_ARB_texture_rg, GL_EXT_shader_image_load_store, GL_ARB_texture_storage_multisample, GL_AMD_seamless_cubemap_per_texture, GL_KHR_parallel_shader_compile, GL_ARB_enhanced_layouts, GL_ARB_conservative_depth, GL_ARB_shader_subroutine, GL_NVX_gpu_memory_info, GL_ARB_vertex_buffer_object, GL_ARB_shader_ballot, GL_EXT_texture_compression_dxt1, GL_ARB_shading_language_100, GL_EXT_texture_edge_clamp, GL_EXT_debug_label, GL_INTEL_blackhole_render, GL_ARB_sample_shading, GL_SGIS_generate_mipmap, GL_ARB_clear_buffer_object, GL_AMD_vertex_shader_viewport_index, GL_ARB_shader_stencil_export, GL_ARB_internalformat_query, GL_APPLE_packed_pixels, GL_ARB_copy_buffer, GL_EXT_draw_buffers2, GL_ARB_ES3_compatibility, GL_ARB_map_buffer_alignment, GL_EXT_vertex_attrib_64bit, GL_KHR_no_error, GL_ARB_half_float_vertex, GL_EXT_transform_feedback, GL_MESA_pack_invert, GL_NV_compute_shader_derivatives, GL_ARB_debug_output, GL_EXT_secondary_color, GL_EXT_blend_minmax, GL_ARB_compute_variable_group_size, GL_ARB_pipeline_statistics_query, GL_ARB_multisample, GL_ARB_fragment_program, GL_EXT_texture_snorm, GL_ARB_query_buffer_object, GL_ARB_transform_feedback2, GL_ARB_shader_objects, GL_ARB_depth_buffer_float, GL_EXT_blend_subtract, GL_ARB_draw_indirect, GL_ARB_texture_query_levels, GL_ARB_transform_feedback3, GL_ARB_fragment_coord_conventions, GL_EXT_texture_array, GL_KHR_robust_buffer_access_behavior, GL_ARB_get_program_binary, GL_ARB_draw_instanced, GL_ARB_shading_language_420pack, GL_NV_half_float, GL_EXT_pixel_buffer_object, GL_NV_texture_rectangle, GL_EXT_texture_compression_rgtc, GL_ARB_shadow, GL_ARB_instanced_arrays, GL_ARB_bindless_texture, GL_ARB_conditional_render_inverted, GL_ARB_internalformat_query2, GL_AMD_performance_monitor, GL_EXT_texture_lod_bias, GL_ARB_point_sprite, GL_AMD_vertex_shader_layer, GL_EXT_depth_bounds_test, GL_ARB_vertex_attrib_binding, GL_EXT_blend_color, GL_ARB_multi_bind, GL_S3_s3tc, GL_EXT_blend_func_separate, GL_ARB_sampler_objects, GL_ARB_ES3_2_compatibility, GL_ARB_explicit_attrib_location, GL_ARB_invalidate_subdata, GL_ARB_map_buffer_range, GL_ARB_shader_draw_parameters, GL_ANGLE_texture_compression_dxt5, GL_ARB_viewport_array, GL_ATI_texture_float, GL_ARB_framebuffer_object, GL_ARB_shader_viewport_layer_array, GL_ARB_copy_image, GL_ARB_tessellation_shader, GL_ARB_color_buffer_float, GL_ATI_texture_compression_3dc, GL_NV_depth_clamp, GL_NV_conditional_render, GL_EXT_shader_samples_identical, GL_EXT_texture_shadow_lod, GL_ARB_compatibility, GL_EXT_texture_sRGB, GL_ARB_timer_query, GL_EXT_window_rectangles, GL_EXT_framebuffer_sRGB, GL_EXT_point_parameters, GL_NV_packed_depth_stencil, GL_AMD_draw_buffers_blend, GL_ARB_base_instance, GL_ARB_texture_cube_map_array, GL_EXT_multi_draw_arrays, GL_ARB_vertex_shader, GL_AMD_multi_draw_indirect, GL_ANGLE_texture_compression_dxt3, GL_NV_light_max_exponent, GL_MESA_window_pos, GL_ARB_draw_buffers_blend, GL_ARB_texture_stencil8, GL_EXT_texture3D, GL_ARB_texture_buffer_object_rgb32, GL_ARB_vertex_program, GL_ARB_buffer_storage, GL_ARB_gpu_shader5, GL_EXT_gpu_shader4, GL_ARB_uniform_buffer_object, GL_ATI_fragment_shader, GL_ARB_draw_buffers, GL_ARB_gpu_shader_int64, GL_NV_alpha_to_coverage_dither_control, GL_EXT_fog_coord, GL_ARB_texture_buffer_object, GL_EXT_packed_pixels, GL_EXT_demote_to_helper_invocation, GL_ARB_texture_border_clamp, GL_ARB_shader_storage_buffer_object, GL_ARB_fragment_program_shadow, GL_ARB_texture_compression_rgtc, GL_NV_vdpau_interop, GL_NV_fog_distance, GL_ARB_shading_language_packing, GL_ARB_spirv_extensions, GL_NV_shader_atomic_int64, GL_EXT_framebuffer_blit, GL_AMD_shader_trinary_minmax, GL_ARB_direct_state_access, GL_ARB_fragment_layer_viewport, GL_ATI_meminfo, GL_ARB_texture_view, GL_ARB_fragment_shader, GL_ARB_texture_float, GL_EXT_texture_sRGB_decode, GL_ARB_point_parameters, GL_EXT_vertex_array, GL_AMD_shader_stencil_export, GL_ARB_sparse_texture, GL_EXT_EGL_sync, GL_ARB_gpu_shader_fp64, GL_EXT_framebuffer_multisample_blit_scaled, GL_EXT_stencil_two_side, GL_AMD_conservative_depth, GL_KHR_robustness, GL_ARB_texture_compression, GL_EXT_memory_object, GL_ARB_stencil_texturing, GL_EXT_provoking_vertex, GL_NV_texture_env_combine4, GL_EXT_packed_depth_stencil, GL_ATI_texture_env_combine3, GL_EXT_memory_object_fd, GL_ARB_depth_clamp, GL_EXT_packed_float, GL_ARB_shader_bit_encoding, GL_ARB_window_pos, GL_ARB_ES2_compatibility, GL_ARB_texture_multisample, GL_ARB_gl_spirv, GL_EXT_compiled_vertex_array, GL_EXT_texture_compression_latc, GL_ARB_transform_feedback_overflow_query, GL_ARB_texture_gather, GL_ATI_separate_stencil, GL_MESA_framebuffer_flip_y, GL_ARB_vertex_array_object, GL_ARB_derivative_control, GL_ARB_cull_distance, GL_ATI_texture_mirror_once, GL_EXT_texture_env_dot3, GL_ARB_pixel_buffer_object, GL_ARB_shader_group_vote, GL_NV_blend_square, GL_EXT_gpu_program_parameters, GL_EXT_direct_state_access, GL_EXT_polygon_offset_clamp, GL_SGIS_texture_edge_clamp, GL_ARB_shader_image_load_store, GL_ARB_blend_func_extended, GL_ARB_texture_mirrored_repeat, GL_EXT_EGL_image_storage, GL_ARB_explicit_uniform_location, GL_SGIS_texture_border_clamp, GL_ARB_program_interface_query, GL_EXT_shader_integer_mix, GL_IBM_multimode_draw_arrays, GL_EXT_shadow_funcs, GL_ARB_texture_buffer_range, GL_IBM_texture_mirrored_repeat, GL_NV_texgen_reflection, GL_ARB_multi_draw_indirect, GL_ARB_transform_feedback_instanced, GL_ARB_provoking_vertex, GL_EXT_bgra, GL_KHR_texture_compression_astc_ldr, GL_ARB_texture_storage, GL_IBM_rasterpos_clip, GL_ARB_texture_non_power_of_two, GL_AMD_depth_clamp_separate, GL_EXT_copy_texture, GL_EXT_timer_query, GL_ARB_texture_query_lod, GL_ARB_vertex_type_2_10_10_10_rev, GL_ARB_sparse_texture2, GL_ARB_texture_mirror_clamp_to_edge, GL_EXT_texture_buffer_object, GL_ARB_indirect_parameters, GL_EXT_texture_env_add, GL_ARB_occlusion_query, GL_ARB_compressed_texture_pixel_storage, GL_EXT_subtexture, GL_AMD_pinned_memory, GL_EXT_texture, GL_ARB_texture_filter_anisotropic, GL_INGR_blend_func_separate, GL_ARB_ES3_1_compatibility, GL_EXT_texture_cube_map, GL_ARB_depth_texture, GL_ARB_texture_rectangle, GL_ARB_texture_env_combine, GL_ARB_texture_rgb10_a2ui, GL_ARB_vertex_array_bgra, GL_ARB_vertex_attrib_64bit, GL_ARB_sync, GL_ARB_texture_barrier, GL_EXT_texture_shared_exponent, GL_ARB_shader_atomic_counter_ops, GL_EXT_texture_rectangle, GL_AMD_query_buffer_object, GL_ARB_polygon_offset_clamp, GL_EXT_blend_equation_separate, GL_NV_texture_barrier, GL_EXT_semaphore_fd, GL_NV_copy_image, GL_EXT_rescale_normal, GL_ARB_shader_atomic_counters, GL_EXT_texture_compression_s3tc, GL_ARB_clear_texture, GL_ARB_draw_elements_base_vertex, GL_EXT_abgr, GL_EXT_texture_filter_anisotropic, GL_ARB_texture_env_dot3, GL_ARB_multitexture, GL_ARB_shader_clock, GL_ARB_shader_texture_lod, GL_ARB_shading_language_include, GL_EXT_framebuffer_multisample, GL_NV_primitive_restart, GL_ARB_seamless_cube_map, GL_ARB_compute_shader, GL_EXT_texture_swizzle, GL_KHR_blend_equation_advanced, GL_EXT_texture_mirror_clamp, GL_EXT_stencil_wrap, GL_ARB_half_float_pixel, GL_OES_read_format, GL_SGIS_texture_lod, GL_ARB_shader_precision, GL_NV_ES1_1_compatibility, GL_ARB_texture_env_crossbar, GL_ARB_get_texture_sub_image, GL_ARB_sparse_texture_clamp, GL_ARB_vertex_type_10f_11f_11f_rev, GL_EXT_texture_env_combine, GL_AMD_framebuffer_multisample_advanced, GL_ARB_arrays_of_arrays, GL_ARB_robustness, GL_AMD_texture_texture4, GL_KHR_context_flush_control, GL_SUN_multi_draw_arrays, GL_EXT_texture_integer, GL_ARB_framebuffer_sRGB, GL_OES_EGL_image, GL_ARB_clip_control, GL_ARB_texture_compression_bptc, GL_MESA_texture_signed_rgba, GL_ARB_separate_shader_objects, GL_NV_copy_depth_to_color, GL_EXT_texture_object, GL_ARB_occlusion_query2, GL_KHR_debug, GL_ARB_transpose_matrix, GL_EXT_texture_sRGB_R8, GL_EXT_separate_specular_color, GL_ARB_framebuffer_no_attachments, GL_ARB_robust_buffer_access_behavior, GL_ATI_blend_equation_separate, GL_ARB_parallel_shader_compile, GL_EXT_shader_image_load_formatted, GL_ARB_texture_cube_map, GL_ARB_texture_env_add, GL_EXT_draw_instanced, GL_ARB_texture_swizzle, GL_EXT_framebuffer_object, GL_KHR_texture_compression_astc_sliced_3d, GL_ARB_shader_texture_image_samples, GL_EXT_semaphore, GL_ARB_sparse_buffer, GL_ARB_shader_image_size, GL_EXT_vertex_array_bgra, GL_MESA_shader_integer_functions
[2024.04.02 15:38:51] OpenGL: QOpenGLContext created, version: 4.4.
ilya-fedin commented 5 months ago

Steps to reproduce

1. Updating telegram to last available version ([4016000](https://github.com/telegramdesktop/tdesktop/commit/40160002b55bc7b7c12efeb42eb67f731fb71bd4))

2. Launch telegram

3. Watching how your memory blows up.

I don't see step 3

imcatesco commented 5 months ago

It seems to be a local issue, but I had to downgrade telegram to 4.14.12 and it's ok.

ilya-fedin commented 5 months ago

Well, I can't reproduce with the steps you provided...

imcatesco commented 5 months ago

Ok, I see. What logs/info can I provide to clarify the situation and/or show that this thing is reproducible?

ilya-fedin commented 5 months ago

Try to reproduce in a VM and provide all the steps needed straight from VM creation or provide a prepared VM image where it's reproducible just by running tdesktop

rafaone commented 5 months ago

same problem here, tested Debian 12 Linux 6.1.0-13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux

[2024.04.02 17:57:21] Launched version: 4016001, install beta: [FALSE], alpha: 0, debug mode: [FALSE]
[2024.04.02 17:57:21] Executable dir: /home/leiteraf/Downloads/Telegram/, name: Telegram
[2024.04.02 17:57:21] Initial working dir: /home/leiteraf/Downloads/Telegram/
[2024.04.02 17:57:21] Working dir: /home/xxx/.local/share/TelegramDesktop/
[2024.04.02 17:57:21] Command line: ./Telegram -v
[2024.04.02 17:57:21] Executable path before check: /home/xxxx/Downloads/Telegram/Telegram
[2024.04.02 17:57:21] Logs started
[2024.04.02 17:57:21] App ID: org.telegram.desktop._6e5f7f5a8893aad7355322e1a3edf5a3
[2024.04.02 17:57:22] Connecting local socket to f52276d1caa6a60d4b3f71c8915ca711-TelegramDesktop...
[2024.04.02 17:57:22] Socket connect error 0, starting server and app...
[2024.04.02 17:57:22] Moved logging from '/home/leiteraf/.local/share/TelegramDesktop/log_start0.txt' to '/home/leiteraf/.local/share/TelegramDesktop/log.txt'!
[2024.04.02 17:57:22] Opened '/home/xxx/.local/share/TelegramDesktop/tdata/working' for reading, the previous Telegram Desktop launch was not finished properly :( Crash log size: 0
[2024.04.02 17:57:22] Global devicePixelRatio: 1
[2024.04.02 17:57:22] Primary screen DPI: 96, Base: 96.
[2024.04.02 17:57:22] Computed screen scale: 100
[2024.04.02 17:57:22] DevicePixelRatio: 1
[2024.04.02 17:57:22] ScreenScale: 100
[2024.04.02 17:57:22] Icon theme: Tokyonight-Dark
[2024.04.02 17:57:22] Fallback icon theme: 
[2024.04.02 17:57:22] Media Info: Type Playback, default: Built-in Audio Analog Stereo, list: { "Built-in Audio Analog Stereo" <Built-in Audio Analog Stereo> }, full list refresh: true
[2024.04.02 17:57:22] Media Info: Type Capture, default: Built-in Audio Analog Stereo, list: { "Built-in Audio Analog Stereo" <Built-in Audio Analog Stereo>, "Monitor of Built-in Audio Analog Stereo" <Monitor of Built-in Audio Analog Stereo> }, full list refresh: true
[2024.04.02 17:57:22] Media Info: Type Camera, default: usb-0000:00:14.0-6, list: { "Integrated_Webcam_HD: Integrate" <usb-0000:00:14.0-6>, "Integrated_Webcam_HD: Integrate" <usb-0000:00:14.0-6> }, full list refresh: true
[2024.04.02 17:57:22] System tray available: [TRUE]
[2024.04.02 17:57:22] Font: from ':/gui/fonts/DAOpenSansRegular.ttf' loaded 'DAOpenSansRegular'
[2024.04.02 17:57:22] Font: from ':/gui/fonts/DAVazirRegular.ttf' loaded 'DAVazirRegular'
[2024.04.02 17:57:22] Font: from ':/gui/fonts/DAOpenSansRegularItalic.ttf' loaded 'DAOpenSansRegularItalic'
[2024.04.02 17:57:22] Font: from ':/gui/fonts/DAVazirRegular.ttf' loaded 'DAVazirRegular'
[2024.04.02 17:57:22] Font: from ':/gui/fonts/DAOpenSansSemiboldAsBold.ttf' loaded 'DAOpenSansSemibold'
[2024.04.02 17:57:22] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2024.04.02 17:57:22] Font: from ':/gui/fonts/DAOpenSansSemiboldItalicAsBold.ttf' loaded 'DAOpenSansSemiboldItalic'
[2024.04.02 17:57:22] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2024.04.02 17:57:22] Font: from ':/gui/fonts/DAOpenSansSemiboldAsBold.ttf' loaded 'DAOpenSansSemibold'
[2024.04.02 17:57:22] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2024.04.02 17:57:22] Font: from ':/gui/fonts/DAOpenSansSemiboldItalicAsBold.ttf' loaded 'DAOpenSansSemiboldItalic'
[2024.04.02 17:57:22] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2024.04.02 17:57:22] App Info: reading settings...
[2024.04.02 17:57:22] App Info: reading encrypted settings...
[2024.04.02 17:57:22] Lang Info: Loaded cached, keys: 6783
[2024.04.02 17:57:22] OpenAL Logging Level: (not set)
nfjdu commented 5 months ago

telegram-desktop memory maps snapshot before app eats all memory and is killed by system. hope it helps somehow:

Address           Kbytes     RSS   Dirty Mode  Mapping
00007f6455601000 | 34913876 | 23483428 | 23483428 rw---   [ anon ]
00007f6ed9a43000 | 4194096 | 0 | 0 -----   [ anon ]
00007f74d9a41000 | 4194084 | 0 | 0 -----   [ anon ]
00007f7fd9a41000 | 4194080 | 0 | 0 -----   [ anon ]
00007f78d9a45000 | 4194076 | 0 | 0 -----   [ anon ]
00007f70d9a47000 | 4194068 | 0 | 0 -----   [ anon ]
00007f81d9a45000 | 4194064 | 0 | 0 -----   [ anon ]
00007f89d9a47000 | 4194060 | 0 | 0 -----   [ anon ]
00007f97d9a46000 | 4194060 | 0 | 0 -----   [ anon ]
00007f83d9a4a000 | 4194056 | 0 | 0 -----   [ anon ]
00007f82d9a49000 | 4194052 | 0 | 0 -----   [ anon ]
00007f92d9a45000 | 4194052 | 0 | 0 -----   [ anon ]
00007f93d9a46000 | 4194052 | 0 | 0 -----   [ anon ]
00007f96d9a45000 | 4194052 | 0 | 0 -----   [ anon ]
00007f71d9a4c000 | 4194040 | 0 | 0 -----   [ anon ]
00007f75d9a4a000 | 4194040 | 0 | 0 -----   [ anon ]
00007f95d9a47000 | 4194040 | 0 | 0 -----   [ anon ]
00007f80d9a49000 | 4194032 | 0 | 0 -----   [ anon ]
00007f88d9a4b000 | 4194032 | 0 | 0 -----   [ anon ]
00007f86d9a4e000 | 4194028 | 0 | 0 -----   [ anon ]
00007f91d9a4b000 | 4194024 | 0 | 0 -----   [ anon ]
00007f6dd9a4a000 | 4194020 | 0 | 0 -----   [ anon ]
00007f8cd9a50000 | 4194020 | 0 | 0 -----   [ anon ]
00007f8dd9a49000 | 4194016 | 0 | 0 -----   [ anon ]
00007f98d9a49000 | 4194012 | 0 | 0 -----   [ anon ]
00007f7cd9a50000 | 4194000 | 0 | 0 -----   [ anon ]
00007f8fd9a81000 | 4193836 | 0 | 0 -----   [ anon ]
00007f7bd9a8c000 | 4193808 | 0 | 0 -----   [ anon ]
00007f7dd9a84000 | 4193804 | 0 | 0 -----   [ anon ]
00007f87d9a89000 | 4193800 | 0 | 0 -----   [ anon ]
00007f77d9a84000 | 4193796 | 0 | 0 -----   [ anon ]
00007f6cd9a8a000 | 4193792 | 0 | 0 -----   [ anon ]
00007f73d9a81000 | 4193792 | 0 | 0 -----   [ anon ]
00007f94d9a87000 | 4193792 | 0 | 0 -----   [ anon ]
00007f8ad9a8a000 | 4193768 | 0 | 0 -----   [ anon ]
00007f72d9a8a000 | 4193756 | 0 | 0 -----   [ anon ]
00007f8bd9ac4000 | 4193584 | 0 | 0 -----   [ anon ]
00007f8ed9ac1000 | 4193536 | 0 | 0 -----   [ anon ]
00007f84d9acc000 | 4193528 | 0 | 0 -----   [ anon ]
00007f79d9b0c000 | 4193252 | 0 | 0 -----   [ anon ]
00007f7ad9b45000 | 4193052 | 0 | 0 -----   [ anon ]
00007f7ed9b87000 | 4192744 | 0 | 0 -----   [ anon ]
00007f85d9c0a000 | 4192272 | 0 | 0 -----   [ anon ]
00007f6fd9d4f000 | 4190944 | 0 | 0 -----   [ anon ]
00007f90d9dcc000 | 4190460 | 0 | 0 -----   [ anon ]
00007f76d9f88000 | 4188656 | 0 | 0 -----   [ anon ]
0000565357239000 | 60688 | 12588 | 0 r-x-- telegram-desktop
00007f6cb10e8000 | 47532 | 18448 | 0 r-x-- libLLVM-17.so
000056535ad7d000 | 38456 | 13004 | 0 r---- telegram-desktop
00007f6cd4dac000 | 31872 | 7356 | 0 r-x-- libnvidia-gpucomp.so.550.67
00007f99da402000 | 31280 | 0 | 0 r---- libicudata.so.73.2
00007f6cd7800000 | 29852 | 4864 | 0 r-x-- libnvidia-glcore.so.550.67
00007f6cb3f53000 | 27932 | 2112 | 0 r---- libLLVM-17.so
00007f6cb5e95000 | 20008 | 6888 | 0 r-x-- libgallium_dri.so
00007f6cb9441000 | 13268 | 768 | 0 r---- libnvidia-eglcore.so.550.67
00007f6cb8829000 | 12384 | 1988 | 0 r-x-- libnvidia-eglcore.so.550.67
00007f6cb721f000 | 10856 | 2372 | 0 r---- libgallium_dri.so
00007f6cbf001000 | 10372 | 10372 | 10372 rw---   [ anon ]
...

P.S. Can confirm, downgrading helps to fix this problem

EnGyUncia commented 5 months ago

Same here, confirm. Operating system Fedora Linux 39 x86_64 kernel 6.8.4-200 Version of Telegram Desktop 4016006 Installation source Static binary from official website

Just start Telegram-Desktop, wait about half a minute and you will see an error message: Screenshot from 2024-04-10 10-46-04

What about system logs? Here, what i'm personally got:

Apr 10 10:45:08 fedora systemd[2767]: Started dbus-:1.2-org.telegram.desktop._71d497310f1eb5fd145c71c5148e557b@4.service.
Apr 10 10:45:09 fedora dbus-broker-launch[2844]: Noticed file-system modification, trigger reload.
Apr 10 10:45:09 fedora dbus-broker-launch[2844]: Policy to allow eavesdropping in /usr/share/dbus-1/session.conf +31: Eavesdropping is deprecated and ignored
Apr 10 10:45:09 fedora dbus-broker-launch[2844]: Policy to allow eavesdropping in /usr/share/dbus-1/session.conf +33: Eavesdropping is deprecated and ignored
Apr 10 10:45:32 fedora kernel: Purging GPU memory, 0 pages freed, 0 pages still pinned, 4160 pages left available.
Apr 10 10:45:32 fedora kernel: ulauncher invoked oom-killer: gfp_mask=0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), order=0, oom_score_adj=200
Apr 10 10:45:32 fedora kernel: CPU: 6 PID: 4237 Comm: ulauncher Tainted: G     U             6.8.4-200.fc39.x86_64 #1
Apr 10 10:45:32 fedora kernel: Hardware name: HP HP ProDesk 400 G4 DM/83F3, BIOS Q23 Ver. 02.19.00 03/28/2022
Apr 10 10:45:32 fedora kernel: Call Trace:
Apr 10 10:45:32 fedora kernel:  <TASK>
Apr 10 10:45:32 fedora kernel:  dump_stack_lvl+0x47/0x60
Apr 10 10:45:32 fedora kernel:  dump_header+0x45/0x1b0
Apr 10 10:45:32 fedora kernel:  oom_kill_process+0xfa/0x200
Apr 10 10:45:32 fedora kernel:  out_of_memory+0x254/0x540
Apr 10 10:45:32 fedora kernel:  __alloc_pages_slowpath.constprop.0+0xb27/0xde0
Apr 10 10:45:32 fedora kernel:  __alloc_pages+0x32d/0x350
Apr 10 10:45:32 fedora kernel:  alloc_pages_mpol+0x95/0x1f0
Apr 10 10:45:32 fedora kernel:  ? filemap_get_entry+0xda/0x130
Apr 10 10:45:32 fedora kernel:  folio_alloc+0x60/0xe0
Apr 10 10:45:32 fedora kernel:  __filemap_get_folio+0x13e/0x2e0
Apr 10 10:45:32 fedora kernel:  filemap_fault+0x153/0xb90
Apr 10 10:45:32 fedora kernel:  __do_fault+0x32/0x120
Apr 10 10:45:32 fedora kernel:  do_fault+0x271/0x490
Apr 10 10:45:32 fedora kernel:  __handle_mm_fault+0x81e/0xe50
Apr 10 10:45:32 fedora kernel:  handle_mm_fault+0x17f/0x360
Apr 10 10:45:32 fedora kernel:  do_user_addr_fault+0x15b/0x670
Apr 10 10:45:32 fedora kernel:  exc_page_fault+0x7f/0x180
Apr 10 10:45:32 fedora kernel:  asm_exc_page_fault+0x26/0x30
Apr 10 10:45:32 fedora kernel: RIP: 0033:0x7f7f788fea10
Apr 10 10:45:32 fedora kernel: Code: Unable to access opcode bytes at 0x7f7f788fe9e6.
Apr 10 10:45:32 fedora kernel: RSP: 002b:00007f7f5e9f3998 EFLAGS: 00010246
Apr 10 10:45:32 fedora kernel: RAX: 0000000000000000 RBX: 0000563ab5224a20 RCX: 0000000000000000
Apr 10 10:45:32 fedora kernel: RDX: 0000563ab559ed00 RSI: 0000000000000000 RDI: 00007f7f78ce1888
Apr 10 10:45:32 fedora kernel: RBP: 00007f7f5e9f39b0 R08: 00007f7f5e9f3960 R09: 0000000000000000
Apr 10 10:45:32 fedora kernel: R10: 00007f7f5e9f3b20 R11: 0000000000000246 R12: 00007f7f5ea00638
Apr 10 10:45:32 fedora kernel: R13: 0000563ab5224a20 R14: 00003ad2d4132849 R15: 00007f7f5e9f3b20
Apr 10 10:45:32 fedora kernel:  </TASK>
Apr 10 10:45:32 fedora kernel: Mem-Info:
Apr 10 10:45:32 fedora kernel: active_anon:5894354 inactive_anon:1569827 isolated_anon:0
                                active_file:0 inactive_file:354 isolated_file:0
                                unevictable:3628 dirty:15 writeback:0
                                slab_reclaimable:21461 slab_unreclaimable:50160
                                mapped:7365 shmem:99569 pagetables:47306
                                sec_pagetables:0 bounce:0
                                kernel_misc_reclaimable:0
                                free:49870 free_pcp:240 free_cma:0
Apr 10 10:45:32 fedora kernel: Node 0 active_anon:23577416kB inactive_anon:6279308kB active_file:0kB inactive_file:1416kB unevictable:14512kB isolated(anon):0kB isolated(file):0kB mapped:29460kB dirty:60kB writeback:0kB shmem:398276kB shmem_thp:0kB shmem_pmdmapped:0kB anon_thp:2048kB writeback_tmp:0kB kernel_stack:31168kB pagetables:189224kB sec_pagetables:0kB all_unreclaimable? no
Apr 10 10:45:32 fedora kernel: Node 0 DMA free:11264kB boost:0kB min:32kB low:44kB high:56kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15360kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
Apr 10 10:45:32 fedora kernel: lowmem_reserve[]: 0 1648 31302 31302 31302
Apr 10 10:45:32 fedora kernel: Node 0 DMA32 free:123116kB boost:0kB min:3556kB low:5244kB high:6932kB reserved_highatomic:0KB active_anon:1545512kB inactive_anon:43396kB active_file:0kB inactive_file:528kB unevictable:0kB writepending:0kB present:1794212kB managed:1728544kB mlocked:0kB bounce:0kB free_pcp:1168kB local_pcp:0kB free_cma:0kB
Apr 10 10:45:32 fedora kernel: lowmem_reserve[]: 0 0 29653 29653 29653
Apr 10 10:45:32 fedora kernel: Node 0 Normal free:65100kB boost:0kB min:63992kB low:94356kB high:124720kB reserved_highatomic:2048KB active_anon:6263284kB inactive_anon:22004532kB active_file:576kB inactive_file:0kB unevictable:14432kB writepending:60kB present:30990336kB managed:30373524kB mlocked:5356kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
Apr 10 10:45:32 fedora kernel: lowmem_reserve[]: 0 0 0 0 0
Apr 10 10:45:32 fedora kernel: Node 0 DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 1*1024kB (U) 1*2048kB (M) 2*4096kB (M) = 11264kB
Apr 10 10:45:32 fedora kernel: Node 0 DMA32: 1*4kB (E) 4*8kB (UE) 1*16kB (E) 38*32kB (UME) 5*64kB (ME) 11*128kB (UM) 10*256kB (UME) 7*512kB (UME) 3*1024kB (UME) 4*2048kB (UE) 25*4096kB (UME) = 122804kB
Apr 10 10:45:32 fedora kernel: Node 0 Normal: 304*4kB (UME) 177*8kB (UME) 677*16kB (UME) 324*32kB (ME) 189*64kB (UME) 113*128kB (UME) 12*256kB (UME) 13*512kB (UM) 5*1024kB (UM) 1*2048kB (U) 0*4096kB = 67288kB
Apr 10 10:45:32 fedora kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB
Apr 10 10:45:32 fedora kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
Apr 10 10:45:32 fedora kernel: 102689 total pagecache pages
Apr 10 10:45:32 fedora kernel: 1754 pages in swap cache
Apr 10 10:45:32 fedora kernel: Free swap  = 8kB
Apr 10 10:45:32 fedora kernel: Total swap = 8388604kB
Apr 10 10:45:32 fedora kernel: 8200135 pages RAM
Apr 10 10:45:32 fedora kernel: 0 pages HighMem/MovableOnly
Apr 10 10:45:32 fedora kernel: 170778 pages reserved
Apr 10 10:45:32 fedora kernel: 0 pages cma reserved
Apr 10 10:45:32 fedora kernel: 0 pages hwpoisoned
Apr 10 10:45:32 fedora kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/user@1000.service/app.slice/dbus-:1.2-org.telegram.desktop._71d497310f1eb5fd145c71c5148e557b@4.service,task=Telegram,pid=67399,uid=1000
Apr 10 10:45:32 fedora kernel: Out of memory: Killed process 67399 (Telegram) total-vm:69644592kB, anon-rss:27862856kB, file-rss:5488kB, shmem-rss:276kB, UID:1000 pgtables:88724kB oom_score_adj:200
Apr 10 10:45:32 fedora systemd[2767]: dbus-:1.2-org.telegram.desktop._71d497310f1eb5fd145c71c5148e557b@4.service: A process of this unit has been killed by the OOM killer.
Apr 10 10:45:32 fedora systemd[1]: user@1000.service: A process of this unit has been killed by the OOM killer.
Apr 10 10:45:34 fedora kernel: oom_reaper: reaped process 67399 (Telegram), now anon-rss:716kB, file-rss:388kB, shmem-rss:0kB
Apr 10 10:45:34 fedora systemd[2767]: dbus-:1.2-org.telegram.desktop._71d497310f1eb5fd145c71c5148e557b@4.service: Main process exited, code=killed, status=9/KILL
Apr 10 10:45:34 fedora systemd[2767]: dbus-:1.2-org.telegram.desktop._71d497310f1eb5fd145c71c5148e557b@4.service: Failed with result 'oom-kill'.
Apr 10 10:45:34 fedora systemd[2767]: dbus-:1.2-org.telegram.desktop._71d497310f1eb5fd145c71c5148e557b@4.service: Consumed 25.359s CPU time.
ilya-fedin commented 5 months ago

Without a reliable way to reproduce (so developers can reproduce in their Linux VMs according to the steps specified in the issue), no work will be done on the issue and it will be eventually closed by a bot.

github-actions[bot] commented 5 months ago

This issue has been automatically closed because no developer succeeded to reproduce the issue with the given reproduction steps. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you find what's missing to reproduce the issue so that we can investigate further.

Note that GitHub is a developer communication platform. If you're an ordinary user seeking for help, get to support crew via Settings -> Ask question in the application.