Skip to content

Embedded mpv crashes on Wayland due to EGL context failure (works on X11) #36

@erhardinho

Description

@erhardinho

Environment

  • OS: Pop!_OS (COSMIC / Wayland)
  • GPU: Intel (Mesa)
  • App version: MaxVideoPlayer 0.3.8 (installed .deb build)
  • mpv version: 0.37.0 (system mpv works fine in CLI)

Problem

When launching the installed app normally on Wayland, the app crashes immediately when opening any channel/stream from the UI.

On X11, the application works correctly and video playback succeeds.

Logs

Wayland (crash)

[Linux renderer] Wayland EGL display via eglGetPlatformDisplayEXT
[Linux renderer] Wayland subsurface + wl_egl_window + EGL context created
[Linux renderer] render_frame: eglMakeCurrent failed
Segmentation fault (core dumped)

X11 (working)

[Linux renderer] X11 child window + EGL context created (OpenGL Core 3.2)
[Linux renderer] render_frame: eglMakeCurrent failed
[Linux renderer] render context attached
frame presented (#0, #1, #2...)

Expected behavior

Video should play normally under Wayland without crashing.

Actual behavior

  • Wayland: Application crashes immediately when opening any stream/channel
  • X11: Video plays correctly and renders frames successfully

Workaround

Running with X11 backend avoids crash:

GDK_BACKEND=x11 max-video-player

Notes

  • mpv CLI works fine under Wayland
  • Issue appears specific to embedded mpv renderer in tauri_plugin_mpv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions