telegramdesktop / tdesktop

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

Telegram Desktop unable to play vocal messages #24178

Closed why-not-try-calmer closed 2 years ago

why-not-try-calmer commented 2 years ago

Steps to reproduce

Expected behaviour

Telegram Desktop should play the selected vocal message.

Actual behaviour

Telegram Desktop does not play the selected vocal message.

Operating system

Linux x86_64

Version of Telegram Desktop

Flatpak commit 81b1eb20b50cae7980e80dd3b1e0d2b0497917ef275217c27e0e043c51517c6a

Installation source

Flatpak

Logs

[2022.03.12 23:33:39] Launched version: 3006000, install beta: [FALSE], alpha: 0, debug mode: [FALSE]
[2022.03.12 23:33:39] Executable dir: /app/bin/, name: telegram-desktop
[2022.03.12 23:33:39] Initial working dir: /home/hades/
[2022.03.12 23:33:39] Working dir: /home/hades/.var/app/org.telegram.desktop/data/TelegramDesktop/
[2022.03.12 23:33:39] Command line: telegram-desktop --
[2022.03.12 23:33:39] Executable path before check: /app/bin/telegram-desktop
[2022.03.12 23:33:39] Logs started
[2022.03.12 23:33:39] Launcher filename: org.telegram.desktop.desktop
[2022.03.12 23:33:39] IBus portal is present! Using it.
[2022.03.12 23:33:39] Getting DE, XDG_CURRENT_DESKTOP: 'pop:GNOME'
[2022.03.12 23:33:39] Getting DE, XDG_SESSION_DESKTOP: 'pop-wayland'
[2022.03.12 23:33:39] Getting DE, DESKTOP_SESSION: 'pop-wayland'
[2022.03.12 23:33:39] Getting DE via WM: 'GNOME Shell'
[2022.03.12 23:33:39] Getting DE, GNOME_DESKTOP_SESSION_ID: 'this-is-deprecated'
[2022.03.12 23:33:39] Getting DE, KDE_FULL_SESSION: ''
[2022.03.12 23:33:39] DE: Gnome
[2022.03.12 23:33:39] Connecting local socket to /run/user/1000/app/org.telegram.desktop/1ba76e6a7ec64e8a6ea98bf22b47ff63...
[2022.03.12 23:33:39] This is the only instance of Telegram, starting server and app...
[2022.03.12 23:33:39] Moved logging from '/home/hades/.var/app/org.telegram.desktop/data/TelegramDesktop/log_start0.txt' to '/home/hades/.var/app/org.telegram.desktop/data/TelegramDesktop/log.txt'!
[2022.03.12 23:33:39] Primary screen DPI: 96
[2022.03.12 23:33:39] Font: from ':/gui/fonts/DAOpenSansRegular.ttf' loaded 'DAOpenSansRegular'
[2022.03.12 23:33:39] Font: from ':/gui/fonts/DAVazirRegular.ttf' loaded 'DAVazirRegular'
[2022.03.12 23:33:39] Font: from ':/gui/fonts/DAOpenSansRegularItalic.ttf' loaded 'DAOpenSansRegularItalic'
[2022.03.12 23:33:39] Font: from ':/gui/fonts/DAVazirRegular.ttf' loaded 'DAVazirRegular'
[2022.03.12 23:33:39] Font: from ':/gui/fonts/DAOpenSansSemiboldAsBold.ttf' loaded 'DAOpenSansSemibold'
[2022.03.12 23:33:39] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2022.03.12 23:33:39] Font: from ':/gui/fonts/DAOpenSansSemiboldItalicAsBold.ttf' loaded 'DAOpenSansSemiboldItalic'
[2022.03.12 23:33:39] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2022.03.12 23:33:39] Font: from ':/gui/fonts/DAOpenSansSemiboldAsBold.ttf' loaded 'DAOpenSansSemibold'
[2022.03.12 23:33:39] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2022.03.12 23:33:39] Font: from ':/gui/fonts/DAOpenSansSemiboldItalicAsBold.ttf' loaded 'DAOpenSansSemiboldItalic'
[2022.03.12 23:33:39] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2022.03.12 23:33:39] Icon theme: Pop
[2022.03.12 23:33:39] Fallback icon theme: 
[2022.03.12 23:33:39] App Info: reading settings...
[2022.03.12 23:33:39] App Info: reading encrypted settings...
[2022.03.12 23:33:39] Lang Info: Loaded cached, keys: 3661
[2022.03.12 23:33:39] OpenAL Logging Level: (not set)
[2022.03.12 23:33:39] Audio Playback Devices: Audio interne Stéréo analogique
[2022.03.12 23:33:39] Audio Playback Default Device: Audio interne Stéréo analogique
[2022.03.12 23:33:39] Audio Capture Devices: Audio interne Stéréo analogique;Monitor of Audio interne Stéréo analogique
[2022.03.12 23:33:39] Audio Capture Default Device: Audio interne Stéréo analogique
[2022.03.12 23:33:40] Using Unity launcher counter.
[2022.03.12 23:33:40] System tray available: [TRUE]
[2022.03.12 23:33:40] App Info: reading accounts info...
[2022.03.12 23:33:40] App Info: reading encrypted info...
[2022.03.12 23:33:40] App Info: reading map...
[2022.03.12 23:33:40] App Info: reading encrypted map...
[2022.03.12 23:33:40] App Info: reading encrypted user settings...
[2022.03.12 23:33:40] App Info: encrypted user settings read.
[2022.03.12 23:33:40] App Info: reading encrypted mtp data...
[2022.03.12 23:33:40] MTP Info: read keys, current: 5, to destroy: 0
[2022.03.12 23:33:40] Map read time: 3
[2022.03.12 23:33:40] App Info: reading encrypted mtp config...
[2022.03.12 23:33:40] App Info: reading map...
[2022.03.12 23:33:40] App Info: reading encrypted map...
[2022.03.12 23:33:40] App Info: reading encrypted user settings...
[2022.03.12 23:33:40] App Info: encrypted user settings read.
[2022.03.12 23:33:40] App Info: reading encrypted mtp data...
[2022.03.12 23:33:40] MTP Info: read keys, current: 4, to destroy: 0
[2022.03.12 23:33:40] Map read time: 2
[2022.03.12 23:33:40] App Info: reading encrypted mtp config...
[2022.03.12 23:33:40] Export Info: Destroy top bar by controller removal.
[2022.03.12 23:33:40] OpenGL Profile: Compatibility.
[2022.03.12 23:33:40] OpenGL Renderer: Mesa Intel(R) HD Graphics 530 (SKL GT2)
[2022.03.12 23:33:40] OpenGL Vendor: Intel
[2022.03.12 23:33:40] OpenGL Version: 4.6 (Compatibility Profile) Mesa 21.3.6 (git-fef2cdb0a5)
[2022.03.12 23:33:40] OpenGL Extensions: GL_ARB_program_interface_query, GL_ARB_vertex_program, GL_NV_primitive_restart, GL_ARB_draw_instanced, GL_NV_texture_barrier, GL_ARB_conservative_depth, GL_ATI_texture_env_combine3, GL_ARB_shader_objects, GL_EXT_draw_range_elements, GL_EXT_stencil_wrap, GL_EXT_texture_filter_anisotropic, GL_S3_s3tc, GL_EXT_shader_samples_identical, GL_ARB_texture_rectangle, GL_ARB_texture_gather, GL_EXT_semaphore, GL_AMD_depth_clamp_separate, GL_ARB_debug_output, GL_NV_conditional_render, GL_SGIS_texture_edge_clamp, GL_ATI_separate_stencil, GL_ARB_gpu_shader5, GL_ARB_explicit_uniform_location, GL_ARB_color_buffer_float, GL_ARB_arrays_of_arrays, GL_EXT_blend_minmax, GL_ARB_shader_storage_buffer_object, GL_ARB_fragment_layer_viewport, GL_ARB_vertex_type_10f_11f_11f_rev, GL_EXT_shader_framebuffer_fetch, GL_MESA_window_pos, GL_ARB_point_parameters, GL_INTEL_blackhole_render, GL_ARB_fragment_program, GL_EXT_stencil_two_side, GL_EXT_vertex_attrib_64bit, GL_ARB_buffer_storage, GL_ARB_sync, GL_ARB_shader_texture_lod, GL_ARB_ES3_2_compatibility, GL_EXT_subtexture, GL_ARB_get_program_binary, GL_ARB_transform_feedback3, GL_ARB_vertex_shader, GL_ARB_texture_non_power_of_two, GL_ARB_explicit_attrib_location, GL_ARB_robust_buffer_access_behavior, GL_ARB_derivative_control, GL_EXT_texture_cube_map, GL_ARB_shader_draw_parameters, GL_ARB_post_depth_coverage, GL_EXT_texture_object, GL_ARB_map_buffer_range, GL_EXT_packed_pixels, GL_ARB_compute_variable_group_size, GL_NV_packed_depth_stencil, GL_EXT_vertex_array, GL_KHR_texture_compression_astc_sliced_3d, GL_ARB_depth_texture, GL_ARB_texture_cube_map, GL_ARB_gpu_shader_fp64, GL_ARB_shader_stencil_export, GL_ARB_compute_shader, GL_ARB_texture_query_lod, GL_EXT_blend_func_separate, GL_EXT_texture_buffer_object, GL_EXT_copy_texture, GL_KHR_no_error, GL_ARB_ES3_1_compatibility, GL_ARB_indirect_parameters, GL_AMD_vertex_shader_layer, GL_ARB_vertex_array_bgra, GL_MESA_texture_signed_rgba, GL_ARB_compressed_texture_pixel_storage, GL_ARB_texture_border_clamp, GL_APPLE_packed_pixels, GL_ARB_texture_env_dot3, GL_EXT_packed_float, GL_EXT_texture_array, GL_EXT_vertex_array_bgra, GL_EXT_framebuffer_multisample, GL_ATI_blend_equation_separate, GL_EXT_texture_env_dot3, GL_EXT_gpu_shader4, GL_MESA_shader_integer_functions, GL_EXT_framebuffer_object, GL_ARB_vertex_attrib_64bit, GL_ARB_texture_rgb10_a2ui, GL_ARB_texture_view, GL_ARB_separate_shader_objects, GL_EXT_compiled_vertex_array, GL_ARB_instanced_arrays, GL_ARB_texture_compression_rgtc, GL_NV_copy_depth_to_color, GL_EXT_EGL_image_storage, GL_ARB_clear_buffer_object, GL_EXT_texture_snorm, GL_AMD_shader_stencil_export, GL_ARB_shader_atomic_counter_ops, GL_ARB_draw_indirect, GL_EXT_gpu_program_parameters, GL_EXT_texture_shared_exponent, GL_ARB_vertex_attrib_binding, GL_ARB_depth_clamp, GL_ARB_texture_compression, GL_EXT_framebuffer_multisample_blit_scaled, GL_NV_depth_clamp, GL_EXT_draw_buffers2, GL_ARB_spirv_extensions, GL_EXT_packed_depth_stencil, GL_EXT_texture_compression_s3tc, GL_ARB_multi_draw_indirect, GL_EXT_texture_rectangle, GL_ARB_point_sprite, GL_ATI_draw_buffers, GL_EXT_point_parameters, GL_INTEL_shader_integer_functions2, GL_EXT_texture_sRGB_decode, GL_ARB_depth_buffer_float, GL_ARB_half_float_vertex, GL_ARB_shading_language_420pack, GL_ARB_shading_language_packing, GL_EXT_memory_object, GL_ARB_enhanced_layouts, GL_KHR_blend_equation_advanced_coherent, GL_AMD_performance_monitor, GL_ARB_shading_language_100, GL_KHR_robustness, GL_ARB_seamless_cube_map, GL_SGIS_generate_mipmap, GL_AMD_multi_draw_indirect, GL_ARB_texture_buffer_object, GL_EXT_texture_swizzle, GL_EXT_abgr, GL_ARB_shader_precision, GL_ARB_robustness, GL_ARB_texture_query_levels, GL_ARB_half_float_pixel, GL_ARB_query_buffer_object, GL_ARB_transform_feedback_overflow_query, GL_EXT_demote_to_helper_invocation, GL_ARB_vertex_buffer_object, GL_NV_texture_rectangle, GL_ARB_texture_multisample, GL_ARB_framebuffer_object, GL_NV_fog_distance, GL_ARB_shading_language_include, GL_ARB_texture_mirror_clamp_to_edge, GL_NV_light_max_exponent, GL_SUN_multi_draw_arrays, GL_AMD_texture_texture4, GL_ARB_copy_image, GL_ARB_draw_elements_base_vertex, GL_ARB_shader_image_load_store, GL_EXT_texture_compression_dxt1, GL_KHR_robust_buffer_access_behavior, GL_ARB_fragment_program_shadow, GL_EXT_framebuffer_sRGB, GL_ARB_texture_env_add, GL_EXT_rescale_normal, GL_IBM_rasterpos_clip, GL_ARB_occlusion_query, GL_SGIS_texture_lod, GL_ARB_multisample, GL_AMD_conservative_depth, GL_ARB_parallel_shader_compile, GL_EXT_texture_edge_clamp, GL_KHR_texture_compression_astc_ldr, GL_NV_texgen_reflection, GL_ARB_shader_group_vote, GL_ANGLE_texture_compression_dxt5, GL_NV_texture_env_combine4, GL_INTEL_performance_query, GL_EXT_texture_integer, GL_ARB_sampler_objects, GL_ARB_transform_feedback2, GL_ARB_framebuffer_no_attachments, GL_ARB_transform_feedback_instanced, GL_ANGLE_texture_compression_dxt3, GL_EXT_separate_specular_color, GL_INTEL_shader_atomic_float_minmax, GL_ARB_draw_buffers, GL_ARB_fragment_coord_conventions, GL_ARB_texture_cube_map_array, GL_ARB_internalformat_query2, GL_NV_copy_image, GL_KHR_debug, GL_ARB_cull_distance, GL_EXT_framebuffer_blit, GL_ARB_window_pos, GL_ARB_texture_mirrored_repeat, GL_ARB_texture_buffer_object_rgb32, GL_MESA_pack_invert, GL_ARB_texture_swizzle, GL_EXT_texture_sRGB, GL_ARB_shader_subroutine, GL_EXT_timer_query, GL_ARB_shader_ballot, GL_EXT_texture3D, GL_ARB_conditional_render_inverted, GL_ARB_shader_bit_encoding, GL_ARB_clear_texture, GL_KHR_context_flush_control, GL_EXT_texture_shadow_lod, GL_ARB_texture_filter_anisotropic, GL_ATI_fragment_shader, GL_ARB_gl_spirv, GL_ARB_vertex_array_object, GL_EXT_EGL_sync, GL_EXT_transform_feedback, GL_ARB_gpu_shader_int64, GL_ARB_blend_func_extended, GL_ARB_occlusion_query2, GL_AMD_pinned_memory, GL_ARB_fragment_shader_interlock, GL_EXT_bgra, GL_EXT_polygon_offset_clamp, GL_EXT_secondary_color, GL_ARB_shadow, GL_EXT_shadow_funcs, GL_INGR_blend_func_separate, GL_AMD_shader_trinary_minmax, GL_ARB_get_texture_sub_image, GL_ARB_shader_clock, GL_ARB_shader_image_size, GL_ARB_shader_texture_image_samples, GL_ARB_tessellation_shader, GL_AMD_seamless_cubemap_per_texture, GL_ARB_texture_float, GL_KHR_blend_equation_advanced, GL_ARB_pipeline_statistics_query, GL_ARB_ES2_compatibility, GL_EXT_texture_env_combine, GL_OES_read_format, GL_ARB_viewport_array, GL_EXT_texture_lod_bias, GL_ARB_texture_env_combine, GL_AMD_draw_buffers_blend, GL_KHR_parallel_shader_compile, GL_ARB_vertex_type_2_10_10_10_rev, GL_ARB_texture_stencil8, GL_NV_half_float, GL_IBM_multimode_draw_arrays, GL_MESA_framebuffer_flip_y, GL_ARB_copy_buffer, GL_ARB_invalidate_subdata, GL_EXT_direct_state_access, GL_EXT_multi_draw_arrays, GL_SGIS_texture_border_clamp, GL_EXT_provoking_vertex, GL_EXT_texture, GL_ARB_direct_state_access, GL_ARB_framebuffer_sRGB, GL_ARB_shader_atomic_counters, GL_ARB_ES3_compatibility, GL_ARB_shader_viewport_layer_array, GL_ARB_timer_query, GL_AMD_vertex_shader_viewport_index, GL_ARB_stencil_texturing, GL_EXT_fog_coord, GL_ARB_polygon_offset_clamp, GL_ARB_texture_rg, GL_NV_blend_square, GL_EXT_draw_instanced, GL_ARB_fragment_shader, GL_ARB_texture_compression_bptc, GL_OES_EGL_image, GL_EXT_blend_color, GL_ARB_multitexture, GL_ARB_texture_barrier, GL_ARB_compatibility, GL_ARB_internalformat_query, GL_ARB_pixel_buffer_object, GL_EXT_texture_sRGB_R8, GL_EXT_blend_subtract, GL_ARB_multi_bind, GL_EXT_texture_compression_rgtc, GL_EXT_shader_integer_mix, GL_ARB_provoking_vertex, GL_EXT_memory_object_fd, GL_ARB_base_instance, GL_EXT_shader_framebuffer_fetch_non_coherent, GL_ARB_map_buffer_alignment, GL_ARB_draw_buffers_blend, GL_ARB_sample_shading, GL_EXT_blend_equation_separate, GL_3DFX_texture_compression_FXT1, GL_ARB_texture_storage, GL_NV_compute_shader_derivatives, GL_EXT_texture_env_add, GL_EXT_semaphore_fd, GL_ARB_texture_buffer_range, GL_IBM_texture_mirrored_repeat, GL_AMD_query_buffer_object, GL_ARB_seamless_cubemap_per_texture, GL_ARB_texture_env_crossbar, GL_ATI_texture_float, GL_ARB_clip_control, GL_EXT_pixel_buffer_object, GL_NV_fragment_shader_interlock, GL_ARB_texture_storage_multisample, GL_ARB_transpose_matrix, GL_ARB_uniform_buffer_object
[2022.03.12 23:33:40] OpenGL: QOpenGLContext created, version: 4.4.
[2022.03.12 23:33:40] OpenGL: [TRUE] (OverlayWidget)
[2022.03.12 23:34:39] Audio Info: recreating audio device and reattaching the tracks
[2022.03.12 23:34:45] Audio Info: Closing audio playback device.
[2022.03.12 23:34:48] Audio Info: recreating audio device and reattaching the tracks
[2022.03.12 23:34:52] Api::Updates prevents quit, sending offline status...
[2022.03.12 23:34:53] Audio Info: Closing audio playback device.
ilya-fedin commented 2 years ago

Logs

Go to settings, enter showlogs blindly, it should open the directory with actual logs

why-not-try-calmer commented 2 years ago

Logs

Go to settings, enter showlogs blindly, it should open the directory with actual logs

Hello Ilya, thank you for your quick reply. I am not sure I understand. While running Telegram (flatpak), I need to go under Settings and just type "showlogs" there? I've done that but that doesn't do anything.

ilya-fedin commented 2 years ago

Are you sure you did it in settings (sometimes people confuse settings with the sidebar)? Are you sure you had english layout active when doing that?

why-not-try-calmer commented 2 years ago

Absolutely. But isn't there a standard path on Linux? In which case I can simply look there.

ilya-fedin commented 2 years ago

I don't believe it's the same in case of flatpak. And I don't remember where the flatpak version stores it :( I re-checked, you should actually type viewlogs

why-not-try-calmer commented 2 years ago

Thank you very much for double-checking, it worked, I've updated my initial comment with the logs.

ilya-fedin commented 2 years ago

[2022.03.12 23:34:39] Audio Info: recreating audio device and reattaching the tracks [2022.03.12 23:34:45] Audio Info: Closing audio playback device.

Looks like it was playing something for 6 seconds. Maybe you just muted Telegram stream in pulseaudio settings?

why-not-try-calmer commented 2 years ago

That's a good guess but I don't think this is the case.

ilya-fedin commented 2 years ago

Are you stopping it manually? If you let it play longer, maybe some error will be written to the log?

why-not-try-calmer commented 2 years ago

I was stopping it manually, and then waiting for the file's full duration -- no change. Also I've tried switching off and back on the "play media with OpenGL", without success. There is however something interested on line 66, that reads: Streaming Error: Error in avformat_open_input (code: -1, text: Operation not allowed.) log.txt

ilya-fedin commented 2 years ago

Maybe you're hitting #7063?

why-not-try-calmer commented 2 years ago

Possibly, I'll look into that, thanks for referencing that issue.

why-not-try-calmer commented 2 years ago

Okay the good news is that I am running into the very same issue using the official binary provided by telegram.org (Linux generic, x86_64). So the flatpak version is not the culprit. The bad news is that I have no idea how to solve this... The two obvious suspect are Wayland + Pipewire, both of which I am using. I'll report if a different combination avoids the issue.

hyunlee1o commented 2 years ago

Same issue, i get this messages through terminal

[ogg @ 0x7fc24a435000] 727 bytes of comment header remain
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
why-not-try-calmer commented 2 years ago

Same issue, i get this messages through terminal ...

Are you using Wayland and / or Pipewire?

hyunlee1o commented 2 years ago

I am using pipewire.

El lun., 14 mar. 2022 10:54 a. m., Adrien @.***> escribió:

Same issue, i get this messages through terminal ...

Are you using Wayland and / or Pipewire?

— Reply to this email directly, view it on GitHub https://github.com/telegramdesktop/tdesktop/issues/24178#issuecomment-1066582937, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCL2RDQWBC4GYDCXCX5JCTU74EE3ANCNFSM5QRW7ZZQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

why-not-try-calmer commented 2 years ago

I am using pipewire. El lun., 14 mar. 2022 10:54 a. m., Adrien @.> escribió: Same issue, i get this messages through terminal ... Are you using Wayland and / or Pipewire? — Reply to this email directly, view it on GitHub <#24178 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCL2RDQWBC4GYDCXCX5JCTU74EE3ANCNFSM5QRW7ZZQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.>

Ah this is interesting. Might be the start of a pattern here :)

beholders-eye commented 2 years ago

I'm using pipewire too, it was working until version 3.5.2, now I'm using version 3.6 (official statically build) and it still hits me.

There are some errors as soon as it opens:

ALSOFT_LOGLEVEL=3 .local/bin/Telegram/Telegram -debug
error: : cannot open
error: : cannot open
error: : cannot open
[ogg @ 0x7f7d58236000] 727 bytes of comment header remain
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
beholders-eye commented 2 years ago

log.txt has:

[2022.03.14 11:13:23] Audio Info: recreating audio device and reattaching the tracks
[2022.03.14 11:13:53] Audio Error: Could not create default playback device, enumerating..
[2022.03.14 11:13:53] Audio Playback Devices: Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo
[2022.03.14 11:13:53] Audio Playback Default Device: Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo

Telegram shows up as using a sound device in either pavucontrol or gnome sound settings only if I go into "Call Settings" to manually set the output 🤷🏼‍♂️

As soon as I left this modal, it vanishes from the sound settings.

I'll repeat this, no sound at all when playing local vocal messages.

I use Telegram Desktop since 2016, never ran into such an error, never...

ilya-fedin commented 2 years ago

[2022.03.14 11:13:53] Audio Error: Could not create default playback device, enumerating..

Try to run the executable with ALSOFT_LOGLEVEL=3

why-not-try-calmer commented 2 years ago

[2022.03.14 11:13:53] Audio Error: Could not create default playback device, enumerating..

Try to run the executable with ALSOFT_LOGLEVEL=3

I am getting this:

[ogg @ 0x7fe16c836000] 727 bytes of comment header remain
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
[ALSOFT] (EE) Failed to set real-time priority for thread: Opération non permise (1)
[ALSOFT] (II) Key pulse/allow-moves not found
[ALSOFT] (II) Connecting to "(default)"
[ALSOFT] (II) Key channels not found
[ALSOFT] (II) Key sample-type not found
[ALSOFT] (II) Key frequency not found
[ALSOFT] (II) Key period_size not found
[ALSOFT] (II) Key periods not found
[ALSOFT] (II) Key sources not found
[ALSOFT] (II) Key slots not found
[ALSOFT] (II) Key sends not found
[ALSOFT] (II) Key ambi-format not found
[ALSOFT] (II) Created device 0x7fe16c8d4840, "Audio interne Stéréo analogique"
[ALSOFT] (II) Key hrtf not found
[ALSOFT] (II) Pre-reset: Stereo, Float32, 44100hz, 882 / 2646 buffer
[ALSOFT] (II) Active port: analog-output-speaker (Haut-parleurs)
[ALSOFT] (II) Key pulse/allow-moves not found
[ALSOFT] (II) Key pulse/adjust-latency not found
[ALSOFT] (II) Key pulse/fix-rate not found
[ALSOFT] (II) minreq=7056, tlength=21168, prebuf=0
[ALSOFT] (II) Post-reset: Stereo, Float32, 48000hz, 882 / 2646 buffer
[ALSOFT] (II) Key stereo-mode not found
[ALSOFT] (II) Key cf_level not found
[ALSOFT] (II) Key stereo-encoding not found
[ALSOFT] (II) Stereo rendering
[ALSOFT] (II) Channel config, Main: 3, Real: 2
[ALSOFT] (II) Allocating 5 channels, 20480 bytes
[ALSOFT] (II) Enabling single-band first-order ambisonic decoder
[ALSOFT] (II) Max sources: 256 (255 + 1), effect slots: 64, sends: 2
[ALSOFT] (II) Key dither not found
[ALSOFT] (II) Key dither-depth not found
[ALSOFT] (II) Dithering disabled
[ALSOFT] (II) Key output-limiter not found
[ALSOFT] (II) Output limiter disabled
[ALSOFT] (II) Fixed device latency: 0ns
[ALSOFT] (II) Increasing allocated voices to 256
[ALSOFT] (II) Key volume-adjust not found
[ALSOFT] (II) Created context 0x7fe16c862300
hyunlee1o commented 2 years ago

I get this message using ALSOFT_LOGLEVEL=3

[ogg @ 0x7f13aae89000] 727 bytes of comment header remain Invalid return value 0 for stream protocol Invalid return value 0 for stream protocol Invalid return value 0 for stream protocol Invalid return value 0 for stream protocol [ALSOFT] (EE) Failed to set real-time priority for thread: Operación no permitida (1) [ALSOFT] (II) Key pulse/allow-moves not found [ALSOFT] (II) Connecting to "(default)" qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment [ALSOFT] (WW) Failed to open playback device: Playback Stream did not get ready (Tiempo de espera) [ALSOFT] (WW) Error generated on device (nil), code 0xa004 [ALSOFT] (II) Freeing device 0x7f13aaf5d040 [ALSOFT] (II) Got device "Audio Adapter (Unitek Y-247A) Estéreo analógico", "alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo" [ALSOFT] (II) Got device "Family 17h (Models 10h-1fh) HD Audio Controller Speaker + Headphones", "alsa_output.pci-0000_04_00.6.HiFi__hw_Generic_1__sink" [ALSOFT] (II) Got device "Meteor condenser microphone Estéreo analógico", "alsa_output.usb-Samson_Technologies_Samson_Meteor_Mic-00.analog-stereo" [ALSOFT] (II) Got device "Renoir Radeon High Definition Audio Controller HDMI / DisplayPort 2 Output", "alsa_output.pci-0000_04_00.1.HiFi__hw_Generic_7__sink" [ALSOFT] (II) Got device "Renoir Radeon High Definition Audio Controller HDMI / DisplayPort 1 Output", "alsa_output.pci-0000_04_00.1.HiFi__hw_Generic_3__sink

El lun, 14 mar 2022 a las 15:06, ilya-fedin @.***>) escribió:

[2022.03.14 11:13:53] Audio Error: Could not create default playback device, enumerating..

Try to run the executable with ALSOFT_LOGLEVEL=3

— Reply to this email directly, view it on GitHub https://github.com/telegramdesktop/tdesktop/issues/24178#issuecomment-1066915038, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCL2RBE3N6WSULYVQTTRYLU75IWFANCNFSM5QRW7ZZQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

ilya-fedin commented 2 years ago

@why-not-try-calmer your output seems ok @0trenixjetix your audio server returns timeout error for some reason while openal tries to open playback device

beholders-eye commented 2 years ago

[2022.03.14 11:13:53] Audio Error: Could not create default playback device, enumerating..

Try to run the executable with ALSOFT_LOGLEVEL=3

That's exactly what I did https://github.com/telegramdesktop/tdesktop/issues/24178#issuecomment-1066855910

But somehow no debugging info is shown in any logs...

ilya-fedin commented 2 years ago

When -debug is used, tdesktop sets debug variables on its own and redirects the output from those libraries to files (primary because there's no terminal output on Windows)

beholders-eye commented 2 years ago

I've noticed that.

That's why it has:

ls $HOME/.local/share/TelegramDesktop/DebugLogs
last_openal_log.txt  log_12_45.txt  log_15_30.txt  log_17_45.txt  mtp_12_00.txt  mtp_14_45.txt  mtp_17_00.txt  tcp_11_15.txt  tcp_14_00.txt  tcp_16_15.txt  tcp_18_30.txt
log_10_45.txt        log_13_30.txt  log_15_45.txt  log_18_00.txt  mtp_12_15.txt  mtp_15_00.txt  mtp_17_15.txt  tcp_11_30.txt  tcp_14_15.txt  tcp_16_30.txt
log_11_00.txt        log_13_45.txt  log_16_00.txt  log_18_15.txt  mtp_12_30.txt  mtp_15_15.txt  mtp_17_30.txt  tcp_11_45.txt  tcp_14_30.txt  tcp_16_45.txt
log_11_15.txt        log_14_00.txt  log_16_15.txt  log_18_30.txt  mtp_12_45.txt  mtp_15_30.txt  mtp_17_45.txt  tcp_12_00.txt  tcp_14_45.txt  tcp_17_00.txt
log_11_30.txt        log_14_15.txt  log_16_30.txt  mtp_10_45.txt  mtp_13_30.txt  mtp_15_45.txt  mtp_18_00.txt  tcp_12_15.txt  tcp_15_00.txt  tcp_17_15.txt
l

But last_openal_log.txt doesn't have anything in it 😔

ilya-fedin commented 2 years ago

OpenAL writes to the log only after terminating the application for some reason

beholders-eye commented 2 years ago

Oh, got it

Thanks!

 cat DebugLogs/last_openal_log.txt
[ALSOFT] (II) Initializing library v1.21.1-01bbfd3 fix_pulse_default
[ALSOFT] (II) Supported backends: pulse, alsa, oss, null, wave
[ALSOFT] (II) Loading config /etc/openal/alsoft.conf...
[ALSOFT] (II) Loading config /etc/xdg/alsoft.conf...
[ALSOFT] (II) Loading config /home/beholder/.alsoftrc...
[ALSOFT] (II) Loading config /home/beholder/.config/alsoft.conf...
[ALSOFT] (II) Got binary: /home/beholder/.local/bin/Telegram, Telegram
[ALSOFT] (II) Loading config /home/beholder/.local/bin/Telegram/alsoft.conf...
[ALSOFT] (II) Key disable-cpu-exts not found
[ALSOFT] (II) Vendor ID: "AuthenticAMD"
[ALSOFT] (II) Name: "AMD Ryzen 7 5700U with Radeon Graphics"
[ALSOFT] (II) Extensions: +SSE +SSE2 +SSE3 +SSE4.1
[ALSOFT] (II) Key rt-prio not found
[ALSOFT] (II) Key resampler not found
[ALSOFT] (II) Key trap-al-error not found
[ALSOFT] (II) Key trap-alc-error not found
[ALSOFT] (II) Key reverb/boost not found
[ALSOFT] (II) Key drivers not found
[ALSOFT] (II) Key pulse/spawn-server not found
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
[ALSOFT] (II) Initialized backend "pulse"
[ALSOFT] (II) Added "pulse" for playback
[ALSOFT] (II) Added "pulse" for capture
[ALSOFT] (II) Key excludefx not found
[ALSOFT] (II) Key default-reverb not found
[ALSOFT] (II) Got device "JBL Endurance DIVE", "bluez_output.00_1E_7C_9F_F1_8D.a2dp-sink"
[ALSOFT] (II) Got device "Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo", "alsa_output.pci-0000_05_00.6.analog-stereo"
[ALSOFT] (II) Got device "Renoir Radeon High Definition Audio Controller Digital Stereo (HDMI 2)", "alsa_output.pci-0000_05_00.1.hdmi-stereo-extra1"
[ALSOFT] (II) Got device "Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo", "alsa_input.pci-0000_05_00.6.analog-stereo"
[ALSOFT] (II) Got device "Monitor of Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo", "alsa_output.pci-0000_05_00.6.analog-stereo.monitor"
[ALSOFT] (II) Got device "Monitor of Renoir Radeon High Definition Audio Controller Digital Stereo (HDMI 2)", "alsa_output.pci-0000_05_00.1.hdmi-stereo-extra1.monitor"
[ALSOFT] (II) Got device "Monitor of JBL Endurance DIVE", "bluez_output.00_1E_7C_9F_F1_8D.a2dp-sink.monitor"
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
[ALSOFT] (II) Key pulse/allow-moves not found
[ALSOFT] (II) Connecting to "(default)"
[ALSOFT] (WW) Failed to open playback device: Playback Stream did not get ready (Timeout)
[ALSOFT] (WW) Error generated on device (nil), code 0xa004
[ALSOFT] (II) Freeing device 0x7fa3c41bb880
[ALSOFT] (II) Got device "JBL Endurance DIVE", "bluez_output.00_1E_7C_9F_F1_8D.a2dp-sink"
[ALSOFT] (II) Got device "Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo", "alsa_output.pci-0000_05_00.6.analog-stereo"
[ALSOFT] (II) Got device "Renoir Radeon High Definition Audio Controller Digital Stereo (HDMI 2)", "alsa_output.pci-0000_05_00.1.hdmi-stereo-extra1"
ilya-fedin commented 2 years ago

Your log is just like @0trenixjetix

beholders-eye commented 2 years ago

That's the same thing that @0trenixjetix had, the only difference is that his log is in Spanish 🙂

beholders-eye commented 2 years ago

@ilya-fedin, we said the same thing at the same time 🙂.

Anyway, is there some solution for this?

FYI: I'm using pipewire in everything else without issues: mpd, firefox, chromium...

ilya-fedin commented 2 years ago

I don't think so, apparently pipewire broke compatibility with a part of PA APIs used by openal, but not by other applications

beholders-eye commented 2 years ago

Well, apparently openal was some initial support to an old version of pipewire: https://github.com/kcat/openal-soft/blob/master/CMakeLists.txt#L903

ilya-fedin commented 2 years ago

It's not in any release

beholders-eye commented 2 years ago

It isn't... maybe we should wait for 1.22, probably

ilya-fedin commented 2 years ago

I don't think openal would release pipewire support as there's a blocker on pipewire side: there's no way to detect whether pipewire is used for audio or only for video

ilya-fedin commented 2 years ago

So reporting that compatibility bug to pipewire would be a way faster solution

beholders-eye commented 2 years ago

Other OpenAL apps are being hit by the same issue: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/2189

Aokromes commented 2 years ago

So reporting that compatibility bug to pipewire would be a way faster solution

so, 3rd party bug?

beholders-eye commented 2 years ago

Seems so...

ilya-fedin commented 2 years ago

yeah

ilya-fedin commented 2 years ago

But @why-not-try-calmer doesn't seem to have such errors, so maybe his case is different

beholders-eye commented 2 years ago

Seems like pipewire guys are cooking a solution: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/2189#note_1284610

why-not-try-calmer commented 2 years ago

Interesting. Thanks for looking into the issue!

beholders-eye commented 2 years ago

https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/2189#note_1297061

A fix is being made for Debian, Gentoo and NixOS

beholders-eye commented 2 years ago

I opened a MR for fixing it on Exherbo Linux. No need to fix anything on Telegram nor OpenAL for now.

why-not-try-calmer commented 2 years ago

I opened a MR for fixing it on Exherbo Linux. No need to fix anything on Telegram nor OpenAL for now.

Wait, this issue affects user of the flatpak'ed version too, so also the runtime used by this version needs the fix -- not just Linux distributions per se.

ilya-fedin commented 2 years ago

Daemons aren't a part of flatpak runtime

why-not-try-calmer commented 2 years ago

Daemons aren't a part of flatpak runtime

Ah ok I didn't read it through, never mind.