mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.3k stars 2.9k forks source link

Segmentation fault when running on VirtualBox without 3D acceleration #12645

Closed fulalas closed 1 year ago

fulalas commented 1 year ago

Using git master (from yesterday), no matter which distro, I get this:

Screenshot_2023-10-15_21-50-36

If I change the vm settings to enable 3D acceleration then the issue doesn't happen. I do however think this is not reasonable.

This might be related to https://github.com/mpv-player/mpv/issues/12300

Thanks!

CounterPillow commented 1 year ago

no backtrace, no log, and you talk about what's "reasonable".

fulalas commented 1 year ago

Sorry. Here's the log:

[   0.000][d][global] user path: 'log.txt' -> 'log.txt'
[   0.006][v][cplayer] mpv 0.36.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
[   0.006][v][cplayer]  built on Sat Oct 14 10:00:08 2023
[   0.010][v][cplayer] FFmpeg version: 5.1.3
[   0.010][v][cplayer] FFmpeg library versions:
[   0.010][v][cplayer]    libavutil       57.28.100
[   0.010][v][cplayer]    libavcodec      59.37.100
[   0.010][v][cplayer]    libavformat     59.27.100
[   0.010][v][cplayer]    libswscale      6.7.100
[   0.010][v][cplayer]    libavfilter     8.44.100
[   0.010][v][cplayer]    libswresample   4.7.100
[   0.010][v][cplayer] 
[   0.010][v][cplayer] Configuration: -Dbuildtype=release -Dlua=luajit -Dlibmpv=true -Dcdda=enabled -Ddvdnav=enabled -Ddvbin=enabled -Dpipewire=disabled -Dprefix=/usr -Dlibdir=/usr/lib64 -Dmandir=/usr/man -Dsysconfdir=/etc
[   0.010][v][cplayer] List of enabled features: alsa av-channel-layout avif_muxer build-date caca cdda cplugins cuda-hwaccel cuda-interop dmabuf-interop-gl dmabuf-wayland drm drm-is-kms dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffnvcodec gbm gl gl-wayland glibc-thread-name glob glob-posix gpl iconv jpeg jpegxl lcms2 libarchive libass libavdevice libbluray libdl libm librt linux-fstatfs luajit memfd_create noexecstack posix posix_shm pulse stdatomic threads vaapi vaapi-drm vaapi-egl vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vector vt.h wayland wayland_protocols_1_27 wayland_protocols_1_31 wayland_protocols_1_32 x11 xv zlib
[   0.010][v][cplayer] Command line options: '--player-operation-mode=pseudo-gui' '--log-file=log.txt'
[   0.010][v][cplayer] mpv 0.36.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
[   0.010][v][cplayer]  built on Sat Oct 14 10:00:08 2023
[   0.010][v][cplayer] FFmpeg version: 5.1.3
[   0.010][v][cplayer] FFmpeg library versions:
[   0.010][v][cplayer]    libavutil       57.28.100
[   0.010][v][cplayer]    libavcodec      59.37.100
[   0.010][v][cplayer]    libavformat     59.27.100
[   0.010][v][cplayer]    libswscale      6.7.100
[   0.010][v][cplayer]    libavfilter     8.44.100
[   0.010][v][cplayer]    libswresample   4.7.100
[   0.010][v][cplayer] 
[   0.010][v][cplayer] Configuration: -Dbuildtype=release -Dlua=luajit -Dlibmpv=true -Dcdda=enabled -Ddvdnav=enabled -Ddvbin=enabled -Dpipewire=disabled -Dprefix=/usr -Dlibdir=/usr/lib64 -Dmandir=/usr/man -Dsysconfdir=/etc
[   0.010][v][cplayer] List of enabled features: alsa av-channel-layout avif_muxer build-date caca cdda cplugins cuda-hwaccel cuda-interop dmabuf-interop-gl dmabuf-wayland drm drm-is-kms dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffnvcodec gbm gl gl-wayland glibc-thread-name glob glob-posix gpl iconv jpeg jpegxl lcms2 libarchive libass libavdevice libbluray libdl libm librt linux-fstatfs luajit memfd_create noexecstack posix posix_shm pulse stdatomic threads vaapi vaapi-drm vaapi-egl vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vector vt.h wayland wayland_protocols_1_27 wayland_protocols_1_31 wayland_protocols_1_32 x11 xv zlib
[   0.010][d][global] home path: '' -> '/home/guest/.config/mpv'
[   0.010][d][global] user path: '~~home/' -> '/home/guest/.config/mpv'
[   0.010][d][global] user path: '~~old_home/' -> '/home/guest/.mpv'
[   0.010][d][global] config path: 'encoding-profiles.conf' -/-> '/home/guest/.config/mpv/encoding-profiles.conf'
[   0.010][d][global] config path: 'encoding-profiles.conf' -/-> '/home/guest/.mpv/encoding-profiles.conf'
[   0.010][d][global] config path: 'encoding-profiles.conf' -> '/etc/mpv/encoding-profiles.conf'
[   0.010][v][cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[   0.010][v][ifo_dvdnav] Opening /etc/mpv/encoding-profiles.conf
[   0.010][v][bdmv/bluray] Opening /etc/mpv/encoding-profiles.conf
[   0.010][v][file] Opening /etc/mpv/encoding-profiles.conf
[   0.010][d][file] resize stream to 131072 bytes, drop 0 bytes
[   0.010][d][file] Stream opened successfully.
[   0.013][v][cplayer] Applying profile 'default'...
[   0.013][d][global] config path: 'mpv.conf' -/-> '/home/guest/.config/mpv/mpv.conf'
[   0.013][d][global] config path: 'config' -/-> '/home/guest/.config/mpv/config'
[   0.013][d][global] config path: 'mpv.conf' -/-> '/home/guest/.mpv/mpv.conf'
[   0.013][d][global] config path: 'config' -/-> '/home/guest/.mpv/config'
[   0.013][d][global] config path: 'mpv.conf' -/-> '/etc/mpv/mpv.conf'
[   0.013][d][global] config path: 'config' -/-> '/etc/mpv/config'
[   0.013][v][cplayer] Setting option 'player-operation-mode' = 'pseudo-gui' (flags = 8)
[   0.013][v][cplayer] Setting option 'log-file' = 'log.txt' (flags = 8)
[   0.013][v][cplayer] Applying profile 'builtin-pseudo-gui'...
[   0.013][v][cplayer] Setting option 'terminal' = 'no' (flags = 260)
[   0.013][v][cplayer] Setting option 'force-window' = 'yes' (flags = 260)
[   0.013][v][cplayer] Setting option 'idle' = 'once' (flags = 260)
[   0.013][v][cplayer] Setting option 'screenshot-directory' = '~~desktop/' (flags = 260)
[   0.013][v][cplayer] Applying profile 'pseudo-gui'...
[   0.013][v][cplayer] Setting option 'player-operation-mode' = 'pseudo-gui' (flags = 4)
[   0.014][d][global] config path: 'input.conf' -/-> '/home/guest/.config/mpv/input.conf'
[   0.014][d][global] config path: 'input.conf' -/-> '/home/guest/.mpv/input.conf'
[   0.014][d][global] config path: 'input.conf' -> '/etc/mpv/input.conf'
[   0.014][d][global] user path: '/etc/mpv/input.conf' -> '/etc/mpv/input.conf'
[   0.014][v][ifo_dvdnav] Opening /etc/mpv/input.conf
[   0.015][v][bdmv/bluray] Opening /etc/mpv/input.conf
[   0.015][v][file] Opening /etc/mpv/input.conf
[   0.015][d][file] resize stream to 131072 bytes, drop 0 bytes
[   0.015][d][file] Stream opened successfully.
[   0.015][v][input] Parsing input config file /etc/mpv/input.conf
[   0.015][v][input] Input config file /etc/mpv/input.conf parsed: 8 binds
[   0.015][d][global] user path: 'log.txt' -> 'log.txt'
[   0.015][d][osc] Loading lua script @osc.lua...
[   0.015][d][ytdl_hook] Loading lua script @ytdl_hook.lua...
[   0.015][d][stats] Loading lua script @stats.lua...
[   0.015][d][osc] loading mp.defaults
[   0.015][d][console] Loading lua script @console.lua...
[   0.015][d][ytdl_hook] loading mp.defaults
[   0.015][d][auto_profiles] Loading lua script @auto_profiles.lua...
[   0.015][d][stats] loading mp.defaults
[   0.015][d][global] config path: 'scripts' -/-> '/home/guest/.config/mpv/scripts'
[   0.015][d][global] config path: 'scripts' -/-> '/home/guest/.mpv/scripts'
[   0.015][d][global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[   0.015][v][cplayer] Waiting for scripts...
[   0.016][d][osc] loading @osc.lua
[   0.016][d][console] loading mp.defaults
[   0.016][d][ytdl_hook] loading @ytdl_hook.lua
[   0.016][d][stats] loading @stats.lua
[   0.016][d][console] loading @console.lua
[   0.017][d][ytdl_hook] reading options for ytdl_hook 
[   0.017][d][global] config path: 'script-opts/ytdl_hook.conf' -/-> '/home/guest/.config/mpv/script-opts/ytdl_hook.conf'
[   0.017][d][global] config path: 'script-opts/ytdl_hook.conf' -/-> '/home/guest/.mpv/script-opts/ytdl_hook.conf'
[   0.017][d][console] reading options for console 
[   0.017][d][global] config path: 'script-opts/ytdl_hook.conf' -/-> '/etc/mpv/script-opts/ytdl_hook.conf'
[   0.017][d][global] config path: 'script-opts/console.conf' -/-> '/home/guest/.config/mpv/script-opts/console.conf'
[   0.017][d][ytdl_hook] script-opts/ytdl_hook.conf not found. 
[   0.017][d][global] config path: 'script-opts/console.conf' -/-> '/home/guest/.mpv/script-opts/console.conf'
[   0.017][d][global] config path: 'script-opts/console.conf' -/-> '/etc/mpv/script-opts/console.conf'
[   0.017][d][console] script-opts/console.conf not found. 
[   0.017][d][global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/home/guest/.config/mpv/lua-settings/ytdl_hook.conf'
[   0.017][d][global] config path: 'lua-settings/console.conf' -/-> '/home/guest/.config/mpv/lua-settings/console.conf'
[   0.017][d][global] config path: 'lua-settings/console.conf' -/-> '/home/guest/.mpv/lua-settings/console.conf'
[   0.017][d][global] config path: 'lua-settings/console.conf' -/-> '/etc/mpv/lua-settings/console.conf'
[   0.017][d][global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/home/guest/.mpv/lua-settings/ytdl_hook.conf'
[   0.017][d][global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/etc/mpv/lua-settings/ytdl_hook.conf'
[   0.017][d][ytdl_hook] lua-settings/ytdl_hook.conf not found. 
[   0.017][d][console] lua-settings/console.conf not found. 
[   0.017][d][auto_profiles] loading mp.defaults
[   0.017][d][osc] reading options for osc 
[   0.017][d][global] config path: 'script-opts/osc.conf' -/-> '/home/guest/.config/mpv/script-opts/osc.conf'
[   0.017][d][global] config path: 'script-opts/osc.conf' -/-> '/home/guest/.mpv/script-opts/osc.conf'
[   0.017][d][global] config path: 'script-opts/osc.conf' -/-> '/etc/mpv/script-opts/osc.conf'
[   0.017][d][osc] script-opts/osc.conf not found. 
[   0.017][d][global] config path: 'lua-settings/osc.conf' -/-> '/home/guest/.config/mpv/lua-settings/osc.conf'
[   0.017][d][global] config path: 'lua-settings/osc.conf' -/-> '/home/guest/.mpv/lua-settings/osc.conf'
[   0.017][d][global] config path: 'lua-settings/osc.conf' -/-> '/etc/mpv/lua-settings/osc.conf'
[   0.017][d][osc] lua-settings/osc.conf not found. 
[   0.017][d][global] config path: 'fonts' -/-> '/home/guest/.config/mpv/fonts'
[   0.017][d][global] config path: 'fonts' -/-> '/home/guest/.mpv/fonts'
[   0.017][d][global] config path: 'fonts' -/-> '/etc/mpv/fonts'
[   0.017][d][osd/libass] ASS library version: 0x1701000 (runtime 0x1701000)
[   0.017][v][osd/libass] libass API version: 0x1701000
[   0.017][v][osd/libass] libass source: tarball: 0.17.1
[   0.017][v][osd/libass] Shaper: FriBidi 1.0.13 (SIMPLE) HarfBuzz-ng 8.2.1 (COMPLEX)
[   0.017][d][global] config path: 'subfont.ttf' -/-> '/home/guest/.config/mpv/subfont.ttf'
[   0.017][d][global] config path: 'subfont.ttf' -/-> '/home/guest/.mpv/subfont.ttf'
[   0.017][d][global] config path: 'subfont.ttf' -/-> '/etc/mpv/subfont.ttf'
[   0.017][d][global] config path: 'fonts.conf' -/-> '/home/guest/.config/mpv/fonts.conf'
[   0.017][d][global] config path: 'fonts.conf' -/-> '/home/guest/.mpv/fonts.conf'
[   0.017][d][global] config path: 'fonts.conf' -/-> '/etc/mpv/fonts.conf'
[   0.017][v][osd/libass] Setting up fonts...
[   0.018][d][stats] reading options for stats 
[   0.018][d][global] config path: 'script-opts/stats.conf' -/-> '/home/guest/.config/mpv/script-opts/stats.conf'
[   0.018][d][global] config path: 'script-opts/stats.conf' -/-> '/home/guest/.mpv/script-opts/stats.conf'
[   0.018][d][global] config path: 'script-opts/stats.conf' -/-> '/etc/mpv/script-opts/stats.conf'
[   0.018][d][stats] script-opts/stats.conf not found. 
[   0.018][d][auto_profiles] loading @auto_profiles.lua
[   0.018][d][global] config path: 'lua-settings/stats.conf' -/-> '/home/guest/.config/mpv/lua-settings/stats.conf'
[   0.018][d][global] config path: 'lua-settings/stats.conf' -/-> '/home/guest/.mpv/lua-settings/stats.conf'
[   0.018][d][global] config path: 'lua-settings/stats.conf' -/-> '/etc/mpv/lua-settings/stats.conf'
[   0.018][d][stats] lua-settings/stats.conf not found. 
[   0.022][v][osd/libass] Using font provider fontconfig
[   0.022][v][osd/libass] Done.
[   0.023][d][cplayer] Run command: define-section, flags=64, args=[name="showhide", contents="mouse_move script-binding osc/__keybinding1\nmouse_leave script-binding osc/__keybinding2\n", flags="force"]
[   0.023][d][cplayer] Run command: define-section, flags=64, args=[name="showhide_wc", contents="mouse_move script-binding osc/__keybinding3\nmouse_leave script-binding osc/__keybinding4\n", flags="force"]
[   0.023][d][cplayer] Run command: enable-section, flags=64, args=[name="showhide", flags="allow-hide-cursor+allow-vo-dragging"]
[   0.023][d][cplayer] Run command: enable-section, flags=64, args=[name="showhide_wc", flags="allow-hide-cursor+allow-vo-dragging"]
[   0.024][d][cplayer] Run command: define-section, flags=64, args=[name="input", contents="mbtn_left script-binding osc/__keybinding5\nshift+mbtn_left script-binding osc/__keybinding6\nmbtn_right script-binding osc/__keybinding7\nmbtn_mid script-binding osc/__keybinding8\nwheel_up script-binding osc/__keybinding9\nwheel_down script-binding osc/__keybinding10\nmbtn_left_dbl ignore\nshift+mbtn_left_dbl ignore\nmbtn_right_dbl ignore\n", flags="force"]
[   0.024][d][cplayer] Run command: enable-section, flags=64, args=[name="input", flags=""]
[   0.024][d][cplayer] Run command: define-section, flags=64, args=[name="window-controls", contents="mbtn_left script-binding osc/__keybinding11\n", flags="force"]
[   0.024][d][cplayer] Run command: enable-section, flags=64, args=[name="window-controls", flags=""]
[   0.024][d][cplayer] Run command: change-list, flags=64, args=[name="shared-script-properties", operation="append", value="osc-visibility=auto"]
[   0.024][v][cplayer] Set property: shared-script-properties -> 1
[   0.024][v][cplayer] Set property: user-data/osc/visibility="auto" -> 1
[   0.024][d][cplayer] Run command: disable-section, flags=64, args=[name="input"]
[   0.024][d][cplayer] Run command: disable-section, flags=64, args=[name="window-controls"]
[   0.024][d][cplayer] Run command: define-section, flags=64, args=[name="input_console", contents="", flags="default"]
[   0.024][d][auto_profiles] Exiting...
[   0.024][d][cplayer] Run command: change-list, flags=64, args=[name="shared-script-properties", operation="append", value="osc-margins=0.000000,0.000000,0.000000,0.000000"]
[   0.024][v][cplayer] Set property: shared-script-properties -> 1
[   0.024][v][cplayer] Set property: user-data/osc/margins={"r":0,"b":0,"l":0,"t":0} -> 1
[   0.024][d][cplayer] Run command: define-section, flags=64, args=[name="input_stats", contents="", flags="default"]
[   0.024][d][cplayer] Run command: enable-section, flags=64, args=[name="input_console", flags="allow-hide-cursor+allow-vo-dragging"]
[   0.024][d][cplayer] Run command: enable-section, flags=64, args=[name="input_stats", flags="allow-hide-cursor+allow-vo-dragging"]
[   0.024][d][cplayer] Run command: define-section, flags=64, args=[name="input_forced_console", contents="", flags="force"]
[   0.024][d][cplayer] Run command: define-section, flags=64, args=[name="input_forced_stats", contents="", flags="force"]
[   0.024][d][cplayer] Run command: enable-section, flags=64, args=[name="input_forced_stats", flags="allow-hide-cursor+allow-vo-dragging"]
[   0.024][d][cplayer] Run command: enable-section, flags=64, args=[name="input_forced_console", flags="allow-hide-cursor+allow-vo-dragging"]
[   0.024][d][osc] osc_init 
[   0.024][v][cplayer] Done loading scripts.
[   0.024][v][vo/gpu] Probing for best GPU context.
[   0.025][v][vo/gpu/opengl] Initializing GPU context 'wayland'
[   0.025][v][vo/gpu/opengl] Initializing GPU context 'x11egl'
[   0.025][v][vo/gpu/x11] X11 opening display: :0
[   0.027][d][vo/gpu/x11] X11 running at 1280x800 (":0" => local display)
[   0.027][d][vo/gpu/x11] Detected wm supports NetWM.
[   0.028][d][vo/gpu/x11] Detected wm supports FULLSCREEN state.
[   0.028][d][vo/gpu/x11] Detected wm supports ABOVE state.
[   0.028][d][vo/gpu/x11] Detected wm supports BELOW state.
[   0.028][v][vo/gpu/x11] Display 0 (Virtual1): [0, 0, 1280, 800] @ 60.000000 FPS
[   0.028][v][vo/gpu/x11] Current display FPS: 60.000000
[   0.066][v][vo/gpu/opengl] EGL_VERSION=1.5
[   0.066][v][vo/gpu/opengl] EGL_VENDOR=Mesa Project
[   0.066][v][vo/gpu/opengl] EGL_CLIENT_APIS=OpenGL OpenGL_ES 
[   0.066][v][vo/gpu/opengl] Trying to create Desktop OpenGL context.
[   0.066][d][vo/gpu/opengl] Chosen EGLConfig:
[   0.066][d][vo/gpu/opengl]   EGL_CONFIG_ID=0xb
[   0.066][d][vo/gpu/opengl]   EGL_RED_SIZE=0x8
[   0.066][d][vo/gpu/opengl]   EGL_GREEN_SIZE=0x8
[   0.066][d][vo/gpu/opengl]   EGL_BLUE_SIZE=0x8
[   0.066][d][vo/gpu/opengl]   EGL_ALPHA_SIZE=0x0
[   0.066][d][vo/gpu/opengl]   EGL_COLOR_BUFFER_TYPE=0x308e
[   0.066][d][vo/gpu/opengl]   EGL_CONFIG_CAVEAT=0x3038
[   0.066][d][vo/gpu/opengl]   EGL_CONFORMANT=0x4d
[   0.066][d][vo/gpu/opengl]   EGL_NATIVE_VISUAL_ID=0x21
[   0.074][v][vo/gpu/opengl] Choosing visual EGL config 0xb, visual ID 0x21
[   0.074][v][vo/gpu/x11] The XPresent extension was found.
[   0.075][v][vo/gpu/x11] XPresent disabled.
[   0.089][v][vo/gpu/opengl] GL_VERSION='4.5 (Core Profile) Mesa 23.2.1'
[   0.089][v][vo/gpu/opengl] Detected desktop OpenGL 4.5.
[   0.089][v][vo/gpu/opengl] GL_VENDOR='Mesa'
[   0.089][v][vo/gpu/opengl] GL_RENDERER='llvmpipe (LLVM 17.0.1, 256 bits)'
[   0.089][v][vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='4.50'
[   0.089][d][vo/gpu/opengl] Combined OpenGL extensions string:
[   0.089][d][vo/gpu/opengl] EGL_ANGLE_sync_control_rate EGL_EXT_create_context_robustness EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_context_flush_control EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image_base EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_query_driver  GL_3DFX_texture_compression_FXT1 GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_gpu_shader_int64 GL_AMD_multi_draw_indirect GL_AMD_pinned_memory GL_AMD_query_buffer_object GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_AMD_shader_trinary_minmax GL_AMD_texture_texture4 GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_ES2_compatibility GL_ARB_ES3_1_compatibility GL_ARB_ES3_2_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_compressed_texture_pixel_storage GL_ARB_compute_shader GL_ARB_conditional_render_inverted GL_ARB_conservative_depth GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_draw_indirect GL_ARB_draw_instanced GL_ARB_enhanced_layouts GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_layer_viewport GL_ARB_fragment_shader GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_gl_spirv GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader_int64 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_indirect_parameters GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect GL_ARB_occlusion_query2 GL_ARB_parallel_shader_compile GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_point_sprite GL_ARB_polygon_offset_clamp GL_ARB_post_depth_coverage GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_ballot GL_ARB_shader_bit_encoding GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_stencil_export GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shader_viewport_layer_array GL_ARB_shading_language_420pack GL_ARB_shading_language_include GL_ARB_shading_language_packing GL_ARB_spirv_extensions GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_barrier GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map_array GL_ARB_texture_filter_anisotropic GL_ARB_texture_filter_minmax GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8 GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ARM_shader_framebuffer_fetch_depth_stencil GL_ATI_blend_equation_separate GL_ATI_meminfo GL_ATI_texture_float GL_ATI_texture_mirror_once GL_EXT_EGL_image_storage GL_EXT_EGL_sync GL_EXT_abgr GL_EXT_blend_equation_separate GL_EXT_debug_label GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_polygon_offset_clamp GL_EXT_provoking_vertex GL_EXT_shader_framebuffer_fetch GL_EXT_shader_framebuffer_fetch_non_coherent GL_EXT_shader_integer_mix GL_EXT_texture_array GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_filter_minmax GL_EXT_texture_integer GL_EXT_texture_mirror_clamp GL_EXT_texture_sRGB GL_EXT_texture_sRGB_R8 GL_EXT_texture_sRGB_RG8 GL_EXT_texture_sRGB_decode GL_EXT_texture_shadow_lod GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback GL_EXT_vertex_array_bgra GL_EXT_vertex_attrib_64bit GL_IBM_multimode_draw_arrays GL_INTEL_shader_atomic_float_minmax GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_KHR_context_flush_control GL_KHR_debug GL_KHR_no_error GL_KHR_parallel_shader_compile GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_sliced_3d GL_MESA_framebuffer_flip_y GL_MESA_pack_invert GL_MESA_shader_integer_functions GL_MESA_texture_signed_rgba GL_MESA_ycbcr_texture GL_NVX_gpu_memory_info GL_NV_conditional_render GL_NV_copy_image GL_NV_depth_clamp GL_NV_packed_depth_stencil GL_NV_shader_atomic_float GL_NV_texture_barrier GL_OES_EGL_image GL_S3_s3tc
[   0.089][v][vo/gpu/opengl] Loaded extension GL_KHR_debug.
[   0.089][v][vo/gpu/opengl] Detected suspected software renderer.
[   0.089][w][vo/gpu/opengl] Suspected software renderer or indirect context.
[   0.090][d][vo/gpu/x11] uninit ...
[   0.090][v][vo/gpu/opengl] Initializing GPU context 'drm'
[   0.090][e][vo/gpu/drm] VT_GETMODE failed: Inappropriate ioctl for device
[   0.090][w][vo/gpu/drm] Failed to set up VT switcher. Terminal switching will be unavailable.
[   0.091][v][vo/gpu/drm] Picked DRM card 0, primary node /dev/dri/card0 as the default.
[   0.091][v][vo/gpu/drm] Driver: vmwgfx 2.20.0 (20211206)
[   0.091][v][vo/gpu/drm] Connector 38 currently connected to encoder 39
[   0.091][v][vo/gpu/drm] Selected Encoder 39 with CRTC 40
[   0.091][v][vo/gpu/drm] Selected mode: 1280x800 (1280x800@60.00Hz)
[   0.091][v][vo/gpu/drm] DRM Atomic support found
[   0.091][v][vo/gpu/drm] Using primary plane 34 as draw plane
[   0.091][v][vo/gpu/drm] Failed to find drmprime plane with idx=-2. drmprime-overlay hwdec interop will not work
[   0.091][v][vo/gpu] GBM_FORMAT_ARGB8888 supported by draw plane.
[   0.091][v][vo/gpu] Supported modifier: 0x0
[   0.091][v][vo/gpu] Creating GBM device
sfan5 commented 1 year ago

Are you able to produce a backtrace?

fulalas commented 1 year ago

Which is the easiest distro to do that and how do I do that? I can run Ubuntu, Fedora, Slackware, PorteuX, etc.

llyyr commented 1 year ago

Which is the easiest distro to do that and how do I do that? I can run Ubuntu, Fedora, Slackware, PorteuX, etc.

https://wiki.debian.org/HowToGetABacktrace

https://wiki.archlinux.org/title/Debugging/Getting_traces

These should be applicable to other distros too in a broad sense, in particular if you're using systemd then coredumpctl should keep the coredump and all you'll need to do is install debug symbols or setup debuginfod for your distro

fulalas commented 1 year ago

https://wiki.debian.org/HowToGetABacktrace

Thanks, but this is too much at the moment. I can't do that, sorry.

What I can say is that the issue is easy to reproduce. Anyone with VirtualBox (and potentially any VM) can do it.

CounterPillow commented 1 year ago

Anyone with VirtualBox (and potentially any VM) can do it.

Thanks, but this is too much at the moment. I can't do that, sorry.

N-R-K commented 1 year ago

@fulalas Can you compile from source? If so then git clone the repo and run the following:

$ meson setup debug -Dbuildtype=debug -Db_sanitize=address,undefined
$ meson compile -C debug

And then run ./debug/mpv. ASan should produce a backtrace, attach the output here.

fulalas commented 1 year ago

@N-R-K, I'm glad the open source community is also made of nice people like you :)

By building from source I realized that initially I wasn't actually building git master, but 0.36.0 final release, which was a stupid mistake of mine. Sorry.

The bug has been fixed in master.

By reverting git branch to 0.36.0 final release, the backtrace (if I'm doing this correctly) is this (in case someone finds it useful somehow):

./debug/mpv --player-operation-mode=pseudo-gui
libEGL warning: DRI2: failed to authenticate
VMware: No 3D enabled (0, Success).
VMware: No 3D enabled (0, Success).
AddressSanitizer:DEADLYSIGNAL
=================================================================
==4831==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f90c6a9df70 bp 0x7f90b64df3c0 sp 0x7f90b64df2b8 T7)
==4831==The signal is caused by a READ memory access.
==4831==Hint: address points to the zero page.
    #0 0x7f90c6a9df70 in gbm_surface_destroy (/usr/lib64/libgbm.so.1+0x3f70)
    #1 0xb86f71 in drm_egl_uninit ../video/out/opengl/context_drm_egl.c:502
    #2 0xb8bd49 in drm_egl_init ../video/out/opengl/context_drm_egl.c:716
    #3 0x949083 in ra_ctx_create ../video/out/gpu/context.c:209
    #4 0xa17579 in preinit ../video/out/vo_gpu.c:294
    #5 0xa0c58e in vo_thread ../video/out/vo.c:1099
    #6 0x7f90c5f98cc1 in start_thread (/lib64/libc.so.6+0x92cc1)
    #7 0x7f90c6024227 in __GI___clone3 (/lib64/libc.so.6+0x11e227)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib64/libgbm.so.1+0x3f70) in gbm_surface_destroy
Thread T7 created by T0 here:
    #0 0x7f90c8dccc26 in pthread_create (/usr/lib64/libasan.so.8+0x4ac26)
    #1 0x9fbc26 in vo_create ../video/out/vo.c:340
    #2 0x9fc36f in init_best_video_out ../video/out/vo.c:377
    #3 0x80e3db in handle_force_window ../player/playloop.c:1011
    #4 0x812339 in idle_loop ../player/playloop.c:1280
    #5 0x7e51cd in mp_play_files ../player/loadfile.c:1992
    #6 0x7ed0d0 in mpv_main ../player/main.c:438
    #7 0xa7a72a in main ../osdep/main-fn-unix.c:5
    #8 0x7f90c5f2daf6 in __libc_start_call_main (/lib64/libc.so.6+0x27af6)

==4831==ABORTING

Thanks a lot!

N-R-K commented 1 year ago

Was probably fixed by 19384e07e